SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
URGENT - logging errors on agent

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
URGENT - logging errors on agent
Author Message
nickb



Joined: 19 Oct 2010
Posts: 35
Country: United States

Post URGENT - logging errors on agent Reply with quote
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 View user's profile Send private message
SysOpJ



Joined: 20 Aug 2010
Posts: 95

Post Reply with quote
Is the "echo" statement part of your batch? Can you paste your job script here?
Mon Mar 28, 2011 6:29 am View user's profile Send private message
nickb



Joined: 19 Oct 2010
Posts: 35
Country: United States

Post Reply with quote
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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6749

Post Reply with quote
Please try changing job command line to cmd /C rest of the command goes here
Tue Mar 29, 2011 1:00 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
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


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.