Hi Stan, r_Admin is a callable service. I think the best way is to call IRRSEC00 from the Cobol program and pass the parameter list, output values are returned in the parameter list. IRRSEC00 should be link-edit in the Cobol load module.I'm not sure if you can use the Cobol CALL statement. I think you don't need any copybooks.
Example:
CALL IRRSEQ00 (Work_area,
ALET, SAF_return_code,
ALET, RACF_return_code,
ALET, RACF_reason_code,
Function_code,
Parm_list,
RACF_userID,
ACEE_ptr,
Out_message_subpool,
Out_message_strings
)
Regards,
Paul.
See also https://www.ibm.com/docs/en/zos/3.1.0?topic=api-usage-notes
------------------------------
PAUL HORN -IBM - Software Architect / Developer
------------------------------