INREC - RDW NOT INCLUDED
Posted:
Wed Apr 23, 2014 4:04 am
by fede_cbaa
I'm trying to do this in the Sysin
OPTION COPY
INREC IFTHEN=(WHEN=INIT,FINDREP=(IN=C'"',OUT=C' ')),
IFTHEN=(WHEN=(8,1,CH,EQ,C' '),OVERLAY=(1,1,C' '))
*
but the Job returns me = ABEND U0016
INREC RDW NOT INCLUDED
Do I have something wrong in the Statements?
Re: INREC - RDW NOT INCLUDED
Posted:
Wed Apr 23, 2014 4:32 am
by BillyBoyo
Yes, you need to check the manual for the default start positions for OVERLAY. They are different for fixed-length and variable-length records. It seems you have variable-length records, and you have attempted, by accident, to trample on the RDW, which SORT will not let you do.
It is not clear what you want to do with 1,1 anyway. For variable-length records, the first data-position is 5, so your OVERLAY should be (5:something), where 5: means "column five of the record, which is column one of the record", and the 5 itself should be the actual column where you want the OVERLAY to put data.
Re: INREC - RDW NOT INCLUDED
Posted:
Wed Apr 23, 2014 6:51 pm
by Terry Heinze
Please use Code tags (available with Full Editor).
Click on Code, insert or paste the data, then click Preview.