Mainframe JCL and COBOL Fundamentals

Covers Job Control Language (JCL), COBOL programming, dataset management, and mainframe utility syntax for IBM mainframe systems.

20 Questions Published

Questions

Question 1 True/False

DATASORT allows you to sort data records between header records and trailer records.

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

Identify the correct syntax.

  1. SELECT FROM(IN) TO(OUT1) ON(5,4,ZD) FIRSTDUP USING(CTL1)
  2. SELECT FROMFILE(IN) TOFILE(OUT1) ON(5,4,ZD) FIRSTDUP USING(CTL1)
  3. SELECT file1(IN) file2(OUT1) ON(5,4,ZD) FIRSTDUP USING(CTL1)
  4. None of the above
Question 3 Multiple Choice (Single Answer)

Identify the correct sysntax:

  1. None of the Below
  2. SUBSET IN1 TO OUT1
  3. SUBSET FROM(IN1) OF(OUT1)
  4. SUBSET FROM(IN1) TO(OUT1)
Question 4 Multiple Choice (Single Answer)

Which one is not a Non Numeric picture clause?

  1. A
  2. B
  3. V
  4. X
Question 5 Multiple Choice (Single Answer)

How many Paragraphs are optional in Identification Division?

  1. 4
  2. 5
  3. 6
  4. 7
Question 6 True/False

DBCS (Double Byte Character Set) is used in the applications that support large character sets.

  1. True
  2. False
Question 7 Multiple Choice (Multiple Answers)

Find out the correct statements:

  1. STOP RUN is the last executable statement of the main program. It returns control back to OS.
  2. EXIT PROGRAM is the last executable statement of sub-program. It returns control back to main program.
  3. GOBACK can be coded in main program as well as sub-program as the last statement. It just gives the control back from where it received the control.
  4. None of the above.
Question 8 True/False

VALUE clause is used to initialize the data items in the working storage section whereas INITIALIZE is used to initialize the data items in the procedure division.

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

Find Odd man out of JOB Statements:

  1. CLASS
  2. TYPRUN
  3. PRTY
  4. TYPERUN
Question 10 Multiple Choice (Single Answer)

How do you designate a comment in JCL

  1. //
  2. //*
  3. /*
  4. //**
Question 11 Multiple Choice (Single Answer)

Which takes highest priority when both STEP and JOB lib are present in JCL

  1. STEP
  2. JOB
  3. BOTH
  4. No priority
Question 12 Multiple Choice (Single Answer)

How many EXEC statements can be present in a single Job

  1. 225
  2. 255
  3. 128
  4. 365
Question 13 Multiple Choice (Single Answer)

COND is a parameter of

  1. JOB Statement
  2. EXEC Statement
  3. NONE
  4. Both JOB and EXEC statement
Question 14 Multiple Choice (Single Answer)

Temporary datasets can be created either by not specifying any DSNAME or by specifying the temporary file indicator as in

  1. DSN=&&TEMP
  2. DSN = &*TEMP
  3. DSN = &TEMP
  4. DSN =TEMP
Question 15 Multiple Choice (Single Answer)

//MYJOB JOB (1111),'XXXX' //STEP1 EXEC PGM=DO12 //INFILE DD DSN=TEST.PXXXX.V01.TEST.LIB, // UNIT=SYSDA What this UNIT parameter specifies

  1. Address of INFILE
  2. Address of JOB
  3. Address of Program
  4. NONE
Question 16 True/False

We can use Virtual storage for a Dataset

  1. True
  2. False
Question 17 Multiple Choice (Multiple Answers)

SPACE parameter is to allocate

  1. Cylinder
  2. Block
  3. Track
  4. Area
Question 18 Multiple Choice (Multiple Answers)

Wats the additional storage is used when primary storage in Cylinder space is not sufficient

  1. Secondary Storage
  2. Tracks
  3. Both
  4. None
Question 19 Multiple Choice (Multiple Answers)

DCB Expansion

  1. Data Conditional Block
  2. Device Control Block
  3. Data Control Block
  4. Device Conditional Block
Question 20 Multiple Choice (Multiple Answers)

End of Procedure can be indicated by

  1. //PEND
  2. //
  3. //END
  4. //(Procedure name) END