BookmarkSubscribeRSS Feed
SAS_LuisBolivar
Quartz | Level 8

Good afternoon.

 

I need the help of you experts.

 

I have built a Job in Data Integration which I want to deploy as an SP, said SP then I must deploy it as a Web Services to consume it within SAS RTDM.


The steps I am applying are the following:

 

Job DI:

 

SAS_LuisBolivar_0-1584979953833.png

 

User Written Code:

 

DATA WORK.DATOS;

                attrib to Length=$150;

                attrib from Length=$150;

                attrib asunto Length=$150;

                attrib mensaje Length=$500;

                to="&vto";

                from="&vfrom";

                asunto="&vasunto";

                mensaje="&vmensaje";

RUN;

 

Data &_INPUT1;

                attrib to Length=$150;

                attrib from Length=$150;

                attrib asunto Length=$150;

                attrib mensaje Length=$500;

                set work.DATOS;

run;

 

OPTIONS EMAILHOST='none.sas.com'

                               emailport=25;

                Filename Mailbox

                               Email to="&vto" from="&vfrom"

                               Subject="&vasunto"

                ;

 

                DATA _NULL_;

                               file Mailbox;

                               put "&vmensaje";

                RUN;

 

%let vstatus=&syserr;

 

DATA RESPUESTA;

                attrib to Length=$150;

                attrib from Length=$150;

                attrib asunto Length=$150;

                attrib mensaje Length=$500;

                attrib status length=8;

                to="&vto";

                from="&vfrom";

                asunto="&vasunto";

                mensaje="&vmensaje";

                status=&vstatus;

RUN;

 

Data &_OUTPUT1;

                attrib to Length=$150;

                attrib from Length=$150;

                attrib asunto Length=$150;

                attrib mensaje Length=$500;

                attrib status length=8;

                set work.RESPUESTA;

run;

 

SP deployment

 

D1.jpg

 

D2.jpg

D3.jpg

 

D4.jpg

D5.jpg

Deploya as Web Services

 

WS1.jpg

WS2.jpg

WS3.jpg

ws4.jpg

ERROR IN CI

CI1.jpg

 

 

com.sas.analytics.ph.RTDMException: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode

>soapenv:Server</faultcode><faultstring xml:lang="en">A 'Server Execution' type of exception occurred during execution of 'EnviarEmail' service.  The exception follows: SAS completed with n

onzero SYSCC '1,012'.  SYSMSG: ''.</faultstring>

 

I need your support to solve this problem.

Thank you.

1 REPLY 1
s_lassen
Meteorite | Level 14

The SYSCC variable is set when there is a warning or an error. It seems something went wrong with your mail step (probably the server none.sas.com does not exist). You are using the following data step to catch the error, so I assume that you can reset the SYSCC automatic variable after that.

 

But take a look at the log first, and see if that is really the case. 

 

If you are handling errors elsewhere, you can simply put 

%let syscc=0;

at the end of the program. But you may want to check it after each step, if this is production code.

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 915 views
  • 0 likes
  • 2 in conversation