Guardian Application Conversion Guide
Creating and Managing a High-PIN Process
Converting TAL Applications
3–20 096047 Tandem Computers Incorporated
System-Generated Name Using PROCESSNAME_CREATE_
Alternatively, you can let the PROCESSNAME_CREATE_ procedure create a process
name which you later pass to the PROCESS_CREATE_ procedure. The following
steps show how:
1. Call the PROCESSNAME_CREATE_ procedure to obtain a system-generated
name and its length.
2. Set the
name^option
parameter of the PROCESS_CREATE_ procedure to the
LITERAL ZSYS^VAL^PCREATEOPT^NAMEINCALL.
3. Set the
name
parameter of PRCOESS_CREATE_ to the process name returned by
the PROCESSNAME_CREATE_ procedure.
4. Set the
name^length
parameter of PRCOESS_CREATE_ to the length in bytes of
the process name.
5. Set any other PROCESS_CREATE_ parameters as needed and call the procedure.
If the operation is successful, the system creates the process with the name you
specified in Step 2.
6. Check the results as described in Step 4 under “System-Generated Name,” earlier
in this section.
In this example, PROCESS_CREATE_ creates a high-PIN process in a waited manner.
The system provides the process name and length using the
PROCESSNAME_CREATE_ procedure:
max^length := ZSYS^VAL^LEN^PROCESSDESCR;
error := PROCESSNAME_CREATE_(proc^name:max^length,
proc^name^length);
...
name^option := ZSYS^VAL^PCREATEOPT^NAMEINCALL;
error := PROCESS_CREATE_(program^file:pf^length,
! library^file:lf^length ! ,
! swapfile:sf^length ! ,
! ext^swapfile:esf^length ! ,
priority,
cpu^number,
process^handle,
error^detail,
name^option,
proc^name:proc^name^length,
process^desc:max^length,
process^desc^length);