The prototype for an API to retrieve the contents of a data area is defined like this:
d apirtvdta_ pr 2559 varying
d name 10 const
d lib 10 const
d opt_start 4b 0 const options(*nopass)
d opt_length 4b 0 const options(*nopass)
The execution is coded as:
c eval apirtvdta = apirtvdta_(name:lib)
The first call works successfully, but subsequent calls indicate that the optional parameters have been given addresses at some point even though the first call showed the addresses as *NULL. I have put the subprocedure into debug mode (it is in a service program) and the addresses are still null as of RETURN.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!