Within Viya the new functionality to background submit is a very nice addition, but is lacking for use in a couple of ways for use in pharma:
1) Inability to specify an autoexec program like you can when doing a CLI submission
2) Difficulty in automating when having to run ~100 programs for a deliverable
I think building a package of data step tools to allow programmatically submitting programs to the background would be beneficial for everyone. I presented partially on this at Innovate earlier this year. I currently do this with RSUBMIT code, but I think similar functionality could be made with data step functions. Something like:
data submissions;
JOBID=background_submit(program="ProgramPath/ProgramName.sas",autoexec="ProgramPath/autoexec.sas");
run;
Then have the variable name contain the job ID spawned from the background job if successful. Having another function to return the job status based on the job ID would also be great, and these functions would be usable in %sysfunc to macrotize.
data _null_;
set submissions;
JOBSTATUS=background_status(JOBID);
put JOBSTATUS=;
run;
Having a way to sequence jobs would be really great as well. Something like assigning a queue number that works small to large. Jobs with queue number 1 have to finish before jobs with queue number 2 start or something like that. I built all of this logic with macro functions and RSUBMIT but having something native would be a large benefit I think.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.