unexpected results using OVERLAY



Support for NetApp SyncSort for z/OS, Visual SyncSort, SYNCINIT, SYNCLIST and SYNCTOOL

unexpected results using OVERLAY

Postby shellianne » Mon Jul 18, 2011 6:20 pm

//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
shellianne
 
Posts: 1
Joined: Thu Jul 14, 2011 12:26 am
Has thanked: 0 time
Been thanked: 0 time

Re: unexpected results using OVERLAY

Postby BillyBoyo » Mon Jul 18, 2011 6:55 pm

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

Re: unexpected results using OVERLAY

Postby dick scherrer » Tue Jul 19, 2011 12:22 am

Hello,

Suggest you look into "HIT=NEXT". As coded, i believe the process will stop after the first "hit".
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to Syncsort/Synctool

 


  • Related topics
    Replies
    Views
    Last post