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


  • Subject: Re:
  • From: Jim Langston <jlangston@xxxxxxxxxxxxxxxx>
  • Date: Mon, 27 Sep 1999 09:25:15 -0700
  • Organization: Conex Global Logistics Services, Inc.

Actually, Gary, I am very happy with all the responses I got.  I have learned
quite a few things.  For one, I knew there was another way to define parameters,
I just wasn't sure what it was.

Some of the comments were very good, although I feel they wouldn't apply in this
particular case (because of the nature of the file being so small and only a
temporary
transfer file) but I am quite sure I will use them in the future.

Again, I thank everyone who responded, and I am keeping this thread in my mail
to reference it.  I wound up changing the program a little bit more (having it 
call
a display file as the primary file instead of the file to be chanced, which 
means it

won't be accepting any parameters anyway) but this brings up another question.

I am used to writing display files, and then just setting them as the primary 
file
and forgetting about them.

Since using the cycle is a "bad" thing, what is the good thing to do here?  I 
know
in CL I use the write then read keyword (just can't remember off the top of my
head what it is).  How would I do that in RPGIV/LE?  I seem to recall something
about an EXFMT command (Execute format).

I think my main problem is that I learn by looking at other's code, its the way 
I
have always learned.  I think it's time I hit a book on this, but since we don't
have
any paper books, I guess Ill just try to find out where IBM hid them.

Anyone have any suggestions and/or URLs to go to learn the "new" way of
doing things?

Regards,

Jim Langston

Gary Guthrie wrote:

> <SNIP>

>
> Jim was provided with many comments such as
>
>         Don't use the cycle
>         Don't use UPDATE, use EXCEPT
>         Create a logical so as not to read all records
>         Use CONST because the program doesn't change the parameters
>         Etc...
>
> It seemed to me that Jim had just selected some quick and easy code for
> some RPG IVesque commentary. I didn't think he wanted us to give him
> everything there was to give with respect to RPG and design!
>
> Gary Guthrie
> Editor, The RPG Source at http://www.news400.com/TheRPGSource

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.