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: 134
Joined: Sun Jan 16, 2011 6:30 pm
Has thanked: 55 times
Been thanked: 0 time

Re: Revers field on SYSOUT


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)
Global moderator
Posts: 3738
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 255 times



  • Related topics
    Last post