I added a JOB statement and now I get an error on that also: IEFC019I MISPLACED JOB STATEMENT
The documentation seems to me to be contradictory. In the JCL Reference: " A cataloged procedure may consist of these JCL statements: CNTL, command, DD, ENDCNTL, EXEC, IF/THEN/ELSE/ENDIF, INCLUDE, OUTPUT JCL, and SET. Optionally, a cataloged procedure can begin with a PROC statement and end with a PEND statement. If coded, PROC must be the first statement in the procedure." -- No "JOB" in there. In System Commands under Start: " The job name for a given started task can be assigned based on a variety of inputs. ... 2. The job name specified on the JOB JCL statement within the member." Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Mark Jacobs Sent: Wednesday, December 17, 2014 5:08 PM To: [email protected] Subject: Re: JCLLIB in started proc? I use something like this in the STCJOBS dataset that's allocated in MSTJCL00. //MYSTC JOB // JCLLIB ORDER=(TECHSVC.PROCLIB) //MYSTC EXEC MYSTC Mark Jacobs Charles Mills wrote: > > 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 [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
