John,

Actually, it is documented to work that way.

According to the JCL reference, if the same symbolic keyword is present
multiple time, the value used is that provided by the first occurrence.

Checking back through some old manuals, this has been the case since at
least OS/360 r21.7.

John P. Baker

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf
Of John Mattson
Sent: Friday, July 02, 2010 3:32 PM
To: [email protected]
Subject: Amusing JCL Oddity

One would think that the following would generate a JCL error.  Well, not 
on my system (zOS 1.08).  Takes the first values for SP1 & SP2.  Go figure 

//ALLOC   EXEC PROC=A#,SP1=100,SP2=100, 
//             HLVL=USS,MLVL=SMPNTS,LLVL=ZOS108,SP1=3000,SP2=0500,V= 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to