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



I like the idea of the Parameter Group as you suggested.  Your syntax even
looks good.  When are you going to work with Hans?

IBM must have this somewhere.  For example check out the Data Queue APIs,
they have groups.  If you want to pass one parameter in the group, you must
pass all in the group.  whether it is controlled at the application level or
system level I do not know.  The application level is easy "if #Parms > x
then use x, x+1 endif" "if #Parms > y then use y, y+1, y+2 endif"...

System level or Compiler level would be GREAT!


Christopher K. Bipes     mailto:ChrisB@Cross-Check.com
Sr. Programmer/Analyst   mailto:Chris_Bipes@Yahoo.com
CrossCheck, Inc.         http://www.cross-check.com
6119 State Farm Drive    Phone: 707 586-0551 x 1102
Rohnert Park CA  94928 Fax: 707 586-1884

If consistency is the hobgoblin of little minds, only geniuses work here.
Karen Herbelin - Readers Digest 3/2000


-----Original Message-----
From: Simon Coulter [mailto:shc@flybynight.com.au]
Sent: Tuesday, July 18, 2000 5:13 PM
To: RPG400-L@midrange.com
Subject: Re: How to prototype CL modules



Hello Barbara,

I haven't yet made up my mind on this.  I don't know any HLL that allows
those sorts of 
related definitions.  My view tends to be that since the API itself enforces
the 
parameter requirements omitted parameters from a group will be caught during
Unit Test.  
The purpose of the prototype is to ensure that IF a value is passed it is at
least of the 
correct type and length.  It is the programmer's responsibilty to ensure the
proper 
parameters are actually passed.  Although it's a good idea, perhaps what we
need is a 
Parameter Group tag so we could code:

/if defined(LONG_PROC_NAMES)                                              
 QmhSndPgmMsg    PR                                                       
/else                                                                     
 QMHSNDPM        PR                                                       
/endif                                                                    
                                     EXTPGM('QMHSNDPM')                   
D reqGroup       PG                                                      
  msgId                         7    CONST                                
  qualMsgF                     20    CONST                                
  msgDta                    32767    CONST OPTIONS(*VARSIZE)              
  msgDtaLen                    10I 0 CONST                                
  msgType                      10    CONST                                
D  callStkEnt                 4102    CONST
D  callStkCnt                   10I 0 CONST                    
D  msgKey                        4                             
D  errCode                    1024    OPTIONS(*VARSIZE)        
D optGroup1      PG                   OPTIONS(*NOPASS)                   
D  callStkEntLen                10I 0 CONST 
D  callStkEntQual...                                           
D                               20    CONST
D  dspPgmMsgTime                10I 0 CONST
D optGroup12     PG                   OPTIONS(*NOPASS)                   
D  callStkEntType...                                           
D                               10    CONST
D  msgDtaCCSID                  10I 0 CONST

What say you all?

Regards,
Simon Coulter.
+---
| 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 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.