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.

SPXTAPE SCAN<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 as<br />

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

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

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

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

2. When using the APPEND oper<strong>and</strong>, if there is no SPXTAPE SCAN 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 scanning on the tape devices does not commence until you enter an<br />

SPXTAPE SCAN 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 SCAN comm<strong>and</strong>s are processed as one<br />

logical SPXTAPE SCAN 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 />

scanned on the same set of tapes in a single SPXTAPE SCAN processing run,<br />

as shown in the following sequence:<br />

spxtape scan 300-399 selection_criteria_1 append<br />

spxtape<br />

.<br />

scan 300-399 selection_criteria_2 append<br />

.<br />

spxtape scan 300-399 selection_criteria_n run<br />

3. 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 file<br />

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

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

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, class<br />

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

considered duplicate because they cannot exist on the system at the same time.<br />

A file that is found to be a duplicate is identified in the resulting Volume Log with<br />

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

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

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

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

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

queue where the files would be loaded increases, the amount of processing<br />

required to scan the files on the tape increases dramatically. Each file being<br />

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

contains 1000 files <strong>and</strong> 1000 files are scanned on the tape, the result is over<br />

one million comparisons.<br />

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

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

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

SPXTAPE DUMP comm<strong>and</strong>. A logical SPXTAPE DUMP comm<strong>and</strong> may be a<br />

single comm<strong>and</strong> or a sequence of appended comm<strong>and</strong>s. If multiple tape files<br />

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

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

Saved successfully!

Ooh no, something went wrong!