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
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: