Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
What is the purpose of hit=next?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
vivekss97

New User


Joined: 15 Feb 2009
Posts: 3
Location: Chennai, India

PostPosted: Fri Jul 24, 2009 12:16 pm    Post subject: Reply to: DFsort convert from hex/bin to character
Reply with quote

What is purpose of Hit=NExt in IFthen
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Jul 24, 2009 7:15 pm    Post subject:
Reply with quote

Hello and welcome to the forum,

When you have a question you need to start a new topic for your question rather than posting a reply to some topic that has been inactive for years.

You also should look in the manual first. . . Here is a topic that contains links to DFSORT info:
http://ibmmainframes.com/viewtopic.php?t=1348

If there is something in the manual that is not clear, post that here and your doubt about it.

Someone will clarify.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Fri Jul 24, 2009 9:23 pm    Post subject:
Reply with quote

Quote:
What is purpose of Hit=NExt in IFthen


It's easier to explain with an example:

Code:

  INREC IFTHEN=(WHEN=(1,1,CH,EQ,C'1'),OVERLAY=(21:C'A')),
      IFTHEN=(WHEN=(5,1,CH,EQ,C'1'),OVERLAY=(25:C'B'))


The above does NOT have HIT=NEXT, so when position 1 has '1', we put 'A' in position 21 and stop processing that record. We will not check if position 5 has '1' so we can only get 'A' or 'B', but not both.

Code:

  INREC IFTHEN=(WHEN=(1,1,CH,EQ,C'1'),OVERLAY=(21:C'A'),
         HIT=NEXT),
      IFTHEN=(WHEN=(5,1,CH,EQ,C'1'),OVERLAY=(25:C'B'))


The above does have HIT=NEXT, so when position 1 has '1', we put 'A' in position 21 and then we check if position 5 has '1' and put a 'B' in position 25. Thus, with HIT=NEXT, we can get 'A' and 'B'.

HIT=NEXT is useful when the conditions of different clauses can be satisfied independently. It tells DFSORT to continue with the next clause even if the current clause is satisfied.
Back to top
View user's profile Send private message
vivekss97

New User


Joined: 15 Feb 2009
Posts: 3
Location: Chennai, India

PostPosted: Sat Jul 25, 2009 2:09 pm    Post subject: Reply to: What is the purpose of hit=next?
Reply with quote

Thanks Franks icon_razz.gif.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Tool to access DB2 Zos - For Query pu... gylbharat DB2 6 Thu Oct 04, 2012 6:17 pm
No new posts What is the purpose of LIBDEF keyword? enrico-sorichetti TSO/ISPF 1 Tue Oct 18, 2011 11:22 am
No new posts Purpose of SCL in endeavor kumar32149 CA Products 5 Sat Nov 13, 2010 11:28 am
No new posts Purpose of INSENSITIVE SCROLL CURSOR ... GaganGarg DB2 3 Mon Jun 21, 2010 8:00 pm
No new posts How to use cond for this purpose? MALLIKARJUN.KUMMITHA JCL & VSAM 5 Thu Feb 18, 2010 12:56 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us