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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SPXTAPE LOAD<br />

files that loaded correctly before the system failure are skipped. However, even<br />

with NODUP specified, you may still receive duplicate files if you are loading<br />

the same file concurrently from more than one tape.<br />

Keep in mind when using the NODUP oper<strong>and</strong> that as the number of files in<br />

the queue where the files are being loaded increases, the amount of<br />

processing required to load the files from the tape increases dramatically. Each<br />

file to be loaded is compared to every file in the queue. For example, if the<br />

queue contains 1000 files <strong>and</strong> 1000 files are to be loaded, the result is over<br />

one million comparisons.<br />

The consequence of loading duplicate files is more serious for system data<br />

files than for st<strong>and</strong>ard spool files. If the NODUP oper<strong>and</strong> is not used when<br />

loading system data files (or all files) from a tape for which no dump log is<br />

available, you should check to make sure that duplicate files were not loaded.<br />

If this happens, check the files to determine which should be kept <strong>and</strong> purge<br />

the unnecessary files.<br />

5. A logical SPXTAPE LOAD comm<strong>and</strong>, which may be a single comm<strong>and</strong> or a<br />

sequence of appended comm<strong>and</strong>s, loads one tape file. A tape file (which ends<br />

with one or more tape marks) contains one or more files dumped by one<br />

logical SPXTAPE DUMP comm<strong>and</strong>. If multiple tape files exist on the tape<br />

(written by multiple logical SPXTAPE DUMP comm<strong>and</strong>s), you must enter<br />

separate SPXTAPE LOAD comm<strong>and</strong>s to load each tape file.<br />

6. Do not load the same tape more than once during processing of the same<br />

SPXTAPE comm<strong>and</strong>. Unpredictable results may occur, such as incomplete<br />

files, duplicate files, or loss of spool DASD space. However, there may be<br />

times when you need to reload the same volume. For example, if you<br />

encounter an I/O error while reading a tape, you might want to retry the<br />

operation. See 1500.<br />

7. A file being loaded retains the same characteristics as the original file but is<br />

assigned a new spool ID in the spooling system. The new spool ID is obtained<br />

from the pool of IDs available to the recipient of the file.<br />

8. If the file owner’s user ID does not exist on the system to which the file is<br />

being loaded, or if the file owner runs out of spool IDs, the file is assigned to<br />

the user who issued the SPXTAPE LOAD comm<strong>and</strong>.<br />

If that user also runs out of spool IDs, the file is not loaded, <strong>and</strong> NO_LOAD is<br />

recorded in the SEG_STAT field of the entry in the volume log.<br />

9. During SPXTAPE LOAD processing, response 5 is issued when all data has<br />

been read from a tape. Response 7, which is issued periodically to indicate the<br />

comm<strong>and</strong> is processing, may continue to be received even after response 5<br />

has been issued for all the tapes being processed because the files are still<br />

being written into the spooling system. However, the comm<strong>and</strong> can no longer<br />

be ended or canceled at this point.<br />

10. If you entered SPXTAPE LOAD with the RUN option (or no disposition, which<br />

results in a default of RUN), there is no way for SPXTAPE to know how many<br />

tape volumes are involved in the LOAD operation. Therefore, each time logical<br />

end-of-tape is reached, SPXTAPE issues Response 5 asking for the next<br />

volume to be mounted. Logical end-of-tape means the end of the tape file<br />

written by SPXTAPE DUMP on that volume.<br />

If there are other tapes to be processed, mount the next tape. If you are using<br />

more than one tape drive, <strong>CP</strong> continues reading on the other drives. When you<br />

mount <strong>and</strong> ready the new tape, <strong>CP</strong> starts reading on that drive again.<br />

If there are no other tapes to be mounted, <strong>and</strong> all tapes currently mounted<br />

have finished processing (you have received the mount next tape response for<br />

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

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

Saved successfully!

Ooh no, something went wrong!