How to copy one PS file to multiple PS files with same data?



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

Post New Answer

More JCL Interview Questions

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

3 Answers   VC, Wipro,


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?

4 Answers  


Explain the function of a dd statement?

1 Answers  


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?

4 Answers   IBM,


suppose i have 10 job steps and i want to execute only step 6.How to write?

6 Answers  


what happens in execution stage in job processing?

1 Answers   IBM,


i want to restart frm step 2, previously i coded cond parameter on step2 wht happens at tht time ?

4 Answers   Infosys,


In sms datasets, what is the function of the dd avgrec keyword?

1 Answers  


What is job control language?

1 Answers  


At what stage, operator can change the class and priority of a submitted job?

2 Answers  


what JCL Procedures?

1 Answers  


i want to store 20 digits . how will u do it in cobol ?

1 Answers  


Categories