|
I originally wrote: >Hi all, >I'm slowly teaching myself ILE RPG (yikes!), rather RPG IV (apology to B.C.). The following code is a >simple call to the command parser. Here's the old code and the new code: >0353.00 C *IN06 IFEQ '1' >0354.00 C CALL 'QCAEXEC' >0355.00 C PARM 'DSPMSG' CMD 6 >0356.00 C PARM 6 LENGTH 155 >0357.00 C ELSE > > >0059.00 D* >0060.00 DRunCmd pr extpgm('QCMDEXC') >0061.00 D command 80a const >0062.00 D length 15p 5 const >0063.00 D* > >bunch of code, etc. > >0231.00 C* >0232.00 C *in06 ifeq *on >0233.00 C callp RunCmd('DSPMSG':6) >0234.00 C else > >From a technical viewpoint, are these two chuncks of code equivalent? Or, is the RPG IV code a >bound call of some sort? The discussion in the reference manual leads me to believe that the RPG IV >code represents a dynamic call to QCAEXEC. Plus, if they are equivalent, what is the advantage of >the RPG IV code (if any)? I appreciate all of the feedback from Joel, Jon, Scott, Joep, and David (hope I didn't forget anyone). I have two goals in putting these types of posts on the discussion group. One, as you may guess from the subject matter of my original post, is to gather useful information pertaining to performance advantages of RPG IV over RPG III. Second, will be to find opcodes, bif's, etc., that provide added functionality over what my shop has now using RPG III. However, I have to sell my boss on making a move towards RPG IV, and he will be a hard sell coming from the "If it ain't broke...," point of view. Plus, I'm in a Catch 22 situation: How do I learn without writing new code vs. the mind set of not changing the status quo. (I realize I'm flogging a dead horse here, and I'm getting away from the subject at hand). So, I'm gathering ammunition and hopefully will choose my battles wisely. Also, I take no offense with any criticism of my syntax. After all, if other people (with you guys being the experts) don't see what you do, it never gets critiqued! Buzz Fenner bfennerNS@jonesborocwl.org Remove NS to reply +--- | 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 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.