Page 1 of 1

OUTREC SORT help for PD field

Posted: Wed Aug 09, 2017 12:05 am
by MFLearner-Pav
I am trying sort and write in outrec for an input field which has S9(11)v99 Comp-3 to an output tabe which has declaration as S9(16)v99 Comp-3. In Sorting, input variable field position is 30 and output variable field position for the same field is 26. next field , I am starting at position 36 as this field needs 10 bytes.
I am trying this code , but it is appending spaces for the 4 bytes left. I don't want spaces. Rather fill the intial 4 bytes with zeros and then append the input record. how do I do that? Also please confirm if input byte length is 7 and output byte length is 10.
OUTREC FIELDS=(26:30,7),

- how do I fill the remaining 3 bytes with zeros in the prefix? need help with syntax.