Multiple IFTHEN in Outrec



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

Multiple IFTHEN in Outrec

Postby mainframe_novice » Thu Jun 03, 2010 3:10 am

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 .
mainframe_novice
 
Posts: 35
Joined: Tue Apr 27, 2010 1:29 am
Has thanked: 0 time
Been thanked: 0 time

Re: Multiple IFTHEN in Outrec

 

Re: Multiple IFTHEN in Outrec

Postby dick scherrer » Thu Jun 03, 2010 3:26 am

Hello,

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

I'll check back later to see if there is progress.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Multiple IFTHEN in Outrec

Postby mainframe_novice » Thu Jun 03, 2010 3:32 am

Thanks Dick !
I tried . Now it has populated the date on 57th position .But 47-56 are still blank .
mainframe_novice
 
Posts: 35
Joined: Tue Apr 27, 2010 1:29 am
Has thanked: 0 time
Been thanked: 0 time

Re: Multiple IFTHEN in Outrec

Postby dick scherrer » Thu Jun 03, 2010 4:33 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Multiple IFTHEN in Outrec

Postby mainframe_novice » Thu Jun 03, 2010 4:43 am

It worked :D

Many thanks to you Dick !
mainframe_novice
 
Posts: 35
Joined: Tue Apr 27, 2010 1:29 am
Has thanked: 0 time
Been thanked: 0 time

Re: Multiple IFTHEN in Outrec

Postby dick scherrer » Thu Jun 03, 2010 5:21 am

You're welcome - Good to hear it is working - thank you for letting us know :)

d
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to Syncsort/Synctool

 


  • Related topics
    Replies
    Views
    Last post