ImmuBaan
19th September 2004, 06:11
After upgrading to the new porting set 6.1c.07.04 we cannot run our jobs via windows scheduler on NT. I've tried running our jobs from the command prompt via a batch file similar to previous postings (see below for script). However, we get an error after Baan loads that says Cannot load session or object (--).

If we place the script in command line of in the bwc the job runs fine. However trying to run the dos prompt we get the above error. In the event viewer of NT we get the following error:

Env baan (f:\baan)
Prog bshell file \general\lib\al_1\AL_FPATH.C # 195
Keyword sopen
Username job000 type S language 2
Process 0x1b5
Lasterror 2 (The system cannot find the file specified.)
Errno 2 (No such file or directory)
bdberrno 111 (No record found)
Message
No definition in definition file for sopen(F_OBJ:--, --)


Any suggestions? We're have NT 4 with SP 6c. As of right now we cannot run the jobs without doing them manually! Any suggestions would be great.

Thanks!

Batch file code:

set user_name="job000"
set job_name="DELHST"

if "%user_name%" == "" goto argerror
if "%job_name%" == "" goto argerror

start %BSE%\bin\bw.exe job000.bwc -- -set BSH_JOB=%job_name% ttaad5203m000
goto end


:argerror
echo Usage: startjob "USER"(company specific) "JOB" (name of job to be started)
goto end
:end