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
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 |
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 |
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 |
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 |
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.
which statement is used to end the in-stream procedure in a jcl?
do we need to mention the location of catalogued procedure for each it's call in a single job?
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.
How is the keyword DUMMY used in JCL?
What are three major types of JCL statements? What are their functions?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
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
wht r different types of sort fields in jcl ?
Explain about LMFREE�free data set from its association with data ID
What is a procedure?
wht happens if cond=true ? pls give me with an example ?