Hi Seymour, Thanks for your reply - I originally used symbols (wrongly). ..
Your solution does not require the dummy step because you suggested // SET AV=&ACTION without the quotes... When I used // SET AV='&ACTION' it didnt work Old dogs, new tricks... thank you Colin On Thu, 2 Dec 2021 at 10:29, Seymour J Metz <[email protected]> wrote: > I believe that the problem is a combination of an error in your JCL and an > error in the Converter. &ACTION is a symbolic parameter but not a symbol. > Try > > // SET ACTIONVAR='&ACTION' > ... > //PARMDD DD *,SYMBOLS=JCLONLY > SH /u/mqweb3/conf/ccc.sh aa &T2 x &ACTIONVAR y &ACTIONVAR z > /* > > Note that you don't need the terminating period since the symbol is > followed by a space. > > -- > Shmuel (Seymour J.) Metz > http://mason.gmu.edu/~smetz3 > > ________________________________________ > From: IBM Mainframe Discussion List [[email protected]] on behalf > of Colin Paice [[email protected]] > Sent: Thursday, December 2, 2021 5:09 AM > To: [email protected] > Subject: Re: Trying to use long parm= in started task > > I have set up a script with > echo "$1 $2 $3 $4 $5 $6 $7" > echo "all $*" > and > //COLWEB PROC ACTION='start' > // EXPORT SYMLIST=* > // SET T2='T2T2' > //IHS EXEC PGM=BPXBATCH,REGION=0M,PARMDD=PARMDD > //PARMDD DD *,SYMBOLS=JCLONLY > SH /u/mqweb3/conf/ccc.sh aa &T2 x &ACTION. y &ACTION z > /* > //STDOUT DD SYSOUT=H > //STDERR DD SYSOUT=H > //STDENV DD DISP=SHR,DSN=USER.Z24C.PROCLIB(HTTPENV) > > this gives > aa T2T2 x > all aa T2T2 x > > so &action,&action>.< and any text after the &ACTION. are ignored. > Also the y and Z are not displayed... so &action is not just being > replaced with blanks .. but is saying "end of parsing" > it is a good little problem... hidden depths. > Colin > > > On Wed, 1 Dec 2021 at 20:18, Seymour J Metz <[email protected]> wrote: > > > In the JCL before he tried PARMDD I saw "&ACTION" followed by a letter; > > did he doe the same thiong with PARMDD or did he have a period in > between? > > > > > > -- > > Shmuel (Seymour J.) Metz > > http://mason.gmu.edu/~smetz3 > > > > ________________________________________ > > From: IBM Mainframe Discussion List [[email protected]] on behalf > > of Paul Gilmartin [[email protected]] > > Sent: Wednesday, December 1, 2021 2:19 PM > > To: [email protected] > > Subject: Re: Trying to use long parm= in started task > > > > On Wed, 1 Dec 2021 18:51:57 +0000, Seymour J Metz wrote: > > > > >It's not easy to demo the OP's JCL without knowing what it is. At this > > point I don't know whether "&ACTION" appeared after PARMDD and I don't > know > > whether it was followed with a period. > > > > > The period should be unnecessary if &ACTION is sufficiently delimited > > lexically. > > > > I believe the OP stated (and you quoted) that neither SET nor EXPORT > > SYMLIST=* > > satisfied the need for a reference to an argument. This is stupidity or > > indolence of > > the developers. The arguments of SET, EXPORT, and the instream text are > > available > > to the reader/converter to verify that the arguments are referenced. > > > > (I suspect that any APAR will be closed PRS. Perhaps USER.) > > > > > > >> > On Wed, Dec 1, 2021 at 8:27 AM Colin Paice wrote: > > >> > > ... > > >> > > One attempt is below. > > >> > > > > >> > > //COLWEB PROC ACTION='start', > > >> > > // DIR='/usr/lpp/ihsa_zos', > > >> > > // CONF='/u/mqweb3/conf/httpd.conf', > > >> > > // T='-t -DDUMP_CONFIG' > > >> > > //*--------------------------------------------------------- > > >> > > > > >> > > > > >> > > > > >> > > *// EXPORT SYMLIST=* // SET A1='' // SET D1='&DIR' // SET > > >> > > T2='&T' * > > >> > > //IHS EXEC PGM=BPXBATCH,REGION=0M > > >> > > //STDIN DD *,*SYMBOLS=EXECSYS * > > >> > > > > >> > > > > >> > > *&D1/bin/apachectl -k &A1 -f &&ACTIONCONF -DNO_DETACH > &T2 * > > >> > > *blah blah blah* > > >> > > /* > > >> > > //STDOUT DD SYSOUT=H > > >> > > //STDERR DD SYSOUT=H > > >> > > //STDENV DD DISP=SHR,DSN=USER.Z24C.PROCLIB(HTTPENV) > > >> > > > > >> > > > > >> > > *//DUMMY EXEC PGM=IEFBR14,REGION=0M, // PARM='&ACTION &DIR > > &CONF' > > >* > > >> > > > > >> > > *//DUMMY2 EXEC PGM=IEFBR14,REGION=0M, // PARM='&T' * > > >> > > // PEND > > > > ---------------------------------------------------------------------- > > 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 > > ---------------------------------------------------------------------- > 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
