The service wrote a raw HTML line straight to the _webout fileref after the load completed. On Viya, API-submitted jobs (eg via mx_execute) do not always have that fileref connected to a job result, so the output was lost and job-result consumers aborted. Return a proper sasparams table through %webout() instead - the same pattern as the other admin services - and update the test to assert on the webout sasparams message.
34 lines
638 B
SAS
34 lines
638 B
SAS
/**
|
|
@file refreshcatalog.sas
|
|
@brief Refreshes the library data catalog
|
|
@details A library may be passed in a LIBREF url param.
|
|
|
|
<h4> SAS Macros </h4>
|
|
@li mpeinit.sas
|
|
@li dc_refreshcatalog.sas
|
|
@li mpeterm.sas
|
|
|
|
@version 9.3
|
|
@author 4GL Apps Ltd
|
|
@copyright 4GL Apps Ltd. This code may only be used within Data Controller
|
|
and may not be re-distributed or re-sold without the express permission of
|
|
4GL Apps Ltd.
|
|
|
|
**/
|
|
%global libref;
|
|
%mpeinit()
|
|
|
|
%dc_refreshcatalog(&libref)
|
|
|
|
|
|
data sasparams;
|
|
length msg $64;
|
|
msg='Catalog Refresh Complete';
|
|
run;
|
|
|
|
%webout(OPEN)
|
|
%webout(OBJ,sasparams)
|
|
%webout(CLOSE)
|
|
|
|
%mpeterm()
|