How do you set a return code to the JCL from a COBOL program?
What is SSRANGE, NOSSRANGE ?
What is 77 level used for ?
What is 88 level used for ?
What does the IS NUMERIC clause establish ?
Can the OCCURS clause be at the 01 level?
What is the difference between index and subscript?
Need to have index for a table in order to use SEARCH, SEARCH ALL.
What is the difference between SEARCH and SEARCH ALL?
SEARCH ALL - is a binary search & the table must be sorted ( ASCENDING/DESCENDING KEY clause to be used & data loaded in this order) before using SEARCH ALL.
My program has an array defined to have 10 items. Due to a bug, I find that even if the program access the 11th item in this array, the program does not error. What is wrong with it?
How do you sort in a COBOL program? Give sort file definition, sort statement syntax and meaning.
SORT file-1 ON ASCENDING/DESCENDING KEY
USING file-2
GIVING file-3.
USING can be substituted by INPUT PROCEDURE IS para-1 THRU para-2
GIVING can be substituted by OUTPUT PROCEDURE IS para-1 THRU para-2.
file-1 is the sort workfile and must be described using SD entry in FILE SECTION.
file-2 is the input file for the SORT and must be described using an FD entry in FILE SECTION and SELECT clause in FILE CONTROL.
file-3 is the outfile from the SORT and must be described using an FD entry in FILE SECTION and SELECT clause in FILE CONTROL.
file-1, file-2 & file-3 should not be opened explicitly.
INPUT PROCEDURE is executed before the sort and records must be RELEASEd to the sort work file from the input procedure.
OUTPUT PROCEDURE is executed after all records have been sorted. Records from the sort work file must be RETURNed one at a time to the output procedure.
What is a scope terminator?
What is the difference between CONTINUE & NEXT SENTENCE ?
What are the steps you go through while creating a COBOL program executable?
If DB2 program, create plan by binding the DBRMs.
What are the different data types available in COBOL?
When would you use in-line perform?
What do you do to resolve SOC-7 error?
Some installtion might have batch program debugging tools.
What does the INITIALIZE verb do?
Numeric, Numeric edited items set to ZERO.
FILLER , OCCURS DEPENDING ON items left untouched.
Name the divisions in a COBOL program.