Just "for fun", I'm testing weird JCL things. A couple of things that
I've found that are weird are:

1) If you do something like:
        //OPROC PROC
        //IPROC PROC
        //STEP2 EXEC PGM=IEFBR14
        // PEND
        // PEND
        //XSTEP EXEC PROC=OPROC
        //RSTEP EXEC PGM=IEFBR14

You will get a JCL error. But the JCL error is on the second PEND
statement. Nothing is said about not having a PROC defined within a PROC
in this case. But if you then remove the one of the PEND statements, the
error is when OPROC is expanded with a message "PROC VERB STATEMENT OUT
OF SEQUENCE"? If you don't expand OPROC, then you get no error message
at all!

2) You can do this:
        //MYPROC PROC
        //STEP1 EXEC PGM=IEFBR14
        //SYSIN DD *
        XXX
        // PEND
        //OSTEP EXEC PROC=MYPROC

The JCL error occurs in the expansion on the OSTEP step with "IEFC601I
INVALID JCL STATEMENT". Again, if you don't try to expand MYPROC, then
you don't get an error.

Somehow, this just seems wrong to me. Of course, I don't know the
history of the JCL converter / interpreter either.

This all came up in my testing of my JCL parsing routine. Yes, I'm still
doing it despite some rather negative comments from others about it. In
the 0.0000000001% chance that anybody cares, I have gotten all the JCL
so that each logical JCL statement has been composed from the physical
statements (i.e. concatenated the information from multiple
continuations and removed all comments). Not too bad, considering the
amount of time that I've worked on it.

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it. 

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