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
 

 

Reverse the numeric field using JCL SORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
purushottam

New User


Joined: 26 Feb 2007
Posts: 34
Location: pune

PostPosted: Wed Mar 30, 2011 9:43 pm    Post subject: Reverse the numeric field using JCL SORT
Reply with quote

Hi, Please suggest me if there is any way to reverse the numeric field using JCL SORT. For example : Field #Employee-Nr is numeric fields with lenght 10 and it contains data like 1234567890, I need to get the output as 0987654321.

I could think of using the OUTREC and reposition the field like below

OUTREC FIELDS=(10,01,09,01,08,01,07,01,06,01,05,01,04,01,03,01,02,01,01,01)

But it does looks good. Please suggest the another way of doing it.

Thanks,
Puru
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Wed Mar 30, 2011 10:21 pm    Post subject:
Reply with quote

Quote:
But it does looks good.


Do you mean it doesn't look good? In what way? It looks fine to me.
Back to top
View user's profile Send private message
purushottam

New User


Joined: 26 Feb 2007
Posts: 34
Location: pune

PostPosted: Thu Mar 31, 2011 2:06 am    Post subject: Reply to: Reverse the numeric field using JCL SORT
Reply with quote

I mean it does not look good as the lenght of the my actual field is 16. Do we have a another way of writing it instead of going with each byte.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Thu Mar 31, 2011 2:51 am    Post subject:
Reply with quote

No. A "reverse the characters" function is not available.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 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