Tag: mainframe

Questions Related to mainframe

  1. Infinite loop

  2. Logical Error

  3. Runtime Error

  4. All the above


Correct Option: D
  1. (NEW,CATLG,CATLG)

  2. (NEW,DELETE,DELETE)

  3. (NEW,CATLG,DELETE)

  4. (OLD,CATLG,UNCATLG)


Correct Option: B
  1. CPU time is 1440

  2. Run time is 1440

  3. No CPU limit for the job

  4. Gives S322 abend after 1440 cpu time


Correct Option: C
  1. Scans JCL for errors

  2. Invalid Syntax

  3. Scans for previous executing jobs

  4. Does nothing


Correct Option: A

There is a file whose ORGANISATION is INDEXED.you want to read the records from the file in RANDOM fashion as well as sequentially, then which of the access mode would you specify?

  1. SEQUENTIAL

  2. RANDOM

  3. DYNAMIC

  4. ACCESS MODE has nothing to do with it


Correct Option: C

AI Explanation

To read records from a file in both random and sequential fashion, you would need to specify the access mode as "C. DYNAMIC".

Explanation for each option:

A. SEQUENTIAL - This option is incorrect because it only allows reading the records sequentially, one after the other, in the order they are stored in the file. It does not allow random access to the records.

B. RANDOM - This option is incorrect because it only allows random access to the records in the file, meaning you can directly access any record without having to read all the preceding records. However, it does not support sequential access.

C. DYNAMIC - This option is correct because it allows both random and sequential access to the records in the file. It provides the flexibility to read the records in any order, either randomly or sequentially.

D. ACCESS MODE has nothing to do with it - This option is incorrect because the access mode does have an impact on how records are read from a file. Different access modes provide different capabilities for accessing the records.

Therefore, the correct answer is C. DYNAMIC.

  1. Add 1, 2, 3 To Field-1.

  2. Add 1 To Field-1, Field-2.

  3. Add Field-1, 3 Giving Field-2.

  4. Add Field-1 To Field-2 Giving 3.


Correct Option: D
  1. Data-A < Data-B And Data-C < Data-A

  2. Data-B > Data-C Or Data-A > Data-C

  3. Data-A < Data-B And Data-C

  4. Data-A < Data-B And Data-A > Data-C


Correct Option: C

Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resultant value of X will be ?

  1. Abends

  2. -10

  3. 10

  4. Syntax error


Correct Option: C