can u explain gdg with example wht happens if we give limit,empty,noempty,scartch and no scartch
Answer / prabudha jain
The GDG syntax is
//SYSIN DD *
DEFINE GDG(NAME (MYLIB.LIB.TEST) -
LIMIT (10) -
NOEMPTY -
SCRATCH)
/*
LIMIT -This parameter is used to specify the total number
of generations that the GDG may contain.
EMPTY -Specifies tht all existing generations of the GDG
are to be uncataloged whenever the generations of GDG
reached the maximum limit.
NOEMPTY -Specifies that only the oldest generation of the
GDG is to be uncataloged if the limit is reached.
SCRATCH -Specifies that whenever entry of the GDG is
removed from the index, it should be deleted physically and
uncataloged.
NOSCRATCH-Specifies that whenever entry of the GDG is
removed from the index, it should not be physically deleted
and uncataloged.
Note:SCRATCH and NOEMPTY are the default parameters.
Is This Answer Correct ? | 26 Yes | 1 No |
What are the default system and catalog libraries in JCL?
WORKING-STORAGE SECTION. 01 GROSS-PAY. 05 BASIC-PAY PIC 9(5). 05 ALLOWENCES PIC 9(3). PROCEDURE DIVISION. MOVE 1000 TO BASIC-PAY. MOVE 250 TO ALLOWENCES. DISPLAY GROSS-PAY. STOP RUN. 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move
how to compare two datasets without using superce because output is limited to 133 bytes
What are the differences between JES2 & JES3 ?
with out sorting how to copy records from one file to another file using jcl.Mean I have one input file in which the record are like 1,6,5,4,2,3(for example) and i want to copy to output file from top to bottom(without sorting) like 3,2,4,5,6,1.so I want the JCL for this.cna any one can answers?
What is the meaning of the EXEC statement keyword, COND? What is its syntax?
Explain how can an in-stream dataset be terminated?
What is difference between Return Code, user completion code, Abend code and reason Code?
in catalog procedure i have step1 dd dsn=filea dd dsn=fileb dd dsn=filec ur concatenaning all the files. but i need to override fileb with file 2 ? can anyone give the ans pls for ths
TIME parameter in JOB statement or EXEC statement specifies What type of time (CPU time or execution time)?
What is the use of DUMMY statement in the JCL? What is the use of DUMMY Utility in the JCL?
how to execute the last 5 steps in jcl