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: 7935
Location: Bellevue, IA

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 SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 5 Sat Jan 21, 2017 4:02 am
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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