z/OS ISPF Services Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


LMPRINT—print a partitioned or sequential data set

z/OS ISPF Services Guide
SC19-3626-00

The LMPRINT service prints to the ISPF list data set an entire sequential or partitioned data set, certain specified members of a partitioned data set, or an index listing for a partitioned data set. The INDEX parameter can be used with fixed, variable, or undefined record formats. If the INDEX parameter is not used, the data set to be printed must be fixed or variable record format. Completion of the LMINIT service is required before you invoke LMPRINT.

Command invocation format

Read syntax diagramSkip visual syntax diagram
>>-ISPEXEC--LMPRINT--DATAID(data-id)--+---------------------+--->
                                      '-MEMBER(member-name)-'   

>--+-------+--+-------------------+--+-------+-----------------><
   '-INDEX-'  |         .-YES-.   |  '-NOLLA-'   
              '-FORMAT(-+-NO--+-)-'              

Call invocation format

Read syntax diagramSkip visual syntax diagram
>>-CALL--ISPLINK--('LMPRINTb'--,data-id--,-+-member-name-+------>
                                           '-'b'---------'   

                       .-'YESbbbbb'-.                        
>--,-+-'INDEXbbb'-+--,-+-'b'--------+--,-+-'NOLLAbbb'-+-);-----><
     '-'b'--------'    '-'NObbbbbb'-'    '-'b'--------'      

or

Read syntax diagramSkip visual syntax diagram
>>-CALL--ISPEXEC--(buf-len,buffer);----------------------------><

Parameters

data-id
The data ID associated with the data set to be printed. The data ID has been generated by the LMINIT service. The maximum length of this parameter is 8 characters.
member-name
The member name or pattern of the members to be printed. An asterisk (*) indicates that all members should be printed. If an index print is requested, member-name must not be specified. The maximum length of this parameter is 8 characters. For more information about patterns and pattern matching, see the z/OS ISPF User's Guide Vol I.
INDEX
Indicates that only the index will be printed.
YES|NO
Indicates if the output is to be formatted. The default is YES.
NOLLA
If LLA is used to manage a cached directory entry, specify this keyword to ensure that the cached entry is not used.
buf-len
A fullword fixed binary integer containing the length of the buffer parameter.
buffer
A buffer containing the name of the service and its parameters in the same form as they would appear in an ISPEXEC invocation for a command procedure.

Return codes

These return codes are possible:
 0
Normal completion.
 4
Either:
  • Data set is empty or contains an empty member.
  • No members matched the pattern.
 8
Member not found.
10
No data set associated with given data ID.
12
Either:
  • Invalid data set organization; must be partitioned or sequential.
  • Invalid parameter.
20
Severe error; unable to continue.

Example

This example invokes the LMPRINT service to print the sequential data set associated with the data ID in variable DDVAR, with no formatting of output.

Command invocation

ISPEXEC LMPRINT DATAID(&DDVAR) FORMAT(NO)

Call invocation

CALL ISPLINK('LMPRINT ',DDVAR,' ',' ','NO      ');

OR
 
Set the program variable BUFFER to contain:
BUFFER = 'LMPRINT DATAID(&DDVAR) FORMAT(NO)';
Set the program variable BUFLEN to the length of the variable BUFFER. Issue the command:
CALL ISPEXEC (BUFLEN, BUFFER);

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014