Hi,
We are submitting the job to the SAS grid using below utility.
${gsublocation}/sasgsub -gridconfig ${gsubconfiguration}/sasgsub.cfg -gridsubmitpgm ${SASPROGRAM}
When the job(SASPROGRAM) starts running on the grid, is it possible to read the job id in SASPROGRAM.sas file
Thank you
Hanu
Did you check if GSUB creates an environment variable with the value of the currently running job id? if it does use the SYSGET() function to get its value.
Thank you
I tried getting the value as follows, but it does not return any value.
%let jobid = %sysget(LSB_JOBID);
While i was searching through some blogs, following information was posted by some one
%GSUB writes the server JOBID to the WORK.GSUB datasetWORK.GSUBHOLDS A SINGLE JOBID
When i tried to get the job as follows, got the error "ERROR: File WORK.GSUB.DATA does not exist"
%***get JobID;
Data _null_;
set gsub;
call symputx('jobid', put(jobid,8.));
run;
%let jobid=&jobid;
are there any settings to be added/changed gridsubmitpgm to get access to WORK.GSUB.DATA
Thank you
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.
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.
Ready to level-up your skills? Choose your own adventure.