How to pass the temp dataset form one JOB step to another?
Answer Posted / kumar
By coding DISP=PASS,Delete on dd statement,it passes the
dataset to
another dataset.
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat
I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK
What is timing concept in mainframe?
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.
Is it possible to code instream data in a PROC?
Can I send output of job to my remote device careerride123?
what is a jcl?
How to pass the parameter in parm using linkage section ? (syntax)?
Explain in DD statement what is the use of DCB parameter?
What is jcl in mainframe, and how many types of jcl statements are there for a job?
What is the function of the dd mgmtclas keyword in sms datasets?
What is one line to pass PARM from JCL to COBOL?
what is DSN in JCL and what are the parameters to declare the DSN?
how can the same proc be re-used and called by many jobs?