Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 37
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: 37
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 Extract record for change in combinat... Trinadh DFSORT/ICETOOL 5 Thu Nov 23, 2017 3:32 pm
No new posts JOINKEYS Paired and Unpaired Sort on ... MFwhiz DFSORT/ICETOOL 7 Tue Nov 07, 2017 2:46 am
This topic is locked: you cannot edit posts or make replies. Incrementing current time field by 30... arunsoods DFSORT/ICETOOL 11 Thu Oct 26, 2017 3:22 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us