Author: Robert Sample
Posted: Thu Oct 06, 2016 10:20 pm (GMT 5.5)
The link you have in your post specifically has OPTVAL as PIC 9(8) BINARY -- which is far different from what you have. If you don't define the variables as they are in the manual, don't expect zero return codes.
_________________
TANSTAAFL
The first rule of code reuse is that the code needs to be worth re-using.
"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil." -- Donald Knuth
Posted: Thu Oct 06, 2016 10:20 pm (GMT 5.5)
The link you have in your post specifically has OPTVAL as PIC 9(8) BINARY -- which is far different from what you have. If you don't define the variables as they are in the manual, don't expect zero return codes.
_________________
TANSTAAFL
The first rule of code reuse is that the code needs to be worth re-using.
"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil." -- Donald Knuth