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

Usage notes<br />

and exec. BPXBATCH creates a process for the program to run in and then<br />

calls the program. If you specify PGM, you must also specify<br />

program_name.<br />

All environment variables read from the stdenv file are set when the<br />

program is run if stdenv was allocated. If the HOME and LOGNAME<br />

variables are not specified in the stdenv file, or stdenv was not allocated,<br />

then HOME and LOGNAME, if possible, are set when the program is run.<br />

Refer to Usage notes for more information on environment variable<br />

processing.<br />

Note: When using PGM, the program_name cannot contain any shell<br />

specific functions because they will not be resolved. If shell specific<br />

functions must be specified, then SH should be used to avoid<br />

possible errors or unpredictable results.<br />

program_name<br />

Specifies the shell command name or the z/<strong>OS</strong> <strong>UNIX</strong> path name for the shell<br />

script or z/<strong>OS</strong> C executable file to be run. In addition, program_name can<br />

contain option information.<br />

The program_name is interpreted as case-sensitive.<br />

Note: When PGM and program_name are specified and the specified program<br />

name does not begin with a slash character (/), BPXBATCH prefixes the<br />

user’s initial working directory information to the program path name.<br />

1. BPXBATCH is an alias for the program BPXMBATC, which resides in the<br />

SYS1.LINKLIB data set.<br />

2. BPXBATCH must be invoked from a user address space running with a<br />

program status word (PSW) key of 8.<br />

3. BPXBATCH does not translate characters on the supplied parameter<br />

information. You should supply parameter information, including z/<strong>OS</strong> <strong>UNIX</strong><br />

path names, using only the P<strong>OS</strong>IX portable character set. For information on<br />

the P<strong>OS</strong>IX portable character set, see z/<strong>OS</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong><br />

Programming Tools.<br />

4. If your BPXBATCH job returns ABEND 4093 reason code 0000001c, you need<br />

to expand the region size. For example:<br />

//SHELLCMD EXEC PGM=BPXBATCH,REGION=8M,PARM=’SH shell_cmd’<br />

5. BPXBATCH does not support any ddnames other than stdin, stdout, stderr,<br />

stdenv or stdparm . Attempting to allocate or reference any other ddnames<br />

will result in enqueue failures or unpredictable results. To use an MVS data set<br />

in your batch <strong>UNIX</strong> application, use ″dynamic allocation″, such as SVC99 or<br />

the TSO ALLOC command. Also, you must remove all ″static allocations″<br />

(ddnames referring to the MVS data set in question) from all steps in the batch<br />

job.<br />

6. If you define an MVS data set for stdout or stderr consider the following:<br />

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

v It must be a sequential data set, a partitioned data set (PDS) member, a<br />

partitioned data set extended (PDSE) member, or SYSOUT.<br />

v The data set must have a nonzero logical record length (LRECL) and a<br />

defined record format (RECFM); otherwise, BPXBATCH will fail with error<br />

message BPXM012I indicating an open failure for the affected ddname.

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

Saved successfully!

Ooh no, something went wrong!