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 How to include a particular field val... sakrat DFSORT/ICETOOL 8 Fri Apr 06, 2018 8:27 pm
No new posts Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am

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