EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only
  • 1.  PCML

    Posted 08/04/15 04:47 PM

    I was following this thread regarding pcml and I now I have a few questions...

     

    Is there a way around the INT return value limitation, other than wrapping every service program procedure? Would it be better to use the other technique that I've seen which uses linkage and 'external programs', to get around this?

     

    On the Word document that Ortwin attached in that thread, he demonstrates (as shown below) the context pop-up menu that allows him to launch a wizard to generate all the EGL pieces from the pcml file. I've installed RDI into my RBD package, and I don't see those options when I bring up the RSE perspective and browse to the pcml file that I generated. Is there a setting in the Sargasso Sea of options that I need to set too?

     

     

    Thanks,

    Walt

    Walt1968


  • 2.  Re: PCML

    Posted 08/04/15 05:23 PM

    Will it show up if you choose the rpgle service program instead of the pcml file?

    Here is some info in the RBD knowledge center.

     

    http://www-01.ibm.com/support/knowledgecenter/SSMQ79_9.1.1/com.ibm.egl.pg.doc/topics/pegl_iseries_program_as_service.html

    markevans


  • 3.  Re: PCML

    Posted 08/05/15 09:32 AM

    No, they don't show up for the service program source either.

     

    Thanks for the link. I've looked at that article before; it explains, verbally, the steps that Ortwin showed in his Word document. By the way, it would be very helpful if that article had pictures, too. 0-)

     

    Also, regarding the INT return restriction, my pcml file has an error in it regarding that, and none of our procedures return integers. Will this affect linking to the service program procedure? Below is an example from my pcml file.

    <pcml version="4.0">   <program name="GETPACKINGLIST" entrypoint="GETPACKINGLIST" returnvalue=" ">      <!-- Error: return value must have type="int" and length="4". (E) -->      <data name="ORDERNO" type="int" length="2" precision="15" usage="input" />      <data name="INVOICENO" type="int" length="2" precision="15" usage="input" />      <struct name="DOCUMENTPATH" outputsize="514" usage="inputoutput">         <data name="length" type="int" length="2" precision="16" usage="inherit" />         <data name="string" type="char" length="length" usage="inherit" />      </struct>      <data name="MSG" type="struct" struct="SYSMSGINFO" usage="inputoutput" />   </program>       </pcml>

     

    Walt1968


  • 4.  Re: PCML

    Posted 08/06/15 06:46 PM

    Walt,

    I still have not had  chance to try the RDi/RBD combination to see why you are not getting the ability to create an EGL interface on the pcml or rpgle file.  Hopefully soon.

     

    On the PCML error question, I am not PCML or RPG skilled, so I googled "pcml error: return value must have type="int" and found several hits that basically said that the error message is saying that the ONLY return value (RPG term vs inputoutput parms/structs) datatype accepted is Int.    Here are a couple of the links or ones I navigated to:

     

    http://webcache.googleusercontent.com/search?q=cache:c-TlOVeBrZwJ:forums.iprodeveloper.com/forums/aft/149197+&cd=2&hl=en&ct=clnk&gl=us

    http://archive.midrange.com/web400/200905/msg00021.html

    http://www-01.ibm.com/support/knowledgecenter/SSAE4W_9.1.0/com.ibm.etools.iseries.pgmgd.doc/sc092507260.htm

    http://www.code400.com/forum/archive/index.php?t-658.html

    Hope this helps.

    Mark

    markevans


  • 5.  Re: PCML

    Posted 08/07/15 09:26 AM

    Thanks Mark!

    Those links were very helpful.

     

    Jon Paris and Barbara Morris always have great advice! 0-)

     

     

    Walt1968


  • 6.  Re: PCML

    Posted 08/12/15 05:01 PM

    Not sure but worth to try:

    Did you check the 'IBM i Web Services and Java Tools' option when installing RDi?

    Ortwin


  • 7.  Re: PCML

    Posted 08/14/15 09:39 AM

    Ortwin,

     

    Mark had suggested that the other day too, and that is exactly what it was.

     

    Thank you for the help.

     

    Now, I'm able to connect to my program but I'm getting other errors. So, I may be back if I can't figure them out. 0-)

     

    Walt

     

     

     

    Walt1968


  • 8.  Re: PCML

    Posted 08/14/15 05:44 PM

     

    Well, I was able to complete a call to my service program procedure, after I reduced the parameters to *one*, and changed the return value to 10i0. (I need the additional parameters though; I was just trying to get it to work.)

     

    I get the following message if I add another parameter and try to make call.

     - CPF226E text: Value for a parameter was not valid.

     

    I'd love to hear any ideas out there as to why. 0-)

     

    Also, the External Type and Interface get created with parameters that are not in the same order as the procedure or the pcml. Is that the way it's supposed to be?

     

    Walt

     

    Walt1968