COBOL Interview Questions, c# interview questions.#C# #interview #questions


c# interview questions

C# interview questions

  • There are 2 files. These 2 files contains some common (duplicate).

There are 2 files. These 2 files contains some common (duplicate) records. How do you copy these common (matching) records into third file. Suggest the answer using COBOL as well as through JCL.

What is redefine in COBOL?

  • Called and calling program for cobol with cursor
  • Called and calling program for cobol with cursor

    I have program A which is calling B first time. B program is feaching data using cursor , but some mess happened and the control went back to pro A without closing cursor . Once again program A called program B then what will happen to cursor. will program fetch the data.

  • Concatinating two rec by using cobol & jcl
  • concatinating two rec by using COBOL & JCL

    I need to concatenate records by using cobol and jcl (both) as follows. Input File: AAAAA BBBBB CCCCC DDDDD 11111 22222 33333 44444 Split the file into two halves and 1st rec of first half and 2nd rec of second half records are concatinated and 2nd rec of first half and 2nd rec of second half records are concatinated and so on. and o/p as given below Output File: AAAAA 11111 BBBBB 22222 CCCCC 33333 DDDDD 44444

  • What is the difference between copy and include
  • What is the difference between COPY and INCLUDE

    In the example below

    05 WS-VAR1 PIC X(5),05 WS-VAR2 REDEFINES WA-VAR1 PIC 9(5),PROCEDURE DIVISION MOVE ‘ABCDE’ TO WS-VAR1.Now what is the value of WS-VAR1 and WS-VAR2 ?

  • How to remove the duplicate records present in a PS dataset using.
  • How to remove the duplicate records present in a PS dataset using JCL?

  • How many bytes occupied following comp example?
  • How many bytes occupied following comp example?

    Dear Friends, This is regarding COBOL comp. PIC X(3) occupy the 3 bytes. but PIC 9(3)V9(7) COMP occupied how much bytes? I said in interview that 10/2 = 5 bytes. V is specified for decimal point. Is that correct? But interviewer looked at me differently when I said this answer? If you are more confident, please reply this . thanks in advance,.

  • What is the difference between static call and dynamic call?
  • what is the difference between static call and dynamic call?

    COBOL File Handling

    how do you read a file in reverse order through COBOL program?

  • How to initialize a group data which is containing occur clause?
  • How to initialize a group data which is containing occur clause?

    eMail Validation via COBOL

    I have file with customer details and I need to process only those records who is having valid email id, so how we can validated these records using COBOL?

  • What is the difference between next sentence and continue?
  • What is the difference between NEXT SENTENCE and CONTINUE?

    NEXT SENTENCE gives control to the verb following the next period. CONTINUE gives control to the next verb after the explicit scope terminator. (This is not one of COBOL II’s finer implementations). It’s safest to use CONTINUE rather than NEXT SENTENCE in COBOL II.

  • Consider the following cobol entries 05 x pic 99 value 10. .
  • Consider the following COBOL entries

    05 X PIC 99 VALUE 10.

    COMPUTE X = 3 * X – 40.

    The result in X is

    (c) Compile or Run time error

    (d) none of these

  • What is the difference between static & dynamic call?
  • What is the difference between static & dynamic call?

    in the case of static call the mainprogram and subpgms r loaded into the mainmemory initially.in the case of dynamic call only the mainpgm is loaded first and the subpgm is loaded only when a call to it is made.so the memory utilization is good in dynamic call.

    Dynamic Linking in COBOL

    I have two modules called ‘A’ and ‘B’. Module ‘A’ opens the ORACLE database connection, and Calls ‘B’, which queries the database using the ‘SELECT’ statement.

    cob2 B.cbl -o B -L

    cob2 A.cbl -o A -L

    or cob2 A.cbl B.cbl A -L

  • The following entries appear in the working-storage section.
  • The following entries appear in the WORKING-STORAGE SECTION:

    05 YY PIC XX VALUE 90 .

    05 MM PIC XX VALUE 12 .

    05 DD PIC XX VALUE :31 .

    01 DATE-EDIT PIC XX/XX/XX.

    MOVE DATE-TODAY TO DATE-EDIT.

  • Is there any condition in cobol to check the variable has any.
  • Is there any condition in cobol to check the variable has any special characters?

    What is the use and when do we are use comp variables (comp, comp1, comp2 and comp3)?

  • Consider the following piece of code 01 group-item 05 amount-1.

  • About Author:

    Leave A Comment

    Your email address will not be published. Required fields are marked *