The OPSIPL function obtains the parameter library member suffix and value of the requested IPL parameter. This information is obtained from the IPA control block of z/OS.
Note: The OPSIPL function can be used in OPS/REXX, AOF rules, TSO/E REXX, or CLIST.
This function has the following format:
var= OPSIPL(member prefix,parameter)
The member prefix argument specifies the fixed portion of the Logical Parmlib Concatenation member name, which is associated with the subsequent parameter specification. The first data item returned is always the two-character suffix of the member name from which the associated parameter was derived by the system at IPL.
Possible values for the member prefix are:
The subsequent parameter keyword is associated with a LOADxx member of the Logical Parmlib Concatenation, or the IPL parameters specified by the operator from the service console.
The subsequent parameter keyword is associated with an IEASYSxx member of the Logical Parmlib Concatenation. Since multiple IEASYSxx members may be used for the IPL, the suffix value returned is important in determining the actual IEASYSxx member that is the source of the parameter value.
The parameter argument identifies the keyword data item of the member prefix for which the value is desired.
The following are the LOADxx-related parameters:
Possible values are:
The LOADxx usage flags (2 bytes binary). Possible value is:
(ss yy/mm/dd HH:MM:SS)
Following are the IEASYSxx-related parameters:
Note: This value is only available at z/OS 1.9 and higher
Documentation on the meaning and format of all parameters can be found in the z/OS Initialization and Tuning Reference and in the z/OS macro IHAIPA.
Examples: OPSIPL
Display the IODF statement of the LOADxx member and parse the result:
iodf = OPSIPL('LOAD' , 'IODF')
>>> iodf = '00 00 IODF CONFIGPR'
Parse Var iodf load_suffix iodf_stmt
Parse Var iodf_stmt iodf_suffix 3 . 4 iodf_hlq 12 . 13,
iodf_config 21 . 22 iodf_edt 24 . 25 iodf_devsup 26
cmdx = OPSIPL('IEASYS','CMD')
>>> cmdx = '01 (00,44,A2)'
Parse Var cmdx ieasys_suffix cmdval
cmdval = Strip(Translate(cmdval,,'(,)'))
Do while cmdval <> ''
Parse Var cmdval suffix cmdval
pcnt = OPSPRMLB('LISTMEM','COMMND'||suffix)
End
Say OPSIPL('IEASYS','CSCBLOC')
>>> D ABOVE
Some parameters yield null values when they are not specified:
Say OPSIPL('IEASYS','DEVSUP')
>>> '
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |