Automatically Change Job Card Name To User ID?
Posted: Fri Oct 07, 2016 4:13 am
Hello,
My team currently has various JCLs that we all share, but run individually as needed. With our shop's setup, the first characters of the job name must match our User ID or else we get the following error:
So every time we want to run one of the shared JCLs, we have to edit the JCL and change the job name to match our User ID before submitting. For example, if I open a JCL and the last person to run the JCL was "JOEUSER," then the job card will look something like this:
And if my user ID is "AQJENTZ" I have to change it to this before submitting the job:
And this is the process anyone has to go through if they want to run the JCL. I've tried removing the job card altogether and trying to submit, but the system will ask:
And then I'll enter a jobname character, but the JCL will JCLERROR out and never run successfully. I haven't been able to find any other possible solutions when searching online. I know we can successfully use "&SYSUID" for the NOTIFY portion of the job card and it will notify the current user correctly, but I haven't found anyway of doing anything similar with the job card name.
Is there anything we can do so that users don't have to change the job card name every time they submit the JCL? Or is this something we're stuck with? Any help or guidance on this would be much appreciated, thanks!
My team currently has various JCLs that we all share, but run individually as needed. With our shop's setup, the first characters of the job name must match our User ID or else we get the following error:
FIRST CHARACTERS OF JOBNAME NOT EQUAL TO USERID - SUBMIT TERMINATED
***
***
So every time we want to run one of the shared JCLs, we have to edit the JCL and change the job name to match our User ID before submitting. For example, if I open a JCL and the last person to run the JCL was "JOEUSER," then the job card will look something like this:
//JOEUSERA JOB (M9999),'TEST JCL',CLASS=U,MSGCLASS=Y,
// NOTIFY=&SYSUID
// NOTIFY=&SYSUID
And if my user ID is "AQJENTZ" I have to change it to this before submitting the job:
//AQJENTZA JOB (M9999),'TEST JCL',CLASS=U,MSGCLASS=Y,
// NOTIFY=&SYSUID
// NOTIFY=&SYSUID
And this is the process anyone has to go through if they want to run the JCL. I've tried removing the job card altogether and trying to submit, but the system will ask:
ENTER JOBNAME CHARACTER(S) -
And then I'll enter a jobname character, but the JCL will JCLERROR out and never run successfully. I haven't been able to find any other possible solutions when searching online. I know we can successfully use "&SYSUID" for the NOTIFY portion of the job card and it will notify the current user correctly, but I haven't found anyway of doing anything similar with the job card name.
Is there anything we can do so that users don't have to change the job card name every time they submit the JCL? Or is this something we're stuck with? Any help or guidance on this would be much appreciated, thanks!