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: 54

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: 418
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: 54

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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> SYNCSORT

 


Similar Topics
Topic Forum Replies
No new posts Question for file manager IBM Tools 7
No new posts question for Pedro TSO/ISPF 2
No new posts question on Outrec and sort #Digvijay DFSORT/ICETOOL 20
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
No new posts INREC PARSE used to sort a CSV file DFSORT/ICETOOL 2
Search our Forums:

Back to Top