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 |
how can you check if a file is empty using jcl?
Explain about File Tailoring
Hi, can any one tell about " How do u eliminate the duplicates "
Which is the most widely used batch performance monitor for DB2?
Is it possible to left uncode disp?
please could u tell me the difference between SORT, SYNCSORT,CA-SORT, DFSORT,
how to create gdg with out using idcams utility
Is it possiable to use a gdg in the INCLUDE statement in a SORT jcl? I am using this because I want to change the condition with out changing the jcl. Please provide with a sample code.
Suppose I have 5 dataset listed under a single DD name in a catlogued PROC. How can I override one of those 5 dataset (say 3rd dataset)?
Do we need to code DCB parameters when using DISP position as MOD?
What is the meaning of the EXEC statement keyword, COND? What is its syntax?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?