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

In a single step if input file is present then only need to copy into output file or else need to through a RC is it possible. Note : i want it in a single step

1 Answers  


what is DD statement is used in JCL?

0 Answers  


Explain how can the attributes of one sms dataset be copied to another dataset?

0 Answers  


I have an job having three job steps.Suppose i want to call a pgm in step2 and aproc in step3.How to write the code?

2 Answers   IBM,


what r the types of job control statements?

2 Answers  






you have one jcl .in sort step 5 files are there.if out of 5 files if one file is uncataloged or not there then how will you correct your jcl so that problem does not come. you should not create this file externally.how will u overcome it.

3 Answers  


My JOB contains three steps. //STEP1 EXEC PGM=ABC //STEP2 EXEC PGM=DEF //STEP3 EXEC PGM=GHI My Question is 1) I want to execute second step only. How will do. 2) Soppose U consider above three steps are in PROC steps and I want execute the PROC second step only? How to execute the second step only. During exection time its creating any ABEND? Please let me know..........

2 Answers  


I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?

3 Answers   Wipro,


Can we give two user name in NOTIFY parameter in JOBCARD

1 Answers   Syntel,


what are the technical terms for // /* in jcl

3 Answers   Cap Gemini,


how to create a member or sequential dataset through tso command??

4 Answers  


Differentiate between addressing mode and run mode.

0 Answers  


Categories