sasjs / cli

Command line interface for creating, compiling, and building SAS® projects
https://cli.sasjs.io
MIT License
37 stars 5 forks source link

When compiling services (or tests) for serverType=SASJS, add mcf_stpsrv_header #928

Closed allanbowe closed 3 years ago

allanbowe commented 3 years ago

The stpsrv_header function is not available in Base SAS, so we need to compile the following to enable it: https://github.com/sasjs/core/blob/main/fcmp/mcf_stpsrv_header.sas

When serverType is SASJS we should include this definition as part of the sasjs compile process at the start of each service (or test)

After the macro definitions, and before the initProgram we should invoke as follows:

proc fcmp outcat=work.sasjs.utils;
%mcf_stpsrv_header()
quit;
allanbowe commented 3 years ago

Issue migrated here: https://github.com/sasjs/server/issues/9