Page 1 of 1

Revers field on SYSOUT

PostPosted: Mon Sep 10, 2012 3:58 pm
by Mehdi shri
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?

Re: Revers field on SYSOUT

PostPosted: Mon Sep 10, 2012 4:48 pm
by BillyBoyo
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.