syncsort multiple if conditions



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

syncsort multiple if conditions

Postby ROCKRETURNS » Wed Feb 24, 2010 12:56 pm

198504016 CXXU1XXBXB M USA016009401 *
198504016 CXXU1XXBXB C CAN016009401 *

IF 26:3 = usa, convert to US (US and one space)
if 26:3 = CAN , Leave it as it is
if 23:1 = M , convert to U
IF 23:1 = C convert to D
IF 39:1 = * or blank and 41:1 = * or blank convert 39:1 to S and 41:1 = M

LRECL IS 42
can this be done via OVERLAY statement??
ROCKRETURNS
 
Posts: 2
Joined: Wed Feb 24, 2010 12:46 pm
Has thanked: 0 time
Been thanked: 0 time

Re: syncsort multiple if conditions

Postby ROCKRETURNS » Wed Feb 24, 2010 1:46 pm

Also, the combinations of country code and 23:1 and 39:1 and 41:1 can occur.
ROCKRETURNS
 
Posts: 2
Joined: Wed Feb 24, 2010 12:46 pm
Has thanked: 0 time
Been thanked: 0 time

Re: syncsort multiple if conditions

Postby arcvns » Wed Feb 24, 2010 3:21 pm

ROCKRETURNS,

This can be done using IFTHEN-OVERLAY with HIT=NEXT option so as to consider combinations of the rules.
Arun
User avatar
arcvns
 
Posts: 55
Joined: Sat Feb 28, 2009 12:36 am
Location: India
Has thanked: 0 time
Been thanked: 0 time


Return to Syncsort/Synctool

 


  • Related topics
    Replies
    Views
    Last post