Page 1 of 1

How do a sort to rewrite a dataset in jcl?

PostPosted: Fri Feb 27, 2009 11:40 am
by Kevin H
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!

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

PostPosted: Sat Feb 28, 2009 12:55 am
by dick scherrer
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.