Mainframe Programming: COBOL, JCL, and ECL

Test your knowledge of mainframe computing systems including COBOL programming, JCL job control, and ECL (Executive Control Language) for batch processing and file management.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

All the divisions should be start from?

  1. 12-72
  2. 11-18
  3. Area B
  4. Area A
Question 2 Multiple Choice (Single Answer)

Which of the following errors are possible within a COBOL if statement?

  1. Infinite loop
  2. Logical Error
  3. Runtime Error
  4. All the above
Question 3 Multiple Choice (Single Answer)

What is the DISPOSITION of a dataset if the DISP field is not coded in the JCL?

  1. (NEW,CATLG,CATLG)
  2. (NEW,DELETE,DELETE)
  3. (NEW,CATLG,DELETE)
  4. (OLD,CATLG,UNCATLG)
Question 4 Multiple Choice (Single Answer)

What does TIME=1440 mean on a job card?

  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
Question 5 Multiple Choice (Single Answer)

TYPE=SCAN What does it do?

  1. Scans JCL for errors
  2. Invalid Syntax
  3. Scans for previous executing jobs
  4. Does nothing
Question 6 Multiple Choice (Single Answer)

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
Question 7 Multiple Choice (Single Answer)

How many bytes does a S9(7) SIGN TRAILING SEPARATE field occupy ?

  1. 6
  2. 7
  3. 8
  4. 4
Question 8 Multiple Choice (Single Answer)

Which of the following addition statements is invalid?

  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.
Question 9 Multiple Choice (Single Answer)

If Data-A = 1 and Data-B = 2 and Data-C = 3, which of the following conditions is true?

  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
Question 10 Multiple Choice (Single Answer)

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
Question 11 Multiple Choice (Single Answer)

ECL stands for ?

  1. Embedded Control Langauge
  2. Executive Control Langauge
  3. Executive Coupled Langauge
  4. Entrance Control Langauge
Question 12 True/False

ECL is useed for Batch processing.

  1. True
  2. False
Question 13 True/False

@RUN must be the first line of ECL.

  1. True
  2. False
Question 14 True/False

Can we add label field with @EOF.

  1. True
  2. False
Question 15 True/False

@ZIP command open file in read only mode.

  1. True
  2. False
Question 16 True/False

Demand session is used to run ECL code file.

  1. True
  2. False
Question 17 Multiple Choice (Single Answer)

UCS stands for ?

  1. Unified Computing System
  2. Universal Character Set
  3. Universal Compiling System
  4. Ultra Corba Simulator
Question 18 Multiple Choice (Single Answer)

What should be the last statement of ECL code file ?

  1. @STOP
  2. @BRKPT
  3. @FIN
  4. @STOP RUN
Question 19 True/False

Transparent Control Statement starts with @@

  1. True
  2. False
Question 20 Multiple Choice (Single Answer)

When was Unisys founded ?

  1. 1986 as Unisys
  2. 1986 Ankara,Turkey
  3. Original founded in 1944, two competing parties since a split in 1986.
  4. 1986 New York