Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
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
 
INREC IFTHEN usage in COPY statement

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

New User


Joined: 28 Jul 2005
Posts: 37

PostPosted: Fri Jun 22, 2007 8:15 pm    Post subject: INREC IFTHEN usage in COPY statement
Reply with quote

Code:

   OPTION COPY                           
   INREC IFTHEN=(WHEN=(22,3,CH,NE,C'   '), 
              OVERLAY=(17:5C'0')),         
      IFTHEN=(WHEN=(108,3,CH,NE,C'   '),   
           OVERLAY=(103:5C'0'))     


I have a code as above, I found only 1st IFTHEN effect, the data changed.
but 2nd IFTHEN no change.

Any idea?
Back to top
View user's profile Send private message

krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Fri Jun 22, 2007 8:44 pm    Post subject:
Reply with quote

rally
Use HIT=NEXT as shown below, if both the conditions are to be checked.

Code:
OPTION COPY                           
   INREC IFTHEN=(WHEN=(22,3,CH,NE,C'   '), 
              OVERLAY=(17:5C'0'),HIT=NEXT),           
      IFTHEN=(WHEN=(108,3,CH,NE,C'   '),   
           OVERLAY=(103:5C'0'))     
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 Jun 22, 2007 9:19 pm    Post subject:
Reply with quote

BTW, you don't need three blanks for the constant - you can use C' ' (one blank). DFSORT will pad the constant with blanks to the length of the field.
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 XMITIP sends it out. Can it copy on l... Rommel Dayon Rustia IBM Tools 0 Tue Sep 05, 2017 10:16 am
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm
No new posts Suppress value reported by BREAK in D... Learncoholic DFSORT/ICETOOL 3 Wed Aug 16, 2017 6:03 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts ON 2 AND EVERY 1 - Statement ??? UmeySan COBOL Programming 2 Tue Jul 25, 2017 1:20 pm

Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us