That doesn't work either. As I said to Gil off list, the problem appears to be 
that the JCL parser is generating DD cards for instream data before it does 
symbol substitution. It should work the other way around: do symbol 
substitution first then generate DD cards as needed.

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Farley, Peter x23353
Sent: Wednesday, May 27, 2015 13:16
To: [email protected]
Subject: Re: GENERATED STATEMENT!?

I would use this instead:

// SET INSTRM='* '              USE THIS ONE FOR PRE-JES2 2.1
// SET INSTRM='*,'             USE THIS ONE FOR JES2 2.1
. . . .
//SYMS2     DD  &INSTRM.SYMBOLS=(EXECSYS,LOGDD2)

Peter

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Paul Gilmartin
Sent: Wednesday, May 27, 2015 12:37 PM
To: [email protected]
Subject: GENERATED STATEMENT!?

In my JESJCL listing I see:
              ...
       33 //  EXPORT SYMLIST=*
       34 //  SET  IFSYM=''  (Blank for pre-JES2 2.1.)
       35 //IFSYM    EXPORT EXPSET=                            GENERATED 
STATEMENT
       36 //  SET  SYMVAL='Symbol value longer than name.'
       37 //SYMVAL   EXPORT EXPSET=Symbol value longer than... GENERATED 
STATEMENT
          //*
       38 //SYMS1     DD  *,SYMBOLS=(EXECSYS,LOGDD1)
       39 //LOGDD1    DD  SYSOUT=(,)
          //*
       40 //SYMS2     DD  *&IFSYM,SYMBOLS=(EXECSYS,LOGDD2)
          IEFC653I SUBSTITUTION JCL - *,SYMBOLS=(EXECSYS,LOGDD2)
       41 //SYSIN     DD *               GENERATED STATEMENT
       42 //LOGDD2    DD  SYSOUT=(,)
          //*
       43 //

Where does "41 //SYSIN     DD *               GENERATED STATEMENT"
come from?  What does it mean?  (I had no stray data cards.)

I hate JCL!

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.


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

Reply via email to