27.12.2012 Views

z/VM: CP Commands and Utilities Reference - z/VM - IBM

z/VM: CP Commands and Utilities Reference - z/VM - IBM

z/VM: CP Commands and Utilities Reference - z/VM - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

If either of the following conditions occurs, the tape drive enters the mount-pending<br />

state <strong>and</strong> response 5 is issued:<br />

v On SPXTAPE DUMP, if the output tape fills before all the files selected on the<br />

comm<strong>and</strong> are written<br />

v On SPXTAPE LOAD or SCAN with the RUN disposition, when SPXTAPE rewinds<br />

<strong>and</strong> unloads the tape after reading all the selected data.<br />

You can either continue or end the SPXTAPE operation. See Response 5 (1472).<br />

If all drives enter the mount-pending state <strong>and</strong> you take no action, the comm<strong>and</strong><br />

remains dormant.<br />

Action Taken on Error Conditions<br />

The following sections summarize the action taken by SPXTAPE when various error<br />

conditions are encountered. Error messages are written in the comm<strong>and</strong> summary<br />

log.<br />

I/O Error during DUMP while Reading a File: If an I/O error occurs during an<br />

SPXTAPE DUMP operation while reading a file from the spooling system:<br />

1. The file is placed in system hold status.<br />

2. The comm<strong>and</strong> continues with other selected files.<br />

I/O Error during DUMP while Writing a File: If an I/O error occurs during an<br />

SPXTAPE DUMP operation while writing a file to tape:<br />

1. The tape is rewound <strong>and</strong> unloaded.<br />

2. The tape drive is placed in the mount-pending state.<br />

SPXTAPE<br />

3. The comm<strong>and</strong> continues by reprocessing all the files that were dumped to the<br />

volume that has the error. The files are dumped again, either to other active<br />

drives for this comm<strong>and</strong> (if any) or to this drive when a new tape is mounted.<br />

I/O Error during LOAD or SCAN while Reading a File: If an I/O error occurs during<br />

an SPXTAPE LOAD or SCAN operation while reading a file from tape:<br />

1. SPXTAPE tries to find the beginning of the next file on the tape by reading<br />

blocks until either a block is read without error or 10 consecutive bad blocks<br />

have been skipped.<br />

2. If SPXTAPE finds a good block, the comm<strong>and</strong> continues. If SPXTAPE<br />

encounters 10 consecutive bad blocks, the tape is positioned according to the<br />

disposition specified on the comm<strong>and</strong>:<br />

v For LEAVE, the tape remains positioned after the last bad block. Response 4<br />

is issued. The volume log indicates which files were successfully loaded or<br />

scanned. If this is the last or only active tape drive, the comm<strong>and</strong> completes<br />

with response 3. If the tape is a multiple dump tape (created by SPXTAPE<br />

DUMP with the LEAVE disposition), you can position it with the CMS TAPE<br />

comm<strong>and</strong> if you want to try loading or scanning the remaining files on the<br />

tape.<br />

v For REW, the tape rewinds but does not unload. Response 4 is issued. The<br />

volume log indicates which files were successfully loaded or scanned. If this<br />

is the last or only active tape drive, the comm<strong>and</strong> completes with response 3.<br />

v For RUN, the tape rewinds <strong>and</strong> unloads. Response 5 is issued. The volume<br />

log indicates which files were successfully loaded or scanned. You can mount<br />

another tape on this drive; if one or more other drives are active, you can do<br />

Chapter 2. <strong>CP</strong> <strong>Comm<strong>and</strong>s</strong> 1477

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!