JCL to create GDG



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

JCL to create GDG

Postby parul singh » Wed Dec 05, 2007 1:04 pm

Please can any one Create JCL to do following:
1.create GDG base which will contain the output from a weekly run.Therefore the group should be large enough to contain 52 weeks of data.Define a model DSCB .
2.create three GDG generations using the model DSCB.
The first GDG generation should aontain the EMPLOYEE data in the following format:
01 EMP-REC.
05 ENO PIC X(5).
05 ENAME PIC A(15).
05 ESAL PIC 9(6).
3. Sort first GDG generation on the basis of ESAL in descending order, ENAME in ascending order and create a new GDG generation to contain the sorted data in the above order.
4. Delete the first GDG generation using JCL.
parul singh
 
Posts: 1
Joined: Wed Dec 05, 2007 12:48 pm
Has thanked: 0 time
Been thanked: 0 time

Re: JCL to create GDG

Postby dick scherrer » Thu Dec 06, 2007 2:34 am

Hello,

You will want to begin by learning how to define a generagion data group using IDCAMS.
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dgt1i210/15.0?DT=20000721191337

After you have defined the group, you can creeate the required generations with the necessary sorting (yo may need to know the sort product used on your system).

When there are problems or questions, post them here and someone should be able to help.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post