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

what is force complete

2 Answers   IBM,


What is the difference between primary and secondary allocations for a dataset?

8 Answers  


When cursor is not closed what is the error?

3 Answers   IBM,


How to identify in JCL that an input file is empty without reading it?

4 Answers   L&T,


what is use of space parameter in dd statement?

0 Answers   IBM,


We are using 2 files , file one has data, file two is empty.Using jcl how can we find the other file is empty?

9 Answers   CSC, IBM,


What is the purpose of the dd keylen parameter?

0 Answers  


How can u know the current date using jcl?

2 Answers   iNautix, Wipro,


What is meant by S0C7 system abend code?

8 Answers  


I have two input files i/p1 name id-key flag date i/p 2 name id-key date if id-key matches in the both the files then it should write the output file from i/p1 with flag 'Y'. It should be done thru JCL sort card ,Please provide the info on this. ---Note : output file should have all records from i/p1 with proper Flag.

2 Answers  


Name the statement which can be used to send data to another mvs jes3 node?

0 Answers  


How to submit a jcl from cics?

0 Answers  


Categories