|
Macros for SAS Application Developers
https://github.com/sasjs/core |
Create a job in SAS 9, Viya or SASjs. More...
Go to the source code of this file.
Creates a Stored Process in SAS 9, a Job Execution Service in SAS Viya, or a Stored Program on SASjs Server - depending on the executing environment.
Usage:
%* compile macros ;
filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc;
%* write some code;
filename ft15f001 temp;
parmcards4;
data example1;
set sashelp.class;
run;
;;;;
%* create the job;
%mx_createjob(path=/Public/app/jobs,name=myjob,replace=YES)
| [in,out] | path= | The full folder path where the job will be created |
| [in,out] | name= | Job name. Avoid spaces. |
| [in] | desc= | The description of the job (optional) |
| [in] | precode= | Space separated list of filerefs, pointing to the code that needs to be attached to the beginning of the job (optional) |
| [in] | code= | (ft15f001) Space seperated fileref(s) of the actual code to be added |
| [in] | replace= | (YES) Select YES to replace any existing job in that location |
| [in] | mDebug= | (0) set to 1 to show debug messages in the log |
Definition in file mx_createjob.sas.