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.

tso<br />

Examples<br />

a mini-TSO/E environment is to be established, use environment variables<br />

to specify the allocations that you need.<br />

If you do not specify an option, the following rules determine how to run the TSO/E<br />

command:<br />

v If stdout is not a tty, the TSO/E service routine is used because it is possible<br />

that the command output will be redirected to a file or piped to another<br />

command.<br />

v If the controlling tty supports 3270 passthrough mode, the OMVS interface is<br />

used.<br />

v If neither is applicable, then the TSO/E service routine is used.<br />

1. To use OPUT to copy a file to a file in your current directory, issue:<br />

tso –t "oput source.c(hello) 'hello.c' "<br />

If you do not specify –t, the command is run in your TSO/E session through<br />

OMVS, if possible. This copies the file to a file relative to the working directory<br />

of your TSO/E session, which is usually your home directory.<br />

Quotes are used around the command to avoid shell parsing.<br />

2. To use OPUTX to copy all members of a PDS to your current directory, issue:<br />

tso –t "oputx source.c . lc suffix(c)"<br />

If you do not specify the –t option, the command is run in your TSO/E session<br />

through OMVS, if possible. This copies the file to a file relative to the working<br />

directory of your TSO/E session which is usually your home directory.<br />

Quotes are used around the command to avoid shell parsing.<br />

Since OPUTX uses ISPF, allocations for the ISPF DD names must be<br />

performed to run this command. The following is an example of the environment<br />

variables that are set to perform these allocations. This can be included in your<br />

.profile for convenience. Make sure the export statements start in column one.<br />

The data set names may differ on your system.<br />

# Assign the DD names to allocate<br />

#<br />

export TSOALLOC=ispprof:ispplib:ispmlib:isptlib:ispllib:ispslib:\<br />

isptabl:isplog:sysexec<br />

#<br />

# Allocate an empty, temporary ISPF profile data set<br />

#<br />

export ispprof="alloc new unit(sysvio) space(1,1) cyl dir(5) \<br />

recfm(f,b) lrecl(80) blksize(3120)"<br />

#<br />

# Allocate an empty, temporary ISPF table data set<br />

#<br />

export isptabl="alloc new unit(sysvio) space(1,1) cyl dir(5) \<br />

recfm(f,b) lrecl(80) blksize(3120)"<br />

#<br />

# Allocate the ISPF log to SYSOUT<br />

#<br />

export isplog="alloc sysout(a) recfm(v,a) lrecl(125) blksize(129)"<br />

#<br />

# Allocate the OpenMVS and ISPF panel data sets to ISPPLIB<br />

#<br />

export ispplib=SYS1.SBPXPENU:SYS1.ISP.SISPPENU<br />

#<br />

# Allocate the OpenMVS and ISPF message data sets to ISPMLIB<br />

#<br />

710 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

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

Saved successfully!

Ooh no, something went wrong!