I agree, it should not produce output. I'd phone it in to IBM.
I tried it on my V7R3 from CL, same results as you have (Obviously
different programs) .
--
Jim Oberholtzer
Agile Technology Architects
-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of T. Adair
Sent: Monday, August 05, 2019 11:21 AM
To: rpg400-l@xxxxxxxxxxxxxxxxxx
Subject: OUTPUT(*NONE) prints compile anyway
I am currently creating an application to compile all RPGLE/SQLRPGLE
programs that reference a particular file. I call my new CL pgm with a
single parameter of the filename, which then passes it into my new RPGLE
program, which then loops through and compiles every program that references
the filename passed. This is working very well with one exception - the
CRTBNDRPG & CRTSQLRPGI commands that I build within the new program specify
OUTPUT(*NONE), and yet the compile listings are generated anyway. I can run
the exact same command interactively and it does not generate the compile
listings. Why do these commands, when built & run within my new RPG
program, ignore the OUTPUT(*NONE) directive? I have debugged my new program
and the command is absolutely correct. Example...:
cmd = 'CRTBNDRPG PGM(' + %trim(whlib) + '/' +
%trim(whpnam) + ') SRCFILE(' + %trim(whlib) +
'/QRPGLESRC) SRCMBR(' + %trim(whpnam) + ') ' +
'OUTPUT(*NONE) ' +
'DBGVIEW(*ALL) FIXNBR(*ZONED *INPUTPACKED)';
success2 = *on;
monitor;
qcmdexc( cmd : %len( %trim( cmd ))); on-error *ALL;
success2 = *off;
endmon;
Could it have something to do with the Monitor process? It's working
perfectly except that it generates the compile listing every time, even
though I've included the OUTPUT(*NONE) parm. I can debug and copy/paste the
exact command that's being generated on an interactive command-line, and it
works perfectly (no printout).
The field 'cmd' is plenty long enough, so that's not the problem. We're
currently on 7.2, but will be moving to 7.3 systems over the next few
months.
Thoughts?
Thanks in advance.
~TA~
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a
message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit:
https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.