× 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.



Jerry,

Not true.

"Now a really cool thing is that if you don't reference a field in the
program, and try to debug the program and try to display a non-referenced
variable, even though it is in the record read, that variable isn't
available to the debugger. That's because the compiler is smart enough to
know that an unreferenced variable isn't used and therefore shouldn't
waste memory. (How's that for preemptive garbage collection/prevention!)"

I just debugged a program, using STRDBG, that I am only using one field
from the file. I am able to display any field I choose from the file.

I believe with STRISDB that was true, though I am not sure.

I am on V4R5 (old):-)




Thanx,

Nick



Nick Radich
Sr. Programmer/Analyst
EPC Molding, Inc.
Direct (320) 679-6683
Toll free (800) 388-2155 ext. 6683
Fax (320) 679-4516
nick_radich@xxxxxxxxxxxxxx



GKern@xxxxxxxxxxxxxxxx
Sent by: midrange-l-bounces@xxxxxxxxxxxx
06/23/2008 12:51 PM
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>


To
midrange-l@xxxxxxxxxxxx
cc

Subject
Re: Advantages of RPG






Paul Holm wrote:

"Am I able to read and work with field(s) from
that file without creating a record structure to read the data into?
Same for any JDE, BPCS, MAPICS files."

The simple answer is yes. When you specify a file in an RPG F spec, as
long as it's not coded as USROPN (user opened), as soon as you perform any

native IO, (chain, read, readp etc) the fields are immediately available
for the programmer to use and abuse (do calcs, print on a report/screen
etc). But when using embedded SQL in RPG I typically have an externally
described data structure that mimics the DDS field definitions thereby
giving me a 'transparent' availability to the fields upon the fetch
instruction. In this sense it is definitely dynamic.

Now a really cool thing is that if you don't reference a field in the
program, and try to debug the program and try to display a non-referenced
variable, even though it is in the record read, that variable isn't
available to the debugger. That's because the compiler is smart enough to
know that an unreferenced variable isn't used and therefore shouldn't
waste memory. (How's that for preemptive garbage collection/prevention!)



Regards, Jerry

Gerald Kern - MIS Project Leader
Lotus Notes/Domino Administrator
IBM Certified RPG IV Developer
The Toledo Clinic, Inc.
4235 Secor Road
Toledo, OH 43623-4299
Phone 419-479-5535
gkern@xxxxxxxxxxxxxxxx


This e-mail message, including any attachments, is for the sole use of the

intended recipient(s) and may contain confidential and privileged
information. Any unauthorized use, disclosure or distribution is
prohibited. If you are not the intended recipient, please inform the
sender by reply e-mail and destroy this and all copies of this message.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.