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

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

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

BPXBATCH<br />

The stdparm DD will allow either a z/<strong>OS</strong> <strong>UNIX</strong> file, or a MVS SYSIN PDS,<br />

PDSE or Sequential data set. The following are characteristics of the<br />

parameter data that can be supplied in the stdparm DD, if a z/<strong>OS</strong> <strong>UNIX</strong> file is<br />

specified:<br />

v It must be a text file defined with read access only<br />

v Specify one argument per line<br />

v The file cannot have sequence numbers in it.<br />

Tip: If you use the ISPF editor to create the file, set the sequence numbers<br />

off by typing number off on the command line before you begin typing data.<br />

If sequence numbers already exist, type UNNUM to remove them and then<br />

type number off.<br />

If a MVS data set is specified:<br />

v Specify one argument per line. If the parameter string for an argument<br />

spans more than one line of a data set or file, this string will be divided into<br />

two or more arguments that are passed to the corresponding shell script or<br />

program.<br />

v The maximum length of a single argument supplied to the program is<br />

32,760, which is the same as the maximum LRECL for an unspanned<br />

non-VSAM data set.<br />

v The record format of the data set can fixed or variable (unspanned).<br />

v The data set cannot have sequence numbers in it. If you use the ISPF<br />

editor to edit the data set, set the sequence numbers off by typing number<br />

off on the command line before you begin typing in the data. If sequence<br />

numbers already exist, type UNNUM to remove them and set number mode<br />

off.<br />

v Trailing blanks are truncated for SYSIN and variable block data sets, but not<br />

for fixed block data sets. For a fixed block data set, trailing blanks will be<br />

included in the parameter text for a given argument up to the end of the<br />

record.<br />

8. BPXBATCH does not close file descriptors other than 0–2. Other file<br />

descriptors that are open and not defined as “marked to be closed” remain<br />

open when you call BPXBATCH and BPXBATCH runs the specified script or<br />

executable file.<br />

9. BPXBATCH uses write-to-operator (WTO) routing code 11 to write error<br />

messages to either the JCL job log or your TSO/E terminal. Your TSO/E user<br />

profile must specify WTPMSG so that messages can be displayed at the<br />

terminal.<br />

10. BPXBATCH (with the SH parameter) must not be used to run an executable<br />

file, shell command, or shell script in the background (by specifying the shell &<br />

symbol) unless the shell nohup command is also used. If the shell ampersand<br />

(&) symbol is used without nohup, the results are unpredictable.<br />

11. BPXBATCH, when used with the PGM parameter, sets up environment<br />

variables for the program to be run. If the stdenv file is not allocated, the<br />

HOME and LOGNAME environment variables are set. If stdenv is allocated,<br />

the environment variables read from the file it represents are set, with HOME<br />

or LOGNAME or both environment variables added if they are not specified in<br />

the stdenv file. The following types of files can be allocated to stdenv:<br />

v z/<strong>OS</strong> <strong>UNIX</strong> text file<br />

v Sequential format MVS data set (including SYSIN data set)<br />

v Member of a partitioned data set (PDS)<br />

Other forms of MVS data sets, such as DUMMY, TERMINAL, SYSOUT, or<br />

PDS/E, are not supported for stdenv.<br />

896 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!