Page 1 of 1

Multiple IFTHEN in Outrec

PostPosted: Thu Jun 03, 2010 3:10 am
by mainframe_novice
In my code first IFTHEN works as expected .
But the next IFTHEN is not working .

OUTREC IFTHEN=(WHEN=(47,1,CH,EQ,C' '),   
             OVERLAY=(47:C'9999-12-31')),
       IFTHEN=(WHEN=(57,1,CH,EQ,C' '),   
             OVERLAY=(57:C'9999-12-31'))


When I see the output , I see 9999-12-31 populated on 47th position but not on 57th position .

Is IFTHEN used incorrectly ?
I don't get syntax error though .

Re: Multiple IFTHEN in Outrec

PostPosted: Thu Jun 03, 2010 3:26 am
by dick scherrer
Hello,

Suggest you run a quick test reversing the ifthen's. . .

I'll check back later to see if there is progress.

Re: Multiple IFTHEN in Outrec

PostPosted: Thu Jun 03, 2010 3:32 am
by mainframe_novice
Thanks Dick !
I tried . Now it has populated the date on 57th position .But 47-56 are still blank .

Re: Multiple IFTHEN in Outrec

PostPosted: Thu Jun 03, 2010 4:33 am
by dick scherrer
Hello,

What release of Syncsort is being used (this is shown in the informatonal output of a run)?

Try changing:
OVERLAY=(47:C'9999-12-31')),
to:
OVERLAY=(47:C'9999-12-31'),HIT=NEXT),
This change should be put in only the first of the two ifthen's.

Re: Multiple IFTHEN in Outrec

PostPosted: Thu Jun 03, 2010 4:43 am
by mainframe_novice
It worked :D

Many thanks to you Dick !

Re: Multiple IFTHEN in Outrec

PostPosted: Thu Jun 03, 2010 5:21 am
by dick scherrer
You're welcome - Good to hear it is working - thank you for letting us know :)

d