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 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 READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am


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