You want to set the environment using the command setenv. Unfortunately, the command is failing with the below error message,
setenv: command not found
Solution
Execute the following commands to switch the user login shell.
#chsh root
Change to the /bin/csh shell
Changing the login shell for root
Enter the new value, or press ENTER for the default
Login Shell [/bin/bash]: /bin/csh
Check the shell state
echo $0
csh
You can now execute the setenv command.
# setenv
LANG=POSIX
WINDOWMANAGER=xterm
LESS=-M -I -R
JAVA_ROOT=/usr/lib64/jvm/jre-1.8.0-ibm
HOSTNAME=ITsiti
CSHEDIT=emacs
GPG_TTY=/dev/pts/7
LESS_ADVANCED_PREPROCESSOR=no
COLORTERM=1
OSTYPE=linux
USER=root
PAGER=less
MORE=-sl
PWD=/root
HOME=/root
LC_CTYPE=C.UTF-8
XNLSPATH=/usr/X11R6/lib/X11/nls
XDG_DATA_DIRS=/usr/share
PROFILEREAD=true
FROM_HEADER=
MAIL=/var/spool/mail/root
LESSKEY=/etc/lesskey.bin
TERM=xterm
SHELL=/bin/bash