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



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

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

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

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

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

Answer / madhu

hi Mr.Bjoern
is it correct answer?

Is This Answer Correct ?    2 Yes 2 No

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

Answer / garry

@Madhu.
Not it not.

He is trying to write a PDS member to a GDG.

But your requirement/question is just opposite.

Is This Answer Correct ?    0 Yes 0 No

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

Answer / garry

Let me check once again and ignore previous reply .

Is This Answer Correct ?    0 Yes 0 No

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

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

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

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

Post New Answer

More JCL Interview Questions

whats the diff bw the evaluate also and and?

0 Answers   CGI,


What is MOD and when would you use it?

3 Answers  


Which is the most widely used batch performance monitor for DB2?

2 Answers  


How to overide the symbol parameter in the jcl ?

3 Answers   UST,


Hi, all Suppose i have 10 step in a job (s1,s2,s3,...s10) i want to execute step9 first and then step3 and i used the DPRTY for these steps. so what will happen to other steps? Will the get executed or only these two steps get executed?

2 Answers  






What is GDG and what is the maximum limit of versions that can be created?

9 Answers   Convergys,


what is A-MODE and R-MODE?

2 Answers  


Explain about LMINIT - generate a data ID for a data set

1 Answers  


wht is sysudump n sysout,sysprint ?

1 Answers   L&T,


what is the use of IEBGENER utility?

0 Answers  


How to submit a jcl from cics?

0 Answers  


What is the function of //jcllib statement?

0 Answers  


Categories