Hi All,
I have a simple code unit (50351) the code is the following:
IF NOT EXISTS('C:\TemplatesRelance\NAS.txt') THEN
MyFile.CREATE('C:\TemplatesRelance\NAS.txt');
MyFile.WRITEMODE(TRUE);
MyFile.TEXTMODE := TRUE ;
MyFile.OPEN('C:\TemplatesRelance\NAS.txt');
MyFile.WRITE('TEST NAS'+FORMAT(CURRENTDATETIME));
MyFile.CLOSE;
I create a JOB Sheduler that run my code unit (50351). when I run the JOB using the form of Job Sheduler Management the code unit is running successfully. I want to run my JOB using NAS Service, so I have installed correctly the NAS with the correct configuration.
in the Start-up Parameter I put 'JOBQUEUE' as value. I start the NAS Service, but nothing happening.
Thanks for help.
0
Comments
Check http://www.mibuso.com/howtoinfo.asp?FileID=15 to see if your NAS is installed correctly.
Some tests you can do: run command from dos WITHOUT the INSTALLASSERVICE-parameter. This way the NAS starts from DOS using the current Windows user (use RUNAS the change the user with which you run it.
You can also add the DEBUG-parameter. This starts the debugger and you can debug the NAS.
PS you have an error in your code if it doesn't exist, you CREATE the file and then OPEN it.: Probably you need something like this:
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
I found that I must add a "JOB Queue Entry" as a parameter in the OnRun function of the code unit. The Job is running now correctly.
But why I should add this parameter?
Thanks for all of you