I have a file in which I have 20 records. I want my first
record to go into file 1 and second record to go in second
file. I want to copy the alternate records like this in the
two output files. How can I do this using JCL?
Answer Posted / satish
//job statement
//step1 exec pgm=sort
//sortin dd dsn=input file that contain 20 records
//file1 dd dsn=output file
//file2 dd dsn=another output file
//sysout dd sysout=*
//sysin dd *
option copy
outfil fnames=(file1,file2),split
/*
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
Explain dd statement in jcl?
which utility is used to run a cobol-db2 program?
What do you know about jcl?
WORKING-STORAGE SECTION. 01 GROSS-PAY. 05 BASIC-PAY PIC 9(5). 05 ALLOWENCES PIC 9(3). PROCEDURE DIVISION. MOVE 1000 TO BASIC-PAY. MOVE 250 TO ALLOWENCES. DISPLAY GROSS-PAY. STOP RUN. 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move
Can an individual step be restricted from using all the jobs allowed cpu time?
Explain the function of the steplib dd statement?
In sms datasets, what is the function of the dd mgmtclas keyword?
How to pass the parameter in parm using linkage section ? (syntax)?
What is concatenating?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
Is their any limit for data sets?
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
How dummy is used in jcl?
when can a job time-out occur? How to overcome that?
Is acct parameter mandatory?