GDG Create syntax ?

Answers were Sorted based on User's Feedback



GDG Create syntax ?..

Answer / duraiece2001

//JOB1 JOB (A123),DURAI,NOTIFY=&SYSID,CLASS=A,
// MSGLEVEL=(1,1)
//STEP1 EXEC PGM=IDCAMS
//SYSIN DD *
DEFINE GDG(NAME(FINANCES.MONTHLY) -
LIMIT(5) -
NOEMPTY -
SCRATCH)
/*
//

Is This Answer Correct ?    26 Yes 0 No

GDG Create syntax ?..

Answer / ravichandra ch

//JOB1 JOB NOTIFY=&SYSID
//STEP1 EXEC PGM=IDCAMS
//SYSIN DD *
DEFINE GDG(NAME(FINANCES.MONTHLY) -
LIMIT(5) -
NOEMPTY/EMPTY -
SCRATCH/NOSCRATCH) -
/*
//

Is This Answer Correct ?    9 Yes 1 No

GDG Create syntax ?..

Answer / roman g.

Every answer here causes RC16 after run.
The reason is missing SYSPRINT DD in JCL.
...
//SYSPRINT DD SYSOUT=*
...

Is This Answer Correct ?    7 Yes 2 No

GDG Create syntax ?..

Answer / sharath

//jobname job &&sysuid
//gdg1 exec pgm=idcams
//sysin dd *
define GDG(Name(sharath.pds) -
limit(6) -
scratch -
empty/noempty
/*
//

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More JCL Interview Questions

A statement about PROCs is " In PROCs, Symbolic Parameters can be assigned on PROC and EXEC", BUT On which EXEC, (i) On the JCL's EXEC which is calling to PROC1. (Inside JCL, EXEC PROC1) (ii) or On the PROC's EXEC where it calls the PGM1. (Inside PROC, EXEC PGM=PGM1)

1 Answers   IBM,


What is the function of job statement in jcl?

1 Answers  


How many types we can give input to JCL

5 Answers   UHG,


What is difference between Return Code, user completion code, Abend code and reason Code?

2 Answers   IBM, Satyam, Wipro,


In order to continue a job after a return code of 12 in step1, what the step2 exec statement include?

1 Answers  


what is the use of JCL?

1 Answers  


if we give two job cards in a single what happens

3 Answers   IBM,


I have multiple jobs ( JCLs with several JOB cards ) in a member. What happens if I submit it?

16 Answers  


FOR a GDG, the book by 'SABA ZAMEER' says 'We can NOT ALTER the LIMIT parameter after it is defined'. (p-211). But many persons have written that it can be changed, which one is true ?

4 Answers   IBM,


Can we DELETE all the Generations of a GDG at once, WITHOUT deleting the GDG itself ?

7 Answers   IBM,


A STEP has more than 1 file as INPUT. And we have to put all these records int 1 output file. How to do ? //InputF  DD DSN=ID.File1              DSN=ID.File2              DSN=ID.File3

1 Answers   FIS,


Explain concatenating datasets?

2 Answers   CTS,


Categories