How do a sort to rewrite a dataset in jcl?



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

How do a sort to rewrite a dataset in jcl?

Postby Kevin H » Fri Feb 27, 2009 11:40 am

In tso, I want to sort a file to rewrite one other existent file in JCL.
Could I do some programming in the sort_parm file? How to do it?
If there is some other ways to do that, please tell me.
thanks, guys!
Kevin H
 
Posts: 3
Joined: Fri Feb 27, 2009 7:54 am
Has thanked: 0 time
Been thanked: 0 time

Re: How do a sort to rewrite a dataset in jcl?

 

Re: How do a sort to rewrite a dataset in jcl?

Postby dick scherrer » Sat Feb 28, 2009 12:55 am

Hello,

It is not clear what you want to do. . .

Typically, sorts are run in batch via jcl and it is a very bad practice to use the same file as input and output. If there is any abend, the original data is very possibly destroyed.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post