Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

A job has 90 steps i want to execute only step7 and step15

3 Answers   Cognizant,


I have 5 steps in my job. say s1, s2, s3, s4, s5 //s1 exec ............. //s2 exec ............ //s3 exec .......... //s4 exec ........ //s5 exec ............... my question is i want to exeute only s2 and s4 steps... please advice me how to do this:

4 Answers   ITC Infotech, TCS,


Describe the DD statement, its meaning, syntax and keywords?

2 Answers  


Is CPU time (TIME parameter) assigned to a JOB and JOBSTEP BOTH, by default ?

6 Answers   IBM,


What dd statement is used to supply the name of a dataset?

0 Answers  


Differentiate between the joblib and the steplib statements?

0 Answers  


What is a procedure?

1 Answers  


Explain about REXX

1 Answers  


How is a dataset passed from one step to another?

2 Answers   DELL,


what are the various stages of job processing?

0 Answers   IBM,


When will we need to specify Space parameter ?

3 Answers   Wipro,


I have a file in which I have 20 records. I want my first record to go into file 1 and second record to go in second file. I want to copy the alternate records like this in the two output files. How can I do this using JCL?

4 Answers  


Categories