Highlighted
Absent Member.
Absent Member.
569 views

NullReference exception.

I have the fields 01  prefix-error-status      pic 9.  and the statement  move ls-status-ok to ls-error-status. This code gives me a NullReference exception
unhandled.                     78  prefix-status-OK     value 0.

What is going on here? It happens in the run of the code; program compiles fine with no errors!                           
                    
0 Likes
2 Replies
Highlighted
Absent Member.
Absent Member.

RE: NullReference exception.

P.S ls-status-ok = 0; ls-error-status = null
0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: NullReference exception.

Your move statement is move ls-status-ok to ls-error-status
how and where is ls-error-status defined? If it is in the linkage section then it would need to be passed in to the program from the calling program.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.