Re: Why does my RPG program compile twice?

"Samuel J Lennon" <[email protected]>
Newsgroups gmane.comp.systems.as400.code
Message-ID <[email protected]>
   I have the same problems.  It is all to do with weaknesses in the SQL
   precompiler and IBM's failure to improve it over several releases, despite
   pushing SQL. 

   The precompiler puts the converted code in QTEMP and compiles from there. 
   There is also a conflict with asking for debug and an event file, so the
   program is often compiled twice.

   Anyway, the net result for me is that I have to run STRCODE as a batch job
   and I have to specify in CODE that I want interactive compiles.  This gets
   me the errors in CODE, but I get them in a separate window, rather than
   being embedded in my source.  When fixing them all to often I fix the
   wrong window...  It is a pain, since I use a lot of embedded SQL.

   It's not the fault of the CODE folks, its the fault of the SQL group
   dragging their heels.

   I guess the long term solution is to stop making coding errors.

   Sam

   >From: [email protected]

   >Reply-To: CODE/400 Discussion & Support <CODE400-L-wOGU4hcwLS5+cjeuK/[email protected]>
   >To: code400-l-Zwy7GipZuJhWk0Htik3J/[email protected]
   >Subject: Re: Why does my RPG program compile twice?
   >Date: Fri, 29 Aug 2003 12:03:51 -0500
   >
   >I am having this SQL RPGLE problem too, I was just never bothered by it
   >enough to mention it until now. I cannot link to fields from the compile
   >listing for the SQL RPGLE. I tried CRTSQLRPGI with DBGVIEW(*SOURCE) and
   >OPTION(*EVENTF) and then with DBGVIEW(*NONE) and OPTION(*EVENTF). I think
   >that answers one of the previous questions.

     ----------------------------------------------------------------------

   MSN 8: Get 6 months for $9.95/month.
_______________________________________________
This is the CODE/400 Discussion & Support (CODE400-L) mailing list
To post a message email: CODE400-L-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/code400-l
or email: CODE400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/code400-l.

NOTE: WDSc for iSeries disucssion has it's own mailing list.
Information can be found at http://lists.midrange.com/cgi-bin/listinfo/wdsc-l
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.