View previous topic :: View next topic
|
Author |
Message |
jspaulpeter
New User
Joined: 25 Aug 2005 Posts: 12
|
|
|
|
HAI FRIENDS I HAVE ONE DOUBT ?
CAN I SORT ONE PS FILE AND STORE INTO ONE PS FILE?[/b]
Title changed from "JCL SORT" to "CAN I SORT ONE PS FILE AND STORE INTO ONE PS FILE?" : Priyesh. |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Quote: |
CAN I SORT ONE PS FILE AND STORE INTO ONE PS FILE? |
Yes, you can.
Code: |
//STEP01 EXEC SORT
//SORTIN DD DSN=HLQ.INPUT,DISP=SHR
//SORTOUT DD DSN=HLQ.OUTPUT,
// DISP=(NEW,CATLG,DELETE)
//SYSIN DD *
SORT FIELDS=....
// |
Fill up parameters acc to ur need... or get back in case of any problem...
Regards,
Priyesh. |
|
Back to top |
|
|
Gautam512
Active User
Joined: 05 Oct 2005 Posts: 308 Location: Vizag / US
|
|
|
|
Yes U can do that...... |
|
Back to top |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
I think the question is whether the sort can do with one file (input and output the same one). This can be done. The intermediate results of the sort are in sortwk. So:
//sortin dd dsn=file-x,disp=shr
//sortout dd dsn=file-x,disp=shr
//sortwk01 dd dsn=&&sort1,disp=(...etc)
//sortwk03 dd dsn=&&sort2.......
//and as many sortwk files as you need more...
After the sort your input is resorted in the same file. |
|
Back to top |
|
|
|