Robin Atwood
2017-05-15 08:17:48 UTC
We have a requirement to attach user modules from an unauthorised library
and execute them from an STC which
runs APF authorised. Calling ATTACH with RSAPF=YES seems to do exactly what
I want but every time I try it
I get abend S306-0C, "authorised program attaching module from an
unauthorized library". The ATTACH macro
description states:
RSAPF=YES when these conditions are met:
. The caller is running in supervisor state, system key (0-7),
or both
. The caller is running non-APF authorized
. The subtask is attached in the problem program state and with
a nonsystem key.
Conditions 1 and 2 seem mutually exclusive. I tried coding MODESET MODE=SUP
and adding SM=PROB,KEY=PROP
to the ATTACH but it made no difference. I seem to be missing something
fairly massive here! Can anyone shed
some light on this?
Thanks
Robin
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to ***@listserv.ua.edu with the message: INFO IBM-MAIN
and execute them from an STC which
runs APF authorised. Calling ATTACH with RSAPF=YES seems to do exactly what
I want but every time I try it
I get abend S306-0C, "authorised program attaching module from an
unauthorized library". The ATTACH macro
description states:
RSAPF=YES when these conditions are met:
. The caller is running in supervisor state, system key (0-7),
or both
. The caller is running non-APF authorized
. The subtask is attached in the problem program state and with
a nonsystem key.
Conditions 1 and 2 seem mutually exclusive. I tried coding MODESET MODE=SUP
and adding SM=PROB,KEY=PROP
to the ATTACH but it made no difference. I seem to be missing something
fairly massive here! Can anyone shed
some light on this?
Thanks
Robin
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to ***@listserv.ua.edu with the message: INFO IBM-MAIN