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: 8057
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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts Sum Fields ballaswaroop DFSORT/ICETOOL 4 Tue May 02, 2017 11:07 am


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