Our DBA recently resigned and I was thrown into the deep end taking over his responsibilities with about 2 weeks in house training.
I must execute a Natural program through task scheduler in a Natural 8.3.4 environment. There is 1 task running like that and I’ve tried to recreate it as best I could but mine is not working.
My Natural program name is ‘HELLO’.
I have created a batch file called hello.bat with the following command:
“C:\SoftwareAG\Natural\Bin\natural.exe” batchmode parm=HELLO
I have created the txt file called HELLOBATCH.txt with the following command:
LOGON TRACTMP (this is where my production db lives)
My task in the scheduler ‘Action’ is: Start a program “d:\Production scripts\HELLO.bat (both the .bat and the .txt files lives here)
But something must be missing.
Is there somewhere in Natural whereI must create a ‘link’ between the .bat file and the .txt file? How does Natural/task scheduler know that it must also take the .txt file, with the logon command, into account when executing the task? It is as if the scheduler don’t really execute the natural program although it says ‘TASK executed’.