Hi Frank,
Is it possible to copy a GDG versions to another new GDG (one old generation to one new generation) using the SORT?
Please let me know.
TIA.
Copy GDG to GDG (one to one).
Moderators: Frank Yaeger, DikDude, Moderator Group
Copy GDG to GDG (one to one).
Arr Bee
-------------
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)
-------------
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)
- kvenkat_b4u@yahoo.com
- Member
- Posts: 2
- Joined: Sat Apr 22, 2006 3:07 pm
- Location: chennai
GDG
HI,
WE CAN COPY OLDER VERSION OF GDG TO NEWER VERSION BY USING SORT
//STEP4 EXEC SORTD
//SORTIN DD DSN=DEMO.TEST.GDG.G0001V00,DISP=SHR
//SORTOUT DD DSN=DEMO.TEST.GDG(+1),
// DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(1,1),RLSE),
// DCB=(LRECL=80,BLKSIZE=800,RECFM=FB),
// UNIT=SYSDA
//SYSIN DD *
SORT FIELDS=(1,5,CH,A)
/*
//SYSOUT DD SYSOUT=*
//
WE CAN COPY OLDER VERSION OF GDG TO NEWER VERSION BY USING SORT
//STEP4 EXEC SORTD
//SORTIN DD DSN=DEMO.TEST.GDG.G0001V00,DISP=SHR
//SORTOUT DD DSN=DEMO.TEST.GDG(+1),
// DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(1,1),RLSE),
// DCB=(LRECL=80,BLKSIZE=800,RECFM=FB),
// UNIT=SYSDA
//SYSIN DD *
SORT FIELDS=(1,5,CH,A)
/*
//SYSOUT DD SYSOUT=*
//
Love to learn ever..,
By,
venkat
By,
venkat
-
- Member
- Posts: 10
- Joined: Thu Jul 21, 2011 1:34 pm
thats a good one ..........but sort work files are must between SORTIN AND SORTOUT.
//SORTWK01 DD UNIT=DASD,SPACE=(TRK,(1,1),RLSE
ANY QUERIES:ramanamurthyt87@gmail.com
//SORTWK01 DD UNIT=DASD,SPACE=(TRK,(1,1),RLSE
ANY QUERIES:ramanamurthyt87@gmail.com
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
thx for updating a 5 year old thread.
and if the SORT option had been SORT FIELDS=COPY, no sortwork files would have been needed.
also, placement of dd statements within a step have no manditory order.
and if the SORT option had been SORT FIELDS=COPY, no sortwork files would have been needed.
also, placement of dd statements within a step have no manditory order.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
-
- Member
- Posts: 10
- Joined: Thu Jul 21, 2011 1:34 pm
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
Actually, coding SORTWKs in the JCL is not a (Sync or DF) Sort requirement. Allowing Sort to dynamically allocate necessary SORTWORK space is generally considered more efficient, as the SORTWORK space is acquired "as needed" and you avoid scenarios where disk space is potentially over-allocated by the user.
Regards,
Anuj
Anuj
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page