IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SORT FIELDS CH format issue


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Oct 06, 2010 8:27 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
Search our Forums:

Back to Top