View previous topic :: View next topic |
Author |
Message |
palakkal Beginner
Joined: 08 Sep 2005 Posts: 1 Topics: 1
|
Posted: Thu Sep 08, 2005 4:53 pm Post subject: ISPF Sort command |
|
|
hi..
i have a file that is to be sorted on the following order
15th character to 16th character
followed by 18th character to 19th character and then
by 2nd charcater to 5th character.
i need to do it using is ispf in edit mode and not by submitting program.
is there any command that can help here?
i tried the sort command as sort15,18,2
but this didnt seem to help...
the command works well when there is only one parameter to sort on.eg in case of "sort 15" , it sorts on order of 15th charcater...
can anybody please help?
thanks in advance,
zake |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Thu Sep 08, 2005 7:27 pm Post subject: |
|
|
Palakkal,
You can specify one or more sort fields can be specified.
Code: |
Command ===> SORT 10 sorts from column 10 to right bound.
Command ===> SORT 10 15 sorts from columns 10 to 15.
Command ===> SORT 20 25 1 10 sorts using two sort fields.
|
The maximum number of sort fields is 5. For multiple sort fields, start and end columns must be specified.
So for your requirement , it would be as follows
Code: |
SORT 15 16 18 19 2 5
|
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Thu Sep 08, 2005 11:05 pm Post subject: |
|
|
PF1 provides extensive help in ISPF (this is actually ISPF, not TSO since TSO is the linemode program on which ISPF runs). I'd suggest reading through it at your liesure. You will find good information and it is an easy read. |
|
Back to top |
|
 |
|
|