Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SORT FIELDS CH format issue

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Shanmugavel_03

New User


Joined: 06 Oct 2010
Posts: 7
Location: Wilkes Barre, PA

PostPosted: Wed Oct 06, 2010 8:22 pm    Post subject: SORT FIELDS CH format issue
Reply with quote

Greetings !!!!

I am using the below sort card to sort these three alphanumeric variables. I was expecting an output that 04,05 and 0I will be the order of the output.
But i got the output as 0I,04,05. Now, the question is how does the sort in character format happens in syncsort (do they follow ascii numbers to sort these variables) or (do they follow any pattern to sort these 3 inputs)

//PS0070 EXEC PGM=SYNCSORT
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTIN DD *
05
04
0I
//SORTOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=(1,2,CH,A)
Back to top
View user's profile Send private message

Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed Oct 06, 2010 8:26 pm    Post subject:
Reply with quote

In EBCDIC letters are lower then digits.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8124
Location: East Dubuque, Illinois, USA

PostPosted: Wed Oct 06, 2010 8:27 pm    Post subject:
Reply with quote

Quote:
do they follow ascii numbers to sort these variables
Guaranteed not -- this is a mainframe, which uses EBCDIC not ASCII.
Back to top
View user's profile Send private message
Shanmugavel_03

New User


Joined: 06 Oct 2010
Posts: 7
Location: Wilkes Barre, PA

PostPosted: Wed Oct 06, 2010 9:21 pm    Post subject:
Reply with quote

Thanks Robert and Craq for your response....
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm
No new posts SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Optimize sort inrec parse vishwakotin DFSORT/ICETOOL 6 Mon Jun 26, 2017 11:15 pm
No new posts Reduce CPU Times for Join Sort santoshn SYNCSORT 12 Sat Jun 10, 2017 1:40 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us