How to copy one PS file to multiple PS files with same data?
Answer / ganesamoorthy
//JOB CARD
//STEP1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN1 DD DSN=D362967.TEST.PS1,DISP=SHR
//OUT1 DD DSN=D362967.TEST.PS2,DISP=SHR
//OUT2 DD DSN=D362967.TEST.PS3,DISP=SHR
//TOOLIN DD *
COPY FROM(IN1) TO(OUT1,OUT2)
/*
This will copy datas from one PS file to multiple PS files.
| Is This Answer Correct ? | 13 Yes | 2 No |
Could anyone please suggest me what is the maximum length of data that can be pass as input in //sysin dd * This was asked in interview. TIA
Suppose I have a file with three fields with data in the following format 1. empid - S9(4) COMP 2. empname - X(20) 3. empsal - S9(5)V(2) COMP-3 If I view this file, it will not be in a readable format. How to display the empid and empsal fields in a readable format without using COBOL program? What kind of SORT card will have to be coded?
Explain the function of a dd statement?
ihave ten flatfile in that iwant to concatinate all the files except file 5,6 into output file by uing jcl? how to do this? give me detail yntax for tis?
suppose i have 10 job steps and i want to execute only step 6.How to write?
what happens in execution stage in job processing?
i want to restart frm step 2, previously i coded cond parameter on step2 wht happens at tht time ?
In sms datasets, what is the function of the dd avgrec keyword?
What is job control language?
At what stage, operator can change the class and priority of a submitted job?
what JCL Procedures?
i want to store 20 digits . how will u do it in cobol ?