why not just string the entire command together in a variable and use 
QCMDEXC???
Thanks,
Tommy Holden
From:
"Smith, Mike" <Mike_Smith@xxxxxxxxxxxxxxxx>
To:
"Midrange Systems Technical Discussion" <midrange-l@xxxxxxxxxxxx>
Date:
11/10/2008 09:49 AM
Subject:
RE: Automating CRTPGM command
Sent by:
midrange-l-bounces@xxxxxxxxxxxx
Thanks for the reply David. 
However, my real problem is with a vendor supplied command, so I just used 
CRTPGM as an example as it works the same way in the Modules Parameter.
Sorry for the misrepresentation of my true issue. 
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [
mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of David FOXWELL
Sent: Monday, November 10, 2008 10:25 AM
To: Midrange Systems Technical Discussion
Subject: RE: Automating CRTPGM command
Instead of concatenating the module names, how about writing them into a 
BNDDIR and compiling with that?
-----Message d'origine-----
De : midrange-l-bounces@xxxxxxxxxxxx [
mailto:midrange-l-bounces@xxxxxxxxxxxx] De la part de Smith, Mike Envoyé : 
lundi 10 novembre 2008 16:10 À : Midrange Systems Technical Discussion 
Objet : Automating CRTPGM command
Suppose I wanted to automate the CRTPGM command.
ie,
  DSPOBJD OBJ(SRWORK/*ALL) OBJTYPE(*MODULE) OUTPUT(*OUTFILE)
  read file
    concatanate the module names
  loop
Then do a
CRTPGM PGM(TSTMIS/USCHLOGE) MODULE(&MODULES')
My problem is when I do this, I get the quotes in the module parameter 
like this and the command chokes.
CRTPGM PGM(TSTMIS/USCHLOGE) MODULE('CALLERID USCHLOGE')
I'm probably missing something really simple here, but I can't seem to get 
over this issue.
Mike
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing 
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, 
unsubscribe, or change list options,
visit: 
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a 
moment to review the archives at 
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.