View previous topic :: View next topic
|
Author |
Message |
Jain Abhinav
New User
Joined: 20 Dec 2007 Posts: 8 Location: India
|
|
|
|
Hi,
The input file to the SORT step is getting generated in the same JCL. The file is a GDG. I need a SORT step to omit certain records from that GDG. But I do not intend to increase the GDG version number.
I think, I can sort it to a temp dataset and then using REPRO can replace the existing GDG version with temp dataset. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
But I do not intend to increase the GDG version number. |
Terminology is critical in IT, where similar words may mean very different things. Did you mean version here or generation -- there is a huge difference. |
|
Back to top |
|
|
Jain Abhinav
New User
Joined: 20 Dec 2007 Posts: 8 Location: India
|
|
|
|
I meant generation!! |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Using the same input file as output is not the greatest of ideas where data integrity is involved.
My suggestion would be to create the input to the sort either as a temporary or permanent file and the create the next GDG generation as output from the sort step. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Strongly suggest you follow Expat's advice.
If you try to re-write the same file, and the sort abends for any reason (x37, timeout, operator cancel, etc), the input will have to be re-created thereby wasting resources.
If you do as Expat suggests, the restart is trivial. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Jain Abhinav wrote: |
I think, I can sort it to a temp dataset and then using REPRO can replace the existing GDG version with temp dataset. |
You already wrote this, so I think you've a solution. However, your subject line gives a different impression and usually I refer to that as "suicidal effort" - which should be avoided. |
|
Back to top |
|
|
Jain Abhinav
New User
Joined: 20 Dec 2007 Posts: 8 Location: India
|
|
|
|
Thanks Anuj for your "fitting" reply. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
What does that mean? |
|
Back to top |
|
|
|