superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
You need to allocate your input dataset to SORTIN, your output dataset to SORTOUT (they can be the same dataset, if you wish), and your terminal or DUMMY to SYSOUT:
Code: |
TSO ALLOC DD(SORTIN) DA(my.dataset) SHR REU"
TSO ALLOC DD(SORTOUT) DA(my.dataset) SHR REU"
TSO ALLOC DD(SYSOUT) DA(*) REU"
|
Then, call the SORT program:
Use your terminal (i.e. the SYSIN DD) to enter your SORT commands, then end the input stream with a slash/asterisk (/*):
Code: |
SORT FIELDS=(1,8,BI,A,10,6,BI,D)
/*
|
|
|