> Thanks. Digressing ... any idea of the WHY for this restriction?

What restriction? The restriction that JCLLIB is only allowed in cased 1a) and 
2a)?


Only guessing here. I suspect that it would have made things too complex if 
JCLLIB was allowed anywhere in JCL. Imagine a procedure was resolved and within 
that part, a new JCLLIB was defined before another procedure had to resolved, 
etc., etc. Nesting is allowed for up to 15 levels.


So a design decision was taken to allow JCLLIB only between the JOB statement 
and the first EXEC statement in a job.


If not case 1a) or 2a), the JOB and EXEC statements are built by the START 
command processor.  There is no way to place a JCLLIB, unless the START command 
itself would support some keyword to specify a library that trigged building a 
JCLLIB statement between the JOBs and the EXEC statments. It does not, and 
honestly why should it? You can create jobs including JCLLIB easily.


If this is not an answer to your question, please be more specific.


--
Peter Hunkeler







----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to