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.
JCL to create GDG
-
- Posts: 1
- Joined: Wed Dec 05, 2007 12:48 pm
- Skillset: COBOL,JCL,MVS,CICS,VSAM
- Referer: freind
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: JCL to create GDG
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.
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.
d.sch.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Create multiple records based on one record within a file.
by chillmo » Thu Aug 11, 2022 3:54 am » in Syncsort/Synctool - 5
- 7688
-
by sergeyken
View the latest post
Fri Aug 12, 2022 2:23 am
-
-
-
Issue Create/delete ALIAS IDC3013I and then IDC3012I
by jcdm » Thu Dec 05, 2024 9:26 pm » in VSAM/SMS - 1
- 1699
-
by willy jensen
View the latest post
Fri Dec 06, 2024 12:04 am
-