I'm in a bit of a bind.
This is AIX.
We have several programs where a call to a Unix script is made using a preset system variable, such as $ATEMP
Ok. I'm the 'lawson' user. When I log on to the server, and do a cd $ATEMP or echo $ATEMP it does it ok, no problems.
But when I run a program which uses the $ATEMP such as
CALL "SYSTEM" USING WS-COMMANDS.
... where WS-COMMANDS = $ATEMP/runscript.ksh (for example)
I'm checking the job logs and it's saying it can't find /runscript.ksh
This did work before we reset permissions using Permsmaint (level 1). Now it's not. I don't know where else to check.
Again, I can run the script in LID as the 'lawson' user no problem by running 'sh $ATEMP/runscript.ksh' but inside a COBOL program it can't or doen't know how to resolve the $ATEMP variable. I've already done a . cv and that has no effect.
Any ideas?
Thanks,
Roger
It's a very simple batch program written in MFCOBOL. Just a shell which calls the script. That's it.
WHen I (The 'lawson' user) logs in, I can and do run the script just fine. THe variables are already set when I log in. It's already written in the .profile. It's only when running the COBOL program does it not find the variables such as $ATEMP.
It's a very simple batch program. User submits the job. That's it. That's the process which executes the script.
Sam,
I've not ever seen that API before, and I can't find any documentation on that API.Is that a custom API you wrote? Do you have any documentation on what exactly it does? I've looked in the API guide and KB but nothing. I'd like to find out what that does.
THanks,
-R