I have a doubt whether the above sort work like the below statement
Code:
if posted is numeric
add POSTED to total
else
add asusp to total (I don't want this to happen)
end-if
if clear-flag = 'y'
add susp to total
else
add asusp to total
end-if
Joined: 26 Nov 2002 Posts: 12369 Topics: 75 Location: San Jose
Posted: Mon Dec 07, 2020 5:29 pm Post subject:
Magesh_J,
WHEN=NONE will NOT be active if any of the IFTHEN Conditions have been true. You only had HIT=NEXT on the first IFTHEN, so it will check for Clear-flag but not for when=none.
Btw why do you have 8 and 12 bytes for the same position?
When you are adding POSTED you are using a 12 byte value for SUSP and ASUSP, you are only using 8 bytes which does not make sense. Is that a typo? _________________ Kolusu
www.linkedin.com/in/kolusu
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum