Copy To Main Storage Dump (CPYTOMSD)

The Copy To Main Storage Dump (CPYTOMSD) command copies a main storage dump (MSD) to the Licensed Internal Code (LIC) MSD library from a stream file. The LIC MSD will add an additional main storage dump and assign a new main storage dump identifier each time CPYTOMSD is performed successfully.

Restrictions:

Parameters

Keyword Description Choices Notes
FROMSTMF From stream file Path name Required, Positional 1
DESC Text 'description' Character value, *STMF Optional

From stream file (FROMSTMF)

Specifies the path name of the stream file from which the main storage dump data is copied.

For more information on specifying path names, refer to "Object naming rules" in the CL topic collection in the Programming category in the IBM i Information Center at http://www.ibm.com/systems/i/infocenter/.

Text 'description' (DESC)

Specifies the description to be used for the main storage dump.

*STMF
The description associated with the stream file. It is the description that was provided by the Licensed Internal Code Main Storage Dump (LIC MSD) Manager when the stream file was created.
character-value
Specify no more than 32 characters of text, enclosed in apostrophes.

Examples

CPYTOMSD FROMSTMF('/MY_MSDs/MSD0001') DESC('System crash')

This command copies the data contained in stream file /MY_MSDs/MSD0001 to the Licensed Internal Code Main Storage Dump (LIC MSD) library and assigns 'System crash' for the main storage dump description.

Error messages

*ESCAPE Messages

CPF7206
&4 ended abnormally. Completion code &2 qualifier &3.
CPF7215
System Service Tools already active in this process.
CPF7218
Not authorized to run &2 command.
CPFA0D4
File system error occurred. Error number &1.