Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

What is NOTCAT ?

0 Answers  


What is the meaning of data definition name (ddname) and dataset name (dsname) in the DD statement?

2 Answers  


what is a cataloged procedure ?

1 Answers   Xansa,


What is DYNAMBR in jcl?

2 Answers   CTS,


How would you understand error(execution phase)?

0 Answers  






How to see the COMP3 value(packd decimal)

2 Answers   iGate,


ihave ten flatfile in that iwant to concatinate all the files except file 5,6 into output file by uing jcl? how to do this? give me detail yntax for tis?

4 Answers   IBM,


Explain the function of the steplib dd statement?

0 Answers  


Mention the types of job control statements?

0 Answers  


What is the purpose of dd * statement in jcl?

0 Answers  


My requirement is : How to populate a empty PS/flat file with ONLY spaces in the first line. You should not use any input dataset to do this. I'm not sure whether you may use any utility for this purpose?

2 Answers   HCL,


in a series of 10 steps, i need to run only 1,3,5,7 & 9th steps only. how do u code?

5 Answers   ADP,






Categories