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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of disp parameter?

643


what is use of disp parameter in dd statement?

649


How does the jcl specify the job to os?

680


How can a fb file convert to vb file using sort program?

797


what is the purpose of coding class parameter in job statement?

706






What is the use of symbol // in jcl?

915


What is the difference between the positional and keyword parameters? Give examples.

691


which utility is used a dummy utility?

777


how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?

776


What are some jcl statements that are not allowed in procedures?

717


Is condition checking possible in jcl? If yes, how?

725


Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed

1957


I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.

1942


Can we call instream to catalog and catalog to instream?

672


Is there any command to check wether the ps file is in sorted order?

2419