On 27/04/2017 12:46 AM, Tom Marchant wrote:
or SET MESSAGE=&MESSAGE and change the references to &SYM to &MESSAGE.

SET MESSAGE=&MESSAGE seems to be the fix...

This works for all combinations I have thrown at it:

//TEST     PROC MESSAGE='''Hello World'''
//SYMBOLS  EXPORT SYMLIST=(MESSAGE)
//         SET MESSAGE=&MESSAGE
//S1       EXEC PGM=IEBGENER
//SYSIN    DD DUMMY
//SYSPRINT DD DUMMY
//SYSUT1   DD *,SYMBOLS=JCLONLY
 &MESSAGE
//SYSUT2   DD SYSOUT=*
//         PEND
//*
//S1       EXEC TEST
//S2       EXEC TEST,MESSAGE='''Hello Again'''
//S3       EXEC TEST
//S4       EXEC TEST,MESSAGE='''Hello Again'''

--
Andrew Rowley
Black Hill Software
+61 413 302 386

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

Reply via email to