MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ISPF Sort command

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
palakkal
Beginner


Joined: 08 Sep 2005
Posts: 1
Topics: 1

PostPosted: Thu Sep 08, 2005 4:53 pm    Post subject: ISPF Sort command Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Sep 08, 2005 7:27 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Thu Sep 08, 2005 11:05 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group