What will happen when we try to pass data from JCL to COBOL
using PARM parameter without declaring the length field in
Linkage Section?
Answer Posted / madhu t
if we do not code the length field for parm in cobol then
the first 2 bytes of parm data will be used to stored the
length of parm field and also first 2 bytes of parm data
will be lost.
| Is This Answer Correct ? | 15 Yes | 3 No |
Post New Answer View All Answers
how to run batch program without jcl?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
What statement can be used to send data to another mvs jes3 node?
How can the attributes of one sms dataset be copied to another dataset?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375
What are the utility programs in jcl?
What do you understand by the term job time – out and how can you overcome that?
which parameter is used to check the syntax of a jcl without executing it?
what is use of dcb parameter in dd statement?
How can the disposition of sysout datasets be set for an entire jobstream?
What is jcl in mainframe?
In sms datasets, what is the function of the dd avgrec keyword?
Is their any limit for data sets?