View previous topic :: View next topic
|
Author |
Message |
rally
New User
Joined: 28 Jul 2005 Posts: 37
|
|
|
|
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 |
|
|
krisprems
Active Member
Joined: 27 Nov 2006 Posts: 649 Location: India
|
|
|
|
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 |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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 |
|
|
|