Is it possible to take a PDS and write it to a GDG? If so,
can you provide an example? Thanx
Answers were Sorted based on User's Feedback
Answer / vj
Yes, it is possible to write a pds to gdg.. i tried the
below jcl and it worked out....
//JS001 EXEC PGM=IEBGENER
//*
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DSN=TTTTT.NNNN.OOOO(PPPP),DISP=SHR
//SYSUT2 DD DSN=AAAA.BBB.GDG(+1),
// DISP=(NEW,CATLG,DELETE),
// MGMTCLAS=MC0044,
// VOL=(,,,10),
// SPACE=(10796,(5,3),RLSE),
// DCB=(RECFM=FB,LRECL=80,
// DSORG=PS,BLKSIZE=0,BUFNO=30)
//*
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / 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 |
Answer / mdvasanth86
No doubt, it will work.
A GDG is similar to a PS in most ways we use it.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sanjeev
it is not possible to take pds to write into gdg because
gdg contains only sds files.
| Is This Answer Correct ? | 1 Yes | 4 No |
What is one line to pass PARM from JCL to COBOL?
diff bw SB37,SD37,SE37 ?( bcz these 3 belongs Space related abends only)
Is it possible to code instream data in a PROC?
what is the difference between the JCLLIB and JOBLIB ,and where do we use it ?
if we give TIME=0 how many sec that job/step
Suppose I have seven jobs to do, but I want to hold one than how can I do this?
Is acct parameter mandatory?
How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you
How to copy one PS file to multiple PS files with same data?
Can we find specific member without knowing the name of PDS or can we search a member to which PDS it belongs to? if so how?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
GDG Create syntax ?