If you are using the LSF scheduler in SMC then you can add an environment variable to the job then use the SYSGET SAS function to read that into a macro variable. We use this technique ourselves and it is a great way to supply job inputs automatically.
%let batch_var = %sysfunc(sysget(batch_var)); * Reads an environment variable called batch_var.;