Page 1 of 1

unexpected results using OVERLAY

PostPosted: Mon Jul 18, 2011 6:20 pm
by shellianne
//SYSIN    DD DD
  SORT FIELDS=COPY
  OUTREC IFTHEN=(WHEN=(60,3,CH,EQ,C'   '),
            OVERLAY=(60:X'00000C')),
  IFTHEN=(WHEN=(10,2,CH,EQ,C'  '),
            OVERLAY=(10:X'000C')),
  IFTHEN=(WHEN=(69,3,CH,EQ,C'   '),
            OVERLAY=(69:X'00000C')),
  IFTHEN=(WHEN=(90,4,CH,EQ,C'    '),
            OVERLAY=(90:X'0000000C'))

"Code'd" - sysin statement is incorrect. . .

This results in the first field being changed to zero however the subsequent updates dont take place. The syntax looks correct to me so I am confused as to why this doesnt work. Any advice gratefully accepted.
s

Re: unexpected results using OVERLAY

PostPosted: Mon Jul 18, 2011 6:55 pm
by BillyBoyo
shellianne wrote://SYSIN DD DD
SORT FIELDS=COPY
  OUTREC IFTHEN=(WHEN=(60,3,CH,EQ,C'   '),
            OVERLAY=(60:X'00000C')),
  IFTHEN=(WHEN=(10,2,CH,EQ,C'  '),
            OVERLAY=(10:X'000C')),
  IFTHEN=(WHEN=(69,3,CH,EQ,C'   '),
            OVERLAY=(69:X'00000C')),
  IFTHEN=(WHEN=(90,4,CH,EQ,C'    '),
            OVERLAY=(90:X'0000000C'))
This results in the first field being changed to zero however the subsequent updates dont take place. The syntax looks correct to me so I am confused as to why this doesnt work. Any advice gratefully accepted.
s


Please try to use Code button, which will preserve spacing.

Syntax looks OK.

So, what about your file? If the positions/lengths are wrong, or there is nothing on the file with blanks in those positions, you are getting the expected output.

If you still don't get to it, can you post a few example lines from your file (don't worry about the one starting at 90).

Re: unexpected results using OVERLAY

PostPosted: Tue Jul 19, 2011 12:22 am
by dick scherrer
Hello,

Suggest you look into "HIT=NEXT". As coded, i believe the process will stop after the first "hit".