Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
LMMOVE—move members of a data set z/OS ISPF Services Guide SC19-3626-00 |
|
The LMMOVE service moves members of a partitioned data set or an entire sequential data set. Once the data has been moved, the "from" data set or members are deleted. Packing data, replacing members, and automatic truncation are optional. Only fixed-length and variable-length data sets can be packed. Completion of the LMINIT service is required before you invoke
LMMOVE. You must specify ENQ(MOD) with the LMINIT service if you want
to use LMMOVE to append records to the "to-data-id". See LMINIT—generate a data ID for a data set for information that can help prevent
some common I/O errors that might occur when using the LMMOVE service.
LMMOVE requires that the "to-data-id" be closed before invocation.
The "from-data-id" must also be closed when moving sequential
data sets.
Note:
Command invocation format>>-ISPEXEC--LMMOVE--FROMID(from-data-id)------------------------> >--+---------------------------+--TODATAID(to-data-id)----------> '-FROMMEM(from-member-name)-' >--+-----------------------+------------------------------------> '-TOMEM(to-member-name)-' >--+---------+--+------+--+-------+--+------------------+-------> '-REPLACE-' '-PACK-' '-TRUNC-' '-SCLMSET(-+-Y-+-)-' '-N-' .-ALIAS---. >--+---------+------------------------------------------------->< '-NOALIAS-' Call invocation format>>-CALL--ISPLINK--('LMMOVEbb'--,from-data-id--,-----------------> >--+-from-member-name-+--,to-data-id--,--+-to-member-name-+-----> '-'b'--------------' '-'b'------------' >--,--+-'REPLACEb'-+--,--+-'PACKbbbb'-+--,--+-'TRUNCbbb'-+--,---> '-'b'--------' '-'b'--------' '-'b'--------' .-'ALIASbbb'-. >--+-'b'--------+--,--+-'b'--------+--);----------------------->< +-'YESbbbbb'-+ '-'NOALIASb'-' '-'NObbbbbb'-' or >>-CALL--ISPEXEC--(buf-len,buffer);---------------------------->< Parameters
Return codes
ExampleThis example invokes the LMMOVE service to move member MYPROG in the data set associated with the data ID in variable DDVAR to the data set associated with the data ID in variable DDVAR2. If MYPROG already exists, replace it. 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:
|
Copyright IBM Corporation 1990, 2014
|