Page 1 of 1

syncsort multiple if conditions

PostPosted: Wed Feb 24, 2010 12:56 pm
by ROCKRETURNS
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??

Re: syncsort multiple if conditions

PostPosted: Wed Feb 24, 2010 1:46 pm
by ROCKRETURNS
Also, the combinations of country code and 23:1 and 39:1 and 41:1 can occur.

Re: syncsort multiple if conditions

PostPosted: Wed Feb 24, 2010 3:21 pm
by arcvns
ROCKRETURNS,

This can be done using IFTHEN-OVERLAY with HIT=NEXT option so as to consider combinations of the rules.