I ran a Deliver RMODBB job, with wanting to have the Jobname be in the data file in positions 1-8.
However, in my input file, the Jobname did not start in column 1, so all the jobnames do not have the correct name.
What is the best way to rename the jobs with the incorrect name, as the Report IDs are all correct?
Release : 14.0
In the Deliver definitions, to rename a Jobname to another Jobname, you would use the following RMODBB job:
//XXXXXXXX JOB ...
//RMODBB01 EXEC PGM=RMODBB,PARM='dlvr_hlq' <=== Modify DB name
//STEPLIB DD DISP=SHR,DSN=DLVR.CVDELOAD <=== Modify, if used
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//DATA DD *
JOBNAME1 JOBNAME2 R
//SYSIN DD *
/JOBDEF OJOB=(1,8) JOB=(10,8) FUNCTION=(19,1)
/*
//
In the above, the original Jobname is in (1,8) and the new Jobname is in (10,8), for the Rename function (FUNCTION of R).
It is suggested to first try the above on a test database, to become comfortable with the function.