BookmarkSubscribeRSS Feed
Hanu_007
Calcite | Level 5

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

2 REPLIES 2
Tom
Super User Tom
Super User

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.

Hanu_007
Calcite | Level 5

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

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 865 views
  • 0 likes
  • 2 in conversation