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



"Reger, Bill" wrote:
> 
> I have been doing way too much managing and not enough coding so I am a bit
> rusty.  I can't seem to figure out what the prototype and PI specs should be
> for a command "Prompt Override Program" (POP) written in RPG ILE.  POP
> parameters are not documented well anywhere.  Below is what I have - I
> suspect the Length and String definitions are wrong.  The 2nd and 3rd parms
> correspond to command keywords having KEYPARM(*YES) by the way.
> 
> Bill
> 
>      D                 PR                  EXTPGM('CMDPOPPGM')
>      D  i_Cmd                        20A
>      D  i_Obj                        20A
>      D  i_ObjType                    10A
>      D  i_LenStr                     10I 0
>      D  i_String                   1024A   options(*varsize: *nopass)
> 

If you only have 2 keyparm(*yes) parameters, then you should only have 4
parameters in your POP program.  Besides the other changes that Scott
recommended, I think you should remove the iLenStr parameter.  (I'm
guessing you thought the length of the i_String parameter would be
passed in the i_LenStr parameter, but actually the length is in the
first 2 bytes of the i_String parameter which you can either define as a
data structure with a 2-byte integer subfield and a 32765 character
subfield, or better, as 32765 VARYING.)


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.