On 11/6/2006 11:42 AM, Paul Gilmartin wrote:
In a recent note, Walt Farrell said:
Date: Mon, 6 Nov 2006 07:08:24 -0500
On 11/4/2006 10:27 AM, Paul Gilmartin wrote:
In a recent note, Gilbert Saint-Flour said:
How do you invoke GIMSMP from an exec ? Via CALL ? LINKPGM?
Is there any reason you suggest LINKPGM rather than LINKMVS?
LINKMVS sets up all the parameter(s) GIMSMP can use, with less
computation of length fields, etc. (I recognize that for some
functions, such as ICSF, only LINKPGM can set up the needed
parameter formats.)
Note that GSF suggested LINKPGM, not I.
CALL. I had thought it had to be CALL for AUTHPGM to work.
Correct. REXX (via LINKPGM or LINKMVS) can not cause a program to run
APF authorized. You need to use the TSO/E CALL command (not the REXX
call statement) or IKJEFTSR.
I suppose you could use LINKPGM to invoke IKJEFTSR, if you like playing
around with that kind of thing.
If I did "address LINKPGM IKJEFTSR ...", wouldn't REXX (via LINKPGM
or LINKMVS) not cause IKJEFTSR to run APF authorized, and GIMSMP and
then IEBCOPY would in turn (try to) operate unauthorized?
IKJEFTSR provides the interface that allows TSO programs to transition
from non-authorized to authorized, and CALL, TSOEXEC, and ISPF all use
it when they need to invoke APF-authorized programs.
Thus, if you invoked it from REXX via linkpgm or linkmvs (probably
linkpgm) it would perform the same function, and would run whatever you
specified, if appropriate, as APF authorized. You could (I believe) use
linkpgm to invoke IKJEFTSR, and tell IKJEFTSR to invoke IEbCOPY or
GIMSMP. Using the TSO/E CALL command would do the same in a much
simpler way, however.
Walt
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html