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.

sh<br />

Files<br />

Table 29. Shell Variables for Automatic Conversion (sh command) (continued)<br />

Variable Purpose<br />

_TAG_REDIR_IN=BIN Redirected stdin will override the file’s TXTFLAG, treating it<br />

as if it were tagged as:<br />

TXTFLAG = OFF, CCSID = existing file tag CCSID<br />

This effectively disables automatic conversion.<br />

_TAG_REDIR_OUT=TXT Redirected stdout will be tagged as:<br />

TXTFLAG = ON, CCSID = program CCSID at the time of<br />

the first write (if not already tagged)<br />

_TAG_REDIR_OUT=BIN Redirected stdout will be tagged as:<br />

TXTFLAG = OFF, CCSID = program CCSID at the time of<br />

the first write (if not already tagged)<br />

_TAG_REDIR_ERR=TXT Redirected stderr will be tagged as:<br />

TXTFLAG = ON, CCSID = program CCSID at the time of<br />

the first write (if not already tagged)<br />

_TAG_REDIR_ERR=BIN Redirected stderr will be tagged as:<br />

TXTFLAG = OFF, CCSID = program CCSID at the time of<br />

the first write (if not already tagged)<br />

The automatic conversion shell variable can be specified for one command, or for<br />

multiple commands within a shell session or shell script. If the variable is exported,<br />

it will affect child shells, that is, nested shell scripts.<br />

Note: Because the standard shell execution performs redirection before variable<br />

assignment, the syntax for specifying the shell variable for one command is:<br />

(_TAG_REDIR_OUT=TXT; command >file)<br />

These variables can also be used in pipelined commands, to tag the stdout of each<br />

command that is writing to a pipeline, and/or the stdin of each command reading<br />

from a pipeline.<br />

sh_history<br />

The default history storage file.<br />

.profile<br />

The user profile for login shell.<br />

/etc/profile<br />

The systemwide profile for login shells.<br />

/tmp/sh*<br />

Temporary files for here-documents, command substitution, history<br />

re-execution, and so on. The default directory /tmp can be overridden by<br />

setting the shell variable TMPDIR to the name of some other directory.<br />

/etc/suid_profile<br />

Used instead of the script specified by the ENV variable (and the<br />

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