Attempting to use the $PBS_JOBID variable in my job submission script as part of the the output and error file name, but when then files are generated the variable is not resolved and the filename is just outputfilename.$PBS_JOBID instead of the actual ID.
I am setting it up in the submission script as follows:
#PBS -e /DIRECTORY/job-err.$PBS_JOBID
#PBS -o /DIRECTORY/job-log.$PBS_JOBID
This has worked for me in a torque installation, but cannot seem to get it to work with PBSpro. Also as a test I echo the variable later in the file with:
the correct output is generated and put into the job-log.$PBS_JOBID file.