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

My JCL contains four steps //STP1 A(+1), DISP = NEW //STP2 A(+2), DISP = NEW //STP3 A(+3), DISP = NEW //STP4 A(+1), DISP = OLD STP3 was abended and I want restart my JCL from STP3 onwards & what are the precaution I want to take & what are the changes I need to make. Pls let me know.

4 Answers   CTS,


which statement is used to end the in-stream procedure in a jcl?

1 Answers   IBM,


do we need to mention the location of catalogued procedure for each it's call in a single job?

1 Answers  


How different is the JCL executing a COBOL program? 1) if the program is using VB file as input. 2) if the program is using FB file as input.

1 Answers   HSBC,


How is the keyword DUMMY used in JCL?

4 Answers  






What are three major types of JCL statements? What are their functions?

1 Answers  


in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?

0 Answers   IBM,


If i have defined an temperory dataset in step2, how can i call back or use the same dataset in step5 of the same job

4 Answers   UST,


wht r different types of sort fields in jcl ?

1 Answers   IBM,


Explain about LMFREE�free data set from its association with data ID

0 Answers  


What is a procedure?

1 Answers  


wht happens if cond=true ? pls give me with an example ?

2 Answers   Syntel,


Categories