Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
LMDINIT—initialize a data set list z/OS ISPF Services Guide SC19-3626-00 |
|
The LMDINIT service generates a data set list ID for a given data set level or volume or both. A dialog uses the dslist ID to obtain a list of data sets and data set information from the data set list service (LMDLIST). The LMDINIT service is similar to the function provided by the LMINIT service. To use LMDINIT, you must specify:
Each use of the LMDINIT service must eventually be followed by the LMDFREE service to release the dslist ID and the data set list storage space. Command invocation formatCall invocation formatParameters
Return codes
ExamplesHere are some examples of the LMDINIT service: Example 1:In this example the LMDINIT service generates a dslist ID for a data set list containing only the data sets in volume APL001. The LMDINIT service places the dslist ID in variable VARNAME in the ISPF function pool. Command invocation
Call invocation
Set the program variable BUFFER to contain:
Set the program variable BUFLEN to the length of the variable BUFFER.
Issue the command:
Example 2:In this example the LMDINIT service generates a dslist ID for a data set list containing only the data sets with the first level qualifier "PROD" and a second level qualifier starting with "ABC". Command invocation
Call invocation
Set the program variable BUFFER to contain:
Set the program variable BUFLEN to the length of the variable BUFFER.
Issue the command:
Call invocationIn a CLIST, define the variable DSNLVL to contain a data set prefix
of SYS2, and the second qualifier to that of the sysplex on which
the command is executed.
When executed on a system that is a member of a sysplex named SYSPLEX1, the resulting value of DSNLVL is SYS2.SYSPLEX1. The same example in REXX is:
|
Copyright IBM Corporation 1990, 2014
|