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-white.png

Special offer for SAS Communities members

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.

 

View the full agenda.

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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