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 />

1498 z/<strong>VM</strong>: <strong>CP</strong> <strong>Comm<strong>and</strong>s</strong> <strong>and</strong> <strong>Utilities</strong> <strong>Reference</strong><br />

anywhere in the pattern as long as the total number of characters,<br />

including the asterisks, does not exceed eight. For example, a pattern<br />

of d* means any string that begins with the character “D”. However, a<br />

pattern of *d* means any string that contains a “D”, whether it is at the<br />

beginning, in the middle, or at the end. A pattern containing a single<br />

asterisk <strong>and</strong> no other characters means all strings regardless of length<br />

or character content (including the string that contains only blanks).<br />

% is a placeholding character that represents a single character. You can<br />

use as many percents as necessary anywhere in the pattern as long<br />

as the total number of characters, including the percents, does not<br />

exceed eight. For example, a pattern of %%% means any string that is<br />

three characters in length. A pattern of %%%s means any string that is<br />

four characters in length <strong>and</strong> ends with the character “S”.<br />

Wild cards can also be combined. For example, a pattern of vm%%* means any<br />

string four characters in length or longer that begins with the characters “<strong>VM</strong>”.<br />

3. When using the APPEND oper<strong>and</strong>, if there is no SPXTAPE LOAD comm<strong>and</strong><br />

currently active on the addressed tape devices, the devices are placed in the<br />

append waiting state (response 10 is issued).<br />

Actual loading from the tape devices does not commence until you enter an<br />

SPXTAPE LOAD comm<strong>and</strong> with a disposition of RUN, LEAVE, or REWIND (or<br />

no disposition, which results in a default of RUN).<br />

A sequence of appended SPXTAPE LOAD comm<strong>and</strong>s are processed as one<br />

logical SPXTAPE LOAD comm<strong>and</strong>. This allows you (or an exec) to specify<br />

different sets of selection criteria for individual files or groups of files to be<br />

loaded from the same set of tapes in a single SPXTAPE LOAD processing run,<br />

as shown in the following sequence:<br />

spxtape load 300-399 selection_criteria_1 append<br />

spxtape<br />

.<br />

load 300-399 selection_criteria_2 append<br />

.<br />

spxtape load 300-399 selection_criteria_n run<br />

4. When using the NODUP oper<strong>and</strong>, the definition of “duplicate” depends on the<br />

type of file.<br />

For st<strong>and</strong>ard spool files <strong>and</strong> system trace files, “duplicate” means that all the<br />

file attributes of the file on the tape are identical to a file on the queue. This<br />

includes the time stamp for when the file was opened. An identical time stamp<br />

indicates that they are identical files. (If some files on the system have been<br />

imported from other systems, it is possible that files could have been created<br />

on both systems at exactly the same microsecond with all the same file<br />

attributes, but contain different data. However, this is not very probable.)<br />

For system data files other than system trace files, “duplicate” means that the<br />

file name, file type, <strong>and</strong> class of the file on the tape are identical to the file on<br />

the queue. In addition, for named saved system <strong>and</strong> saved segment files,<br />

class A (active) <strong>and</strong> class R (restricted) files of the same file name <strong>and</strong> file<br />

type are considered duplicate because they cannot exist on the system at the<br />

same time.<br />

A file that is found to be a duplicate is identified in the resulting volume log<br />

with DUP_FILE in the SEG_STAT field. The FILE field of this entry in the log<br />

contains the file ID of the file already on the system. If the file on the system is<br />

moved to a different queue or user ID, or its file attributes are changed (for<br />

example, its spool class), the file is no longer identified as a duplicate.<br />

The NODUP oper<strong>and</strong> helps you recover if a system failure occurs while you<br />

are loading files from tape. If you add the NODUP oper<strong>and</strong> to your selection<br />

criteria <strong>and</strong> reprocess all the tapes that have already been processed, all the

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

Saved successfully!

Ooh no, something went wrong!