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.
Questions
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?
- 01
- Will not change
- 56
- Will change
Which all among the following are the Special Registers?
- PR
- PSW
- PC
- SP
Using which option a input file can be split into equal no.of output files
- OUTREC FILES=(01,02,03,04,05,06,07,08,09,10),SPLIT
- OUTREC=(01,02,03,04,05,06,07,08,09,10),SPLIT
- OUTFIL FILES=(01,02,03,04,05,06,07,08,09,10),SPLIT
- ALL
Block size(BLKSIZE) of a file should be multiple of
- CYLINDERS of the file
- LRECEL of the file
- BUFSIZE of the file
- NONE
In SORT utility by using which option we will generate the sequence number
- NUMGEN
- GENNUM
- SEQNUM
- ALL
Which below utilities will be used for submitting the a job using another job.
- IEBR14, INTRDR
- IEBGENER, INTRDR
- IEBPTPCH, INTRDR
- IEHINITT, INTRDR
While reading a table in natural cobol do we have an option to read the specified number of records.
- 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
- True
- False
How to initialise the values while declaring the variable
- #FIELDA (N3) = <100>
- #FIELDA (N3) INIT <100>
- #FIELDA (N3) INITIALISE <100>
- ALL
what does PS parameter signify
- determine whether page ejects are to be performed or not
- determine the maximum number of lines per (logical) page for a report
- determine the minimum number of lines per (logical) page for a report
- NONE
Is the following Evaluate clause with no WHEN phrase coded syntactically valid?? (True-YES/False-No) EVALUATE A ALSO B END-EVALUATE.
- True
- False
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)
- INPUT
- OUTPUT
- INPUT-OUTPUT
- OUT-INPUT
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.
- True
- False
CONFIGURATION SECTION in COBOL must be present.
- True
- False
------ enables a program that is executing outside a particular BTS process to access an activity within the process.
- ACQUIRE
- ABEND
- ADDRESS
- ADD SUBEVENT
------ 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.
- ASKTIME
- TIME
- CONVERTTIME
- FORMATTIME
------ acquires a session to a remote system.
- GDS ALLOCATE
- GDS ASSIGN
- ACQUIRE
- GDS ACQUIRE
-------- causes an APPC basic conversation to end immediately, regardless of the conversation state. The partner transaction is informed.
- GDS ABEND
- ABEND
- GDS ISSUE ABEND
- ISSUE ABEND
Syntax for IGNORE CONDITION
- IGNORE CONDITION <condition>
- IGNORE <condition>
- IGNORE <condition> CONDITION
- CONDITION IGNORE <condition>
Which command creates the JOURNAL Record.?
- LINK
- JOURNAL
- ISSUE JOURNAL
- LOAD