IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Reverse the numeric field using JCL SORT


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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 Developer


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

PostPosted: Wed Mar 30, 2011 10:21 pm
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
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 Developer


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

PostPosted: Thu Mar 31, 2011 2:51 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts JCL sort card - get first day and las... JCL & VSAM 9
Search our Forums:

Back to Top