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.

Table 28. Built-in Shell Variables (sh command) (continued)<br />

Variable Purpose<br />

SHELL Contains the full pathname of the current shell. It is not set by the<br />

shell, but is used by various other commands to invoke the shell.<br />

This is set automatically from the RACF user profile when the user<br />

logs in.<br />

STEPLIB Identifies a STEPLIB variable to be used in building a process<br />

image for running an executable file. A STEPLIB is a set of private<br />

libraries used to store a new or test version of an application<br />

program, such as a new version of a runtime library. STEPLIB can<br />

be set to the values CURRENT or NONE or to a list of MVS data<br />

set names.<br />

If STEPLIB is not set, it defaults to CURRENT, which passes on<br />

the TASKLIB, STEPLIB, or JOBLIB allocations that are part of the<br />

invoker’s MVS program search order environment to the process<br />

image created for an executable file.<br />

IBM recommends that STEPLIB be set to NONE, which indicates<br />

you do not want a STEPLIB environment for executable files. You<br />

can specify up to 255 MVS data set names, separated by colons,<br />

as a list of data sets used to build a STEPLIB variable. Refer to<br />

z/<strong>OS</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> Planning for more information about<br />

building a STEPLIB environment.<br />

TMOUT Contains the number of seconds before user input times out. If user<br />

input has not been received within this length of time, the shell<br />

ends.<br />

TMPDIR Is the pathname of the directory being used for temporary files. If it<br />

is not set, the z/<strong>OS</strong> shell uses /tmp.<br />

TZ Contains the system time zone value used for displaying date and<br />

time. You can set the TZ variable in your $HOME/.profile file used<br />

during shell startup.<br />

The system administrator can also define a TZ default for all shell<br />

users in the /etc/profile file. If you are not in the same time zone,<br />

you can set TZ yourself.<br />

The system administrator can also define TZ for the /etc/init<br />

process in the /etc/init.options file.<br />

VISUAL Overrides the EDITOR environment variable in setting vi, emacs,<br />

or gmacs editing modes (see shedit).<br />

Automatic Conversion Shell Variables<br />

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

conversion of tagged files, and no tagging of files created by the redirection. The<br />

following shell variables will override this behavior:<br />

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

Variable Purpose<br />

_TAG_REDIR_IN=TXT Redirected stdin will override the file’s text flag (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 />

sh<br />

Chapter 2. Shell command descriptions 573

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

Saved successfully!

Ooh no, something went wrong!