I got a error message
The environmental variable AUTOSYS is not set !
I think I require to to add a path to PATH variable in the startup scripts in the home dir.
I tried using set PATH=
but it is not setting the PATH when i do the echo $PATH , i dont get the new PATH reflected, Is there anything i need to do before i run the SET command.
What are you really trying to do ? What you describe is NOT a standard "shell environment".
What shell are you using ? Each different shell has a different syntax for setting environment variables.
The mention of the variable "AUTOSYS" makes me think you are running a script inside a "batch environment" using the (C.A.) facility "AutoSys". This is a MUCH more complicated execution environment, and cannot be explained or trouble-shot in a forum.
PATH is just one of them and is used as a search path to find executable programs/scripts.
Another one is PWD, which has as value the directory you are located in.
Another is TERM, which is set to a value indicating the type of terminal you are using.
Those are above are kinda "standard" environment variables.
You are free to define your own, which is usually done in startup scripts like "~/.profile" etc.
You are running a script or program which expects the environment varible AUTOSYS to be set.
If it is not set, it will cause an error message.
So prior to running your program or script you have to make sure that the variable AUTOSYS is defined.
Which values you can assign to it, I cannot tell you. To know that you should read the documentation that came with the scripts or program or check the code if it is a script.
To make your program run, you would need to do something like:
AUTOSYS=<some value which is valid for this variable>
export AUTOSYS
./<your program>
If AUTOSYS always has the same value you could add a line to your "~/.profile" to define the variable.
Autosys is a "Batch Execution" package meant to 'enhance' cron and basically make UNIX behave like a mainframe. 'AUTOSYS' is a variable used in all the 'autosys scripts', that is set to the "installation directory' of the AutoSys package. Inside of most of the AutoSys sctipts you will see things like: $AUTOSYS/bin/<programname> So it is like "JAVA_HOME", "ORA_HOME", et. al..