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.

|<br />

tcsh<br />

Table 33. tcsh Environment Variables (continued)<br />

ENVIRONMENT VARIABLE PURP<strong>OS</strong>E<br />

REMOTE- H<strong>OS</strong>T The host from which the user has logged in remotely, if<br />

this is the case and the shell is able to determine it.<br />

(The z/<strong>OS</strong> tcsh shell is not currently compiled with<br />

REMOTEH<strong>OS</strong>T defined; see the version shell<br />

variable.)<br />

SHLVL Equivalent to the shlvl shell variable.<br />

TERM Equivalent to the term shell varialbe.<br />

USER Equivalent to the user shell variable.<br />

VENDOR The vendor, as determined at compile time.<br />

VISUAL The pathname to a default full-screen editor. See the<br />

editor environment variable and the run-fg-editor<br />

editor command.<br />

Using tcsh shell variables to control automatic conversion<br />

When the tcsh shell is redirecting stdin, stdout, or stderr, it will default to no<br />

automatic conversion of tagged files, and no tagging of files created by the<br />

redirection. The following tcsh shell variables will override this behavior:<br />

Table 34. tcsh Shell Variables for Automatic Conversion<br />

Variable Purpose<br />

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

treating it as if it were tagged as:<br />

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

This has no effect if CCSID = 0.<br />

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

treating it 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<br />

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

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

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

of 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 tcsh shell session or shell script. If the variable is set in<br />

a user’s .tcshrc file, then it will affect child shells, that is, nested shell scripts.<br />

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