प्रश्न और उत्तर का अभ्यास करें
8प्र: The EIB field which gives the last CICS command executed is? 1675 05b5cc7d9e4d2b41977751560
5b5cc7d9e4d2b41977751560- उत्तर देखेंउत्तर छिपाएं
- Workspace
- SingleChoice
उत्तर :
व्याख्या :
EIBRCODE
प्र: Specify the CICS command used to read a VSAM record starting with prefix F. Code all the relevant options? 1751 05b5cc7d9e4d2b4197775155f
5b5cc7d9e4d2b4197775155f- उत्तर देखेंउत्तर छिपाएं
- Workspace
- SingleChoice
उत्तर :
व्याख्या :
EXEC CICS READ DATASET('FILENAME') INTO(data-area) RIDFLD(data-area) KEYLENGTH(1) GENERIC LENGTH(WK-LEN) END-EXEC.
प्र: How do you define a sort file in JCL that runs the COBOL program? 1692 05b5cc7d9e4d2b4197775155e
5b5cc7d9e4d2b4197775155e- उत्तर देखेंउत्तर छिपाएं
- Workspace
- SingleChoice
उत्तर :
व्याख्या :
Use the SORTWK01, SORTWK02,..... dd names in the step. Number of sort datasets depends on the volume of data being sorted, but a minimum of 3 is required.
प्र: What are different file OPEN modes available in COBOL? 920 05b5cc7d9e4d2b4197775155d
5b5cc7d9e4d2b4197775155d- उत्तर देखेंउत्तर छिपाएं
- Workspace
- SingleChoice
उत्तर :
व्याख्या :
Open for INPUT, OUTPUT, I-O, EXTEND. 1.INPUT : for read only purpose 2.OUTPUT : for write only purpose 3.EXTEND : for appending records 4.I-O : for read and write(using EXTEND) purpose
प्र: How do you sort in a COBOL program? Give sort file definition, sort statement syntax and meaning. 1962 05b5cc7d9e4d2b4197775155c
5b5cc7d9e4d2b4197775155c- उत्तर देखेंउत्तर छिपाएं
- Workspace
- SingleChoice
उत्तर :
व्याख्या :
Syntax: SORT file-1 ON ASCENDING/DESCENDING KEY 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 are the steps you go through while creating a COBOL program executable? 1695 05b5cc7d9e4d2b4197775155b
5b5cc7d9e4d2b4197775155b- उत्तर देखेंउत्तर छिपाएं
- Workspace
- SingleChoice
उत्तर :
व्याख्या :
DB2 precompiler (if embedded sql used), CICS translator (if CICS program), COBOL compiler, Link editor. If DB2 program, create plan by binding the DBRMs.
प्र: In the JCL, how do you define the files referred to in a subroutine ? 1089 05b5cc7d9e4d2b4197775155a
5b5cc7d9e4d2b4197775155a- उत्तर देखेंउत्तर छिपाएं
- Workspace
- SingleChoice
उत्तर :
व्याख्या :
Supply the DD cards just as you would for files referred to in the main program.
प्र: What COBOL construct is the COBOL II EVALUATE meant to replace? 832 05b5cc7d9e4d2b41977751559
5b5cc7d9e4d2b41977751559- उत्तर देखेंउत्तर छिपाएं
- Workspace
- SingleChoice
उत्तर :
व्याख्या :
EVALUATE can be used in place of the nested IF THEN ELSE statements.

