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

v If the LRECL of the target STDOUT or STDERR data set is not large<br />

enough to hold a line of output, the data will be truncated and message<br />

BPXM080I will be put out indicating this has occurred. This can happen for<br />

both fixed and variable blocked data sets. For variable block data sets, the<br />

first four bytes of each record, record segment, or block make up a<br />

descriptor word containing control information. You must allow for these<br />

additional 4 bytes in the specified LRECL if you intend to avoid truncation of<br />

the output to the STDOUT and STDERR DDs.<br />

v If you use two members of the same partitioned data set for the STDOUT<br />

and STDERR ddnames, then you must use a PDSE (not a PDS). Using a<br />

PDS instead of a PDSE can result in a 213 abend (and, if running in a<br />

batch job, an abnormal end for the job step) or the output not appearing in<br />

the members as expected.<br />

v When you specify an MVS data set for either the STDOUT or STDERR<br />

ddnames, a child process will be created to run the target z/<strong>OS</strong> <strong>UNIX</strong><br />

program. In some cases, the child process will run in a separate address<br />

space from the BPXBATCH job. In such cases, the job log messages for the<br />

child will not appear in the job log of the BPXBATCH job. To capture the<br />

child's job log messages, set the _BPXK_JOBLOG=STDERR environment<br />

variable. This will cause the child's job log messages to be written to the<br />

STDERR data set specified in the BPXBATCH job.<br />

v In prior releases of z/<strong>OS</strong>, if a MVS data set is specified on STDOUT or<br />

STDERR, BPXBATCH ignores the data set and defaults to /dev/null. To<br />

remain compatible with this behavior, this new support will do the same<br />

defaulting if the MVS data set type is not supported (e.g. DD Dummy,<br />

Terminal, SYSIN, and so on), or if the MVS data set cannot be opened by<br />

BPXBATCH. A new message BPXM081I will be displayed indicating when<br />

this default behavior is being taken by BPXBATCH.<br />

v If STDOUT or STDERR are allocated as a PDS or PDSE member and<br />

overwriting of the output is expected from multiple runs of the same job or<br />

command, the data set should not be allocated with a disposition of NEW<br />

but rather as SHR or OLD. If the data set is allocated as NEW, the member<br />

will be created on the 1st run, but subsequent runs will cause i/o errors<br />

when attempting to write to the member.<br />

v If STDOUT or STDERR are allocated as a sequential data set and<br />

appending of the output is expected from multiple runs of the same job or<br />

command, the data set should be allocated with a disposition of MOD.<br />

v In general, any I/O errors that occur with an MVS data set defined to the<br />

STDOUT or STDERR (or STDPARM or STDENV, described below)<br />

ddnames will result in an abend (x13 or x37, for instance) and, if running in<br />

a batch job, an abnormal end for the job step. For example: If the user does<br />

not have security access to the data set defined to STDOUT, then when<br />

BPXBATCH attempts to open the data set, a 913 abend will occur and<br />

message IEC150I will provide details about the error.<br />

7. BPXBATCH now supports a parameter string up to 32754 characters when<br />

called from a TSO command environment. Also from both a batch and TSO<br />

environment, up to 65,536 characters can now be supplied via the a new input<br />

DD named stdparm. When the stdparm DD is allocated BPXBATCH will use<br />

the data found in the z/<strong>OS</strong> <strong>UNIX</strong> file or MVS data set associated with this DD<br />

rather that what is found on the parameter string or in the stdin DD. As a<br />

warning to the user, an informational message BPXM079I will be displayed<br />

indicating that this is occurring.<br />

Appendix D. Running shell scripts or executable files under MVS environments 895

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

Saved successfully!

Ooh no, something went wrong!