Desktop productivity for business analysts and programmers

how to get return code of Scheduled Project(EG7.1)

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 8
Accepted Solution

how to get return code of Scheduled Project(EG7.1)

Hi

 

I am trying to set up a Scheduled Project with EG7.1 executed by our own scheduleder, not with windows scheduler. Once I create vbs file with EG7.1 and call vbs script from batch file as following,

=================================

cscript %Path%\EGScript1.vbs
echo EGScript1=%errorlevel%

=================================

 

But even if my sas program in vbs finished with errors, return code always set to "0".

please anyone show me how to get return code of EG's scheduled project.

 

thanks.


Accepted Solutions
Solution
2 weeks ago
Super User
Posts: 10,557

Re: how to get return code of Scheduled Project(EG7.1)

Posted in reply to AsakoOkano

Do not schedule EG projects, schedule SAS code. SAS programs run in batch give you proper return codes.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code

View solution in original post


All Replies
Solution
2 weeks ago
Super User
Posts: 10,557

Re: how to get return code of Scheduled Project(EG7.1)

Posted in reply to AsakoOkano

Do not schedule EG projects, schedule SAS code. SAS programs run in batch give you proper return codes.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Respected Advisor
Posts: 4,780

Re: how to get return code of Scheduled Project(EG7.1)

Posted in reply to AsakoOkano

@AsakoOkano

On a high level: Your VB script run successfully and that's the return code you get. You need to create some logic within your script which captures the max return code of the child processes the VB script triggers.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 74 views
  • 0 likes
  • 3 in conversation