Customizing /etc/csh.login
The /etc/csh.login file is used for setting environment variables such as TERM and is only read by tcsh when it is a login shell.
Important: Because /etc/csh.login is
the tcsh equivalent to /etc/profile for sh,
you need to keep system-wide information for both sets of users in
synch. Any customization that you have done for /etc/profile (such
as setting environment variables) must be duplicated in tcsh syntax
in /etc/csh.login. Future changes to /etc/profile also
need to be made to /etc/csh.login. If you maintain
a non-z/OS UNIX system, you
could consider porting /etc/csh.cshrc and /etc/csh.login from
that system to z/OS and
merging them with the z/OS samples.
Figure 1 shows a sample /samples/csh.login file:
Figure 1. Partial contents of
the /samples/csh.login file
tty -s
set tty_rc=$status
if (($?STEPLIB == 0 ) && ($tty_rc == 0)) then
setenv STEPLIB none
exec tcsh -l
endif
unset tty_rc
setenv TZ EST5EDT
setenv LANG C
setenv LIBPATH /lib:/usr/lib:.
setenv MAIL /usr/mail/$LOGNAME
# ==============================================================
# Start of c89/cc/c++ customization section
# ==============================================================
# foreach _CMP(_C89_CC_CXX)
# setenv ${_CMP}_CLIB_PREFIX "CBC"
# setenv ${_CMP}_PLIB_PREFIX "CEE"
# setenv ${_CMP}_SLIB_PREFIX "SYS1"
# setenv ${_CMP}_INCDIRS "/usr/include /usr/lpp/cbclib/include"
# setenv ${_CMP}_LIBDIRS "/lib /usr/lib"
#
# Esoteric unit for data sets:
# setenv ${_CMP}_WORK_UNIT "SYSDA"
# end
# unset _CMP
#
# =================================================================
# End of c89/cc/c++ customization section
# =================================================================
Use the cp command to copy /samples/csh.login to /etc/csh.login. Edit /etc/csh.login to change or add environment variables.