× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



<snip>
prefix with a lowercase "g".  I would challenge the use of 99% of
globals however. parms and control block type structs passed by ref
are better. Other than RRN and *IN what else does RPG force to be used
globally? ( just because RPG allows pgm main variables to be used
globally doesnt mean you should use them that way! )
</snip>

I agree 100% there. I put nothing in global except what I must but it is
hard to break old habits. You explain and explain why you should not put
variables in a global section unless you must but people still do it. 

SQL drives me nuts because even if I define the SQL statements in a
procedure, it still creates a data structure for every SQL statement in
global memory along with a header repeated for each statement. 

If the SQL statement is defined in a procedure and the only purpose of
the data structure is to communicate the data to the SQL runtime, why
does the data structure have to be defined in the global memory and I
must have a unique name for each data structure I define for fetch or
into. 

When is SQL going to grow up and stop being a RPG III pre-compiler? Has
anything got better in V5R4?





As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.