Nils Quiring
New User
Joined: 07 Aug 2023 Posts: 1 Location: Germany
|
|
|
|
I am trying to allocate a new Dataset using the Jobname in the Qualifier.
//JOBNAME JOB ACCOUNT,NOTIFY=&SYSUID
//STEP1 EXEC PGM=IEFBR14
//DD1 DD DSN=MY.DS.&JOBNAME.,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(10,10)),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=3200),
// UNIT=SYSDA
However, I always get a JCL Error "incorrect use of Ampersand in the DSN Field". Is it not allowed to use the Jobname in a Qualifier? The Parameter is correctly resolved in the Qualifier. I could not find any information on it. Any help would be appreciated. |
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1337 Location: Bamberg, Germany
|
|
|
|
Check if your JOB class has SYSSYM allow specified. Also, you don't want to see JES2 in the name, after you have fixed the first issue.
Please use code tags when providing any code or data. |
|