For IEFSSI REQUEST=QUERY, Rob Scott's approach should work.  IEFSSI 
REQUEST=QUERY can return data for both return code 0 and return code 4 (see 
reason code IEFSSI_QUERY_INCOMPLETE) so simply checking for return code 0 is 
insufficient.  The service doesn't return a workarea address for any other 
return codes.

In general, this probably varies from service to service (although most modern 
services will probably behave like IEFSSI REQUEST=QUERY in that they would not 
return an address unless the caller can safely use it) so you do need to read 
the documentation for the service.  Also, you should not assume that a service 
will zero an output address for you if the service could not return data (which 
goes to Rob's comment about zeroing the output address before calling IEFSSI to 
make sure it is clean.)  

-Scott Ballentine
IBM z/OS Development

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to