[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Conflict with the VMS Scheduler & CALL SYSTEM command
I was wondering if anyone out there have come across the following situation. If so and you
have found a solution, it would be of great help if you can let me know.
I have a Main SQR program (I'll call it A for simplicity). This 'A' program will be
calling another SQR program called 'B' which performs only 1 task and then returns the control
back to program 'A'.
I am calling program 'B' from 'A' using the CALL SYSTEM $string, where $string contains
"sqr B / -rt".
When I run the above setup at a command line, it works perfectly without a problem BUT
when I use the VMS SCHEDULER (which is something like CRON on UNIX) it bombs.
>From what I understand (which very well may be wrong), when VMS SCHEDULER kicks off a job,
it (SCHEDULER) creates another environment for that job (something like the fork in UNIX).
Now from that environment, when CALL SYSTEM is executed, it's creating another subshell (kind of)
to execute the OS command in. I have a feeling that somewhere there is a conflict between this
subshell (for the CALL SYSTEM command) and the Parent of this subshell (in which the SCHEDULER
is executing the job).
If anyone has come across such type of problem, how do you get around it??
I'm using SQR3 on VMS with ORACLE 7.3
Any help is appreciated, thanks in advance