 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
nickb
Joined: 19 Oct 2010 Posts: 35 Country: United States |
|
URGENT - logging errors on agent |
|
We're testing the multi platform and we found a situation where if I run any SAS batch job and have it run on an Agent, the job always returns success. Error logging works fine on the local but not on Agent.
Steps:
log into agent and run job
navigate to the start directory and run job
type echo %errorlevel% returns 2
We have the job setup so successful code = 0
scheduler.log shows success
|
|
Fri Mar 25, 2011 1:35 pm |
|
 |
SysOpJ
Joined: 20 Aug 2010 Posts: 95
|
|
|
|
Is the "echo" statement part of your batch? Can you paste your job script here?
|
|
Mon Mar 28, 2011 6:29 am |
|
 |
nickb
Joined: 19 Oct 2010 Posts: 35 Country: United States |
|
|
|
It's a SAS batch job, so I don't think we can Echo. I can also attach the job logs to show all the errors when it runs.
d:\sas\BIPlatform\Lev1\SASApp\BatchS~1\sasbatch.bat -log D:\ETL\Logs\SASJobs\Backup\#Y#m#d/load_Mylabs_#H.#M.#s.log -batch -noterminal -logparm "rollover=Session" -sysin SASEnv~1\SASCode\Jobs/Load_Mylabs.sas
|
|
Mon Mar 28, 2011 9:23 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7949
|
|
|
|
Please try changing job command line to cmd /C rest of the command goes here
|
|
Tue Mar 29, 2011 1:00 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|