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



Eh, we all have our "days". <g>

RPG self-documenting?!?!?  ROFL!  Are you sure they weren't talking about
COBOL?

>Doesn't everyone believe that their code is extremely usable and reliable?<
Well, I can't speak for anyone else, but as far as my code is concerned...
well, lessee, I sometimes call it "Mary Poppins" code - Practically Perfect In
Every Way.  <vbg>

As far as commenting per your example, no, I do not use a standard boilerplate
CYA.  (Of course, I do include comments just like any other function.)  This
is where the standards manual comes into play.

Can't say I've seen a lot of list activity asking about substringing numerics,
but I will opine here and say that if you have to substring a numeric
variable, then it shouldn't be a numeric variable.

Dan Bale
IT - AS/400
Handleman Company
248-362-4400  Ext. 4952

-------------------------- Original Message --------------------------

I'll admit it, I'm having a 'day'.

No I understand OPNQRYF and I've used it.  Prefer SQL a lot more.  Let's
see... OPNQRYF took a couple of manuals to get right, one of them Database
programming.  Not to say that SQL doesn't take awhile to grasp also.

Doesn't everyone believe that their code is extremely usable and reliable?
Has it not been said that RPG is self documenting?  (I've heard people
quote that from a sales presentation.)  I applaud you for your formatting.
I try to do that with my CL and stuff also.  However, do you document the
following:
/*  Placing the OVRDBF in here to share the open data path with the
OPNQRYF.  */
/*  Don't try to understand - just know this has to be done */
/*  Don't forget to create a work file that has the format you desire */
/*  if you use more than one file in OPNQRYF. */
/*  Make sure you get the files in the right order and this is why ... */
/*  ... go on about matching the format name and so on... */
So yes, I've some experience with OPNQRYF.  It's just that SQL makes so
much more sense.  I just think that the junior programmer would pickup and
run with the SQL solution better.

And how often do I hear on these lists about people trying to explain how
to substring numerics into OPNQRYF?



Rob Berendt

==================
Remember the Cole!

<snip>
+---
| 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:

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.