IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

INREC IFTHEN question


IBM Mainframe Forums -> SYNCSORT
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
knobi

New User


Joined: 16 Aug 2005
Posts: 55

PostPosted: Mon Apr 15, 2019 11:55 pm
Reply with quote

Using the IF below i noticed that after checking the position 71, it "exit" the if logic. I saw that i could use HIT=NEXT, but to me is unclear if it needs to be used at the end of every IFTHEN statement or only when i switch to the next position. Could someone with more experience using syncsort/icetool, comment on this ?

Code:

INREC IFTHEN=(WHEN=(71,01,SS,EQ,C'A'),OVERLAY(095:067,04,ZD,MUL,+10)),
      IFTHEN=(WHEN=(71,01,SS,EQ,C'B'),OVERLAY(095:067,04,ZD,MUL,+20)),

      IFTHEN=(WHEN=(77,01,SS,EQ,C'A'),OVERLAY(111:073,04,ZD,MUL,+10)),
      IFTHEN=(WHEN=(77,01,SS,EQ,C'B'),OVERLAY(111:073,04,ZD,MUL,+20)),

      IFTHEN=(WHEN=(83,01,SS,EQ,C'A'),OVERLAY(127:079,04,ZD,MUL,+10)),
      IFTHEN=(WHEN=(83,01,SS,EQ,C'B'),OVERLAY(127:079,04,ZD,MUL,+20))

Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 420
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Tue Apr 16, 2019 1:13 am
Reply with quote

ibmmainframes.com/about42538.html
Back to top
View user's profile Send private message
knobi

New User


Joined: 16 Aug 2005
Posts: 55

PostPosted: Tue Apr 16, 2019 1:34 am
Reply with quote

got it !! thank you !!
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> SYNCSORT

 


Similar Topics
Topic Forum Replies
No new posts Question regarding ISPF tables with T... TSO/ISPF 11
No new posts Extract records for a specific condit... DFSORT/ICETOOL 25
No new posts Simplify SORT CARD to combine INREC a... DFSORT/ICETOOL 6
No new posts OPC scheduling question IBM Tools 0
No new posts Using Multiple IFTHEN and WHEN condit... SYNCSORT 12
Search our Forums:


Back to Top