BookmarkSubscribeRSS Feed
imdickson
Quartz | Level 8

Hi there. I am a SAS Developer that deal with BASE SAS Programming and SAS Enterprise Case Management.

 

At the moment, I want to trigger a stored process code that only does Proc Sql to delete data from database.

However, once i integrate this trigger process in ECM XML file, it will prompt 

The SAS program did not produce any output.

 

I then put a dummy command

 

%stpbegin;

%put xxx;

data a;

b=1;

run;

%stpend;

 

 

Still, it will either redirect me to the result page of dataset a or totally blank if i remove that datastep.

 

Is there a way that i can just put PROC SQL delete statement into the stored process script and it will only execute the Delete statement without my ECM redirecting me to anywhere?

1 REPLY 1
Vince_SAS
Rhodochrosite | Level 12

Specify a value for the _STATUS_MESSAGE macro variable to avoid the "no output" message:

 

https://go.documentation.sas.com/?docsetId=stpug&docsetVersion=9.4&docsetTarget=p184mqqbi9w6qjn1q061... 

 

 

proc sql; ... ; quit;

%let _STATUS_MESSAGE=Program finished.;

 

 

If you need a more elaborate message then you can use DATA step code:

 

 

proc sql; ... ; quit;

data _null_;
file _webout;
put '<h1>Program finished.</h1>';
run;

 

 

Or you can use background processing by specifying _ACTION=background.

 

https://go.documentation.sas.com/?docsetId=stpug&docsetVersion=9.4&docsetTarget=p184mqqbi9w6qjn1q061... 

 

 

Vince DelGobbo

SAS R&D

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 852 views
  • 1 like
  • 2 in conversation