Check null value cobol
Moreover I also need to check the feild if it is not null,so that I can count the number of records having not null values for the particular feild. Please suggest me what to do? Back to top. If the field is display-numeric, you can test it for X'00's using reference modification - Code:. A qsam input file cannot have the "database NULL" in it. The qsam file will have values in each byte between x'00' and x'FF' - none of which is null. The spaces you see are probably unprintable characters maybe x'00's.
Posted: Fri Jun 13, pm. Check for the low-values or invalid fields. I think, therefore, that no entry or the concept of null is quite well represented by the absence of "on" bits because it would avoid all such potential confusion. However, I do understand that it is just a concept but one that did have a rather good storage convention until somebody decided to be unconventional about it.
Posted: Thu Apr 14, pm. And maybe you'd like to find the rows that are not longer than i. Then if you browse such a dataset via I. But if you switch on hex display HEX ON, you can see how long the records are, how many bytes of each record do contain some data. Increasing the position, sometime you may not find any rows. Varying the position larger and smaller you can approach the rightmost position with valid data Considering that the original question was 7 years ago I would think OP has the concept well understood by now.
View previous topic :: :: View next topic. Similar Topics. Cobol COMP-2 fields getting scrambled Handling the numeric data in unstring It can hold a value of Zero, positive and Negative integers. So this is not actually a NULL indication but it is an error case. So it is best practice to check this NL, after retrieving the data from the table so that based on the result further processing can be performed.
Your email address will not be published. Save my name, email, and website in this browser for the next time I comment. Skip to content.
0コメント