Architecting, installing and maintaining your SAS environment

Platform Process Manager issue.

Reply
Frequent Contributor
Posts: 114

Platform Process Manager issue.

Hi,

 

Today there was a strange issue in my Platform Process manager.

 

I tried to execute the job and the job got failed in the environment i.e. in Platform Process Manger.

 

When I'm checking the logs, there were no errors in the log and even the data has been loaded into destination as expected.

 

What could be a potential reason for showing exit in Platform Process manager.Thanks in advance

Trusted Advisor
Posts: 1,758

Re: Platform Process Manager issue.

Posted in reply to Helannivas

Hello @Helannivas,

 

first, I wonder if you have the option ERRORABEND enabled. Such option enables the SAS code to continue, even if it finds errors in a specific data step or procedure.

 

Second, I would check the log generated by your SAS code for that SAS job, including the log and lst files and the log from the Process Manager, say, lsb.events and such. Or the history of your job. What is the exit code for that job? That would give us more information.

Occasional Contributor
Posts: 19

Re: Platform Process Manager issue.

Posted in reply to Helannivas

Hi @Helannivas

 

I think you should look at the sasbatch.bat -file

Eg. :"E:\SAS\Config\Lev1\SasApp\BatchServer\sasbatch.bat"

 

As default it returns RC=1 if there is warnings in the sas-program. This will PPM interpret as an error.

To make it accept warnings and return 0, you should remove the REM statements in the last 4 lines of the sasbatch.bat-file


set rc=%ERRORLEVEL%
if %rc%==1 goto makenormalexit
exit /b %rc%
:makenormalexit
exit /b 0

 

 

You should consider the arguments in this discussion:

SAS-Scheduler-ID-running-X-CMD

 

Super User
Posts: 9,932

Re: Platform Process Manager issue.

Posted in reply to ChristianHandberg

And if it's a WARNING, then clean up your code so that you don't get the WARNING on a proper run. WARNINGs are there for a purpose and should not be globally ignored.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Occasional Contributor
Posts: 19

Re: Platform Process Manager issue.

Posted in reply to KurtBremser
Unfortunately SAS DI sometimes generate code that make Warnings you can't do anything about.
So to make your flow complete you have to do the "workaround".
Ask a Question
Discussion stats
  • 4 replies
  • 156 views
  • 4 likes
  • 4 in conversation