16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Appendix K. Specifying MVS data set names in the shell<br />

environment<br />

Several utilities allow the user to specify an MVS data set name in place of an HFS<br />

filename. See Utilities supporting MVS data set names for the current list. This topic<br />

describes the syntax for specifying an MVS data set name. Because MVS data set<br />

names generally contain single quotes and parenthesis which can be misinterpreted<br />

by the shell, care needs to be taken to correctly escape these characters.<br />

What follows are general rules for specifying MVS data set names. Consult the<br />

description of each utility for more specific instructions or exceptions.<br />

v MVS data sets are distinguished from HFS files by preceding them with two<br />

slashes (//). For example, to specify the MVS data set name<br />

PROGRAM.OUTPUT, enter:<br />

//PROGRAM.OUTPUT<br />

If the double slashes were not used, the name would be interpreted as the HFS<br />

pathname PROGRAM.OUTPUT in the current working directory.<br />

v Unless a utility specifically provides an option to disable uppercasing, the default<br />

approach is to uppercase all MVS data set names before processing. For<br />

example, the following are all equivalent methods for specifying the MVS data set<br />

PROGRAM.OUTPUT:<br />

//program.output<br />

//ProGram.OutPut<br />

//PROGRAM.OUTPUT<br />

v The single quote (’) and parenthesis (()) metacharacters are typically used to<br />

specify fully-qualified MVS names and PDS/PDSEs, respectively. These<br />

characters, however, are metacharacters that will be incorrectly interpreted by the<br />

shell. To prevent this, they must be escaped. The simplest approach is to place<br />

the entire name within double-quotes (″). Alternatively, these characters can be<br />

escaped by preceding each with a backslash (\). Some examples are:<br />

To specify the fully qualified MVS data set ’SMITH.PROGRAM.OUTPUT’:<br />

"//’smith.program.output’"<br />

//\’smith.program.output\’<br />

To specify the fully qualified partitioned data set<br />

’SMITH.PROGRAM.SOURCE(FILE1)’:<br />

"//’smith.program.source(file1)’"<br />

//\’smith.program.source\(file1\)\’<br />

To specify the non-qualified partitioned data set PROGRAM.SOURCE(FILE1):<br />

"//program.source(file1)"<br />

//smith.program.source\(file1\)<br />

Utilities supporting MVS data set names<br />

The following utilities currently support the use of MVS filenames. Consult the<br />

description for each utility for limitations and exceptions:<br />

v cp<br />

v mv<br />

v pax<br />

v tar<br />

v c89<br />

© Copyright IBM Corp. 1996, 2007 935

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

Saved successfully!

Ooh no, something went wrong!