Revers field on SYSOUT



IBM's flagship sort product DFSORT for sorting, merging, copying, data manipulation and reporting. Includes ICETOOL and ICEGENER

Revers field on SYSOUT

Postby Mehdi shri » Mon Sep 10, 2012 3:58 pm

Dear friends.
I want to reverse any filed from SORTIN and reformat and put to SORTOUT.
For example I want ACBDEFGHIJ converted to EDBCAFGHIJ (reversing only first 5 characters). Which control statement or technique I must use?
Mehdi shri
 
Posts: 138
Joined: Sun Jan 16, 2011 6:30 pm
Has thanked: 57 times
Been thanked: 0 time

Re: Revers field on SYSOUT

Postby BillyBoyo » Mon Sep 10, 2012 4:48 pm

You can use BUILD. There is no REVERSE function.

BUILD takes data from the "current" record and creates a new one.

INREC BUILD=(5,1,4,1,3,1,2,1,1,1,6,5)


Should get you close.

These users thanked the author BillyBoyo for the post:
Mehdi shri (Tue Sep 11, 2012 5:13 pm)
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times


Return to DFSORT/ICETOOL/ICEGENER

 


  • Related topics
    Replies
    Views
    Last post