IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Using the Jobname parameter in a Qualifier


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Nils Quiring

New User


Joined: 07 Aug 2023
Posts: 1
Location: Germany

PostPosted: Mon Aug 07, 2023 3:14 pm
Reply with quote

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.
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1255
Location: Bamberg, Germany

PostPosted: Mon Aug 07, 2023 3:46 pm
Reply with quote

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.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts ISRSUPC search utility - using high l... TSO/ISPF 2
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts To replace jobname in a file with ano... SYNCSORT 12
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts Writing the output file name from a p... JCL & VSAM 7
Search our Forums:

Back to Top