0 pts.
 numeric field check
i have a file that has a numeric field that is being cleared early in a program if certain conditions are meet as the file is being made...i need to check later before that file is printed to see if those conditions have changed....the numeric field is the key....it's not having zeros put in it..but being cleared...how can i check this qualification in an if statement..won't let me use: field = *blanks using: field = *zero but worried that won't give me what i'm looking for...any suggestions? thanks in advance

Software/Hardware used:
ASKED: March 8, 2006  9:31 AM
UPDATED: December 1, 2009  6:55 AM

Answer Wiki:
How is the field being cleared? The CLEAR opcode should set the field to its default initialization. Which for a numeric field should be zero or null. If it's zero then "field = *zero" should work. If it's null then "if %nullind (field)" should work. Nullind will be *on if the field contains a null.
Last Wiki Answer Submitted:  March 8, 2006  11:04 am  by  Geneburns   15 pts.
All Answer Wiki Contributors:  Geneburns   15 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

1. When a numeric field is cleared (opcode = clear) the field is set to 0 (*zeros).
2. I would question the use of the field in this way as 0 (zero) is a valid value……you’d be better off to find another way.

 0 pts.

 

it’s being cleared by:
clear field

 0 pts.

 

it’s being cleared by:
clear field

If that’s true and “field” is set to blanks by that operation, then “field” is not a numeric field. And that doesn’t go with your earlier assertion that “won’t let me use: field = *blanks”. One of those assertions is wrong. Which one?

Tom

 107,915 pts.