While I agree that IEFJOBS makes it clearer and works better, you can place 
started job JCL in the MSTJCL PROCLIB. I have best results when the EXEC MYPROC 
references a separate member, but there should be no reason a properly define 
INSTREAM PROC wouldn't work.

> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU]
> On Behalf Of Jousma, David
> Sent: Thursday, December 18, 2014 5:32 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: JCLLIB in started proc?
> 
> Charles, as others have pointed out,  you cannot add jobcard JCLLIB
> statements to the PROCLIB member.   You must modify/configure MSTJCL to
> include a IEFJOBS dd statement pointing at a PDS dataset.   In that
> library, you can code a jobcard and JCLLIB statement that calls the
> proc you want.
> 
> _________________________________________________________________
> Dave Jousma
> Assistant Vice President, Mainframe Engineering david.jou...@53.com
> 1830 East Paris, Grand Rapids, MIĀ  49546 MD RSCB2H p 616.653.8429 f
> 616.653.2717
> 
> 
> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU]
> On Behalf Of Charles Mills
> Sent: Wednesday, December 17, 2014 8:05 PM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: JCLLIB in started proc?
> 
> I just added a JCLLIB statement to a cataloged  procedure that I start
> with a Start command. I am getting IEFC019I MISPLACED JCLLIB STATEMENT.
> Should I infer that JCLLIB is not allowed in a started PROC, or should
> I be looking for a fat-finger coding error? (I want the JCLLIB for
> INCLUDE, not EXEC
> PROC=.) I RTFM but don't see anything explicit.
> 
> It does refer to "in a job" at several points. Is JCLLIB allowed in a
> started PROC if the PROC has a JOB statement? I know I can do that but
> I've never done it. Where is that documented?
> 
> Thanks,
> 
> Charles
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions, send
> email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
> 
> This e-mail transmission contains information that is confidential and
> may be privileged.   It is intended only for the addressee(s) named
> above. If you receive this e-mail in error, please do not read, copy or
> disseminate it in any manner. If you are not the intended recipient,
> any disclosure, copying, distribution or use of the contents of this
> information is prohibited. Please reply to the message immediately by
> informing the sender that the message was misdirected. After replying,
> please erase it from your computer system. Your assistance in
> correcting this error is appreciated.
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions, send
> email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
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