SPOOL

The SPOOL command records the input and output of DGMGRL to a file.

Format

The SPOOL command has three possible formats:

SPOOL;

SPOOL spool_file_name [CREATE | REPLACE | APPEND];

SPOOL OFF;

If you simply enter SPOOL at the DGMGRL command prompt, then the current spool file name is displayed.

Otherwise, the available spooling options are defined as follows:

  • CREATE—Create a new log file. If a spool file with the specified name already exists, the SPOOL command fails.

  • REPLACE—Replace the existing spool file of the name specified. This is the default behavior if no option is specified.

  • APPEND—Append the new log into the specified log file, if it exists. Otherwise create a new one.

  • OFF—Turns spooling off.

Command Parameters

spool_file_name
The name of the file to which DGMGRL input and output will be written.

Usage Notes

  • None

Command Example

The following example shows the output of the SPOOL command before and after spooling is started.

DGMGRL> SPOOL;
not spooling currently

DGMGRL> SPOOL mysession;

DGMGRL> SPOOL;
currently spooling to "mysession"

DGMGRL>