Is it possible to take a PDS and write it to a GDG? If so,
can you provide an example? Thanx

Answer Posted / bjoern

//COPY EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DISP=OLD,DSN=PDS
//SYSUT2 DD DSN=PDS.GDG(+1),
// DCB=(RECFM=FB,LRECL=80),
// DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(11,1,10),RLSE)

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What parameters can be used to limit the number of records written to a sysout dataset?

761


When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

759


Explain how can return codes be tested before execution of a job step?

841


what is the purpose of coding notify parameter in job statement?

695


How to resolve the error "WER488A JOIN CAPACITY EXCEEDED" I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem? I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem?

7633






In job processing, what happens in conversion stage?

753


What parameter of the job statement is used to limit the cpu time consumed by the job?

848


how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?

820


What are hierarchy levels in jcl?

965


Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?

731


How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?

1811


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

615


How would you understand error(execution phase)?

643


How to do automated restart when a job abend?

799


what is use of dcb parameter in dd statement?

789