Hi All,
I am new to world of unix.
i have a sample of code which determines whether a file exists or not?
i just wanted to know whats the use of SP1550 in the first line of my code.
here is my code
STEP_EXECUTE STEP030 SP1550 '$SYSIN'
DATASET SYSIN $FTPDATA/SOP/PYCHECK_F3
STEP_END RESTART=STEP005
Thanks,
vattikuti.vc
No idea what STEP_EXECUTE is. What type of script is this?
Typically, you might use something like the following for file existence checks:
if [ -f $filename ]
then
do somethine
fi
This is the script used in an unix job .
i thought its a unix scripting. i am also not really sure abt it.
Now i need another clarification:
I have to write And Statemt in Unix.
can you help me on this?
Ex: If A= 1 and B=1
end-if
I need to the same to be converted to unix.
Thanks in advance.
vattikuti.vc
To start with, UNIX isn't a language, it's an operating system. There are many languages that will run on a Unix/Linux system which will have different syntax. For this forum, we're talking shell scripting. There are at least a couple of options:
if [ $a -eq 1 ] && [ $b -eq 1 ]
then
echo do something
fi
or
if [ $a -eq 1 -a $b -eq 1 ]
then
echo do something
fi