Mainframe Programming Essentials: CICS, COBOL, JCL, and Natural

Test your knowledge of mainframe programming concepts including CICS commands and error handling, COBOL syntax and file operations, JCL utilities and SORT options, Natural language constructs, and system programming topics like Special Registers.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Consider the following piece of code: IF NOT INPUT-EOF IF INPUT-REC-TYPE = '55' PERFORM 2100-PROCESS-WTN ELSE NEXT SENTENCE END-IF ADD +1 TO INPUT-COUNT. PERFORM TEST-1 If the value INPUT-REC-TYPE = '00' then what will happen to the value of INPUT-COUNT?

  1. 01
  2. Will not change
  3. 56
  4. Will change
Question 2 Multiple Choice (Multiple Answers)

Which all among the following are the Special Registers?

  1. PR
  2. PSW
  3. PC
  4. SP
Question 3 Multiple Choice (Single Answer)

Using which option a input file can be split into equal no.of output files

  1. OUTREC FILES=(01,02,03,04,05,06,07,08,09,10),SPLIT
  2. OUTREC=(01,02,03,04,05,06,07,08,09,10),SPLIT
  3. OUTFIL FILES=(01,02,03,04,05,06,07,08,09,10),SPLIT
  4. ALL
Question 4 Multiple Choice (Single Answer)

Block size(BLKSIZE) of a file should be multiple of

  1. CYLINDERS of the file
  2. LRECEL of the file
  3. BUFSIZE of the file
  4. NONE
Question 5 Multiple Choice (Single Answer)

In SORT utility by using which option we will generate the sequence number

  1. NUMGEN
  2. GENNUM
  3. SEQNUM
  4. ALL
Question 6 Multiple Choice (Single Answer)

Which below utilities will be used for submitting the a job using another job.

  1. IEBR14, INTRDR
  2. IEBGENER, INTRDR
  3. IEBPTPCH, INTRDR
  4. IEHINITT, INTRDR
Question 7 True/False

While reading a table in natural cobol do we have an option to read the specified number of records.

  1. True
  2. False
Question 8 True/False

he below IF condition is valid or not. READ MYVIEW BY NAME ACCEPT IF SALARY >= 40000 AND SALARY < 45000 DISPLAY NAME JOB-TITLE SALARY END-READ

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

How to initialise the values while declaring the variable

  1. #FIELDA (N3) = <100>
  2. #FIELDA (N3) INIT <100>
  3. #FIELDA (N3) INITIALISE <100>
  4. ALL
Question 10 Multiple Choice (Single Answer)

what does PS parameter signify

  1. determine whether page ejects are to be performed or not
  2. determine the maximum number of lines per (logical) page for a report
  3. determine the minimum number of lines per (logical) page for a report
  4. NONE
Question 11 True/False

Is the following Evaluate clause with no WHEN phrase coded syntactically valid?? (True-YES/False-No) EVALUATE A ALSO B END-EVALUATE.

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

For successful execution of REWRITE stmt, the direct access file must be opened in ____ mode. (Fill in the blank with the right answer from the options)

  1. INPUT
  2. OUTPUT
  3. INPUT-OUTPUT
  4. OUT-INPUT
Question 13 True/False

The result of SEARCH ALL is predictable only when the table is defined with ASCENDING or DESCENDING KEY and the key should uniquely identify an occurrence of the table entry.

  1. True
  2. False
Question 14 True/False

CONFIGURATION SECTION in COBOL must be present.

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

------ enables a program that is executing outside a particular BTS process to access an activity within the process.

  1. ACQUIRE
  2. ABEND
  3. ADDRESS
  4. ADD SUBEVENT
Question 16 Multiple Choice (Single Answer)

------ analyzes three different date and time stamp formats which are commonly used on the Internet, and converts them to the ABSTIME (absolute date and time) format.

  1. ASKTIME
  2. TIME
  3. CONVERTTIME
  4. FORMATTIME
Question 17 Multiple Choice (Single Answer)

------ acquires a session to a remote system.

  1. GDS ALLOCATE
  2. GDS ASSIGN
  3. ACQUIRE
  4. GDS ACQUIRE
Question 18 Multiple Choice (Single Answer)

-------- causes an APPC basic conversation to end immediately, regardless of the conversation state. The partner transaction is informed.

  1. GDS ABEND
  2. ABEND
  3. GDS ISSUE ABEND
  4. ISSUE ABEND
Question 19 Multiple Choice (Single Answer)

Syntax for IGNORE CONDITION

  1. IGNORE CONDITION <condition>
  2. IGNORE <condition>
  3. IGNORE <condition> CONDITION
  4. CONDITION IGNORE <condition>
Question 20 Multiple Choice (Single Answer)

Which command creates the JOURNAL Record.?

  1. LINK
  2. JOURNAL
  3. ISSUE JOURNAL
  4. LOAD