ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

How to pass the output parameter from Java to RPGLE

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to pass the output parameter from Java to RPGLE

    I have some problem in geting parameters from RPGLE to java. I tried to write a testing CLLE program and use 'JAVA' command to call the class. However, I have no idea how to get the return value from JAVA program back to RPGLE.

    Any suggestion ?

  • #2
    Re: How to pass the output parameter from Java to RPGLE

    Read this.
    "Time passes, but sometimes it beats the <crap> out of you as it goes."

    Comment


    • #3
      Re: How to pass the output parameter from Java to RPGLE

      Originally posted by littlepd
      Read this.
      Thank you for your help.

      I would like to know more about the return parameters.
      Can I return several parameters to RPG program ? Or I have to concate all the return parameters to a String and pass back to RPG program?

      Comment


      • #4
        Re: How to pass the output parameter from Java to RPGLE

        RPG can accept a fairly large number of parameters either as input from a calling program, or returned from a called program. I'm not exactly sure what the limit is, but I'm sure I've never come close to hitting it.
        "Time passes, but sometimes it beats the <crap> out of you as it goes."

        Comment


        • #5
          Re: How to pass the output parameter from Java to RPGLE

          I return parms from java to RPG by using mutiple getXXX methhods or by concatting the return parms into a string and using a delimeter. It really all depends on how much information you are returning. I personally find it cleaner to use accessor methods.

          PHP Code:
           Converts ASCII TO EBCIDIC                                          
          D RPGStr          PR         32767A   Varying                         
          D                                     EXTPROC
          (*JAVA:                  
          D                                             'java.lang.String':     
          D                                             'getBytes')             


          TableName RpgStrgetNextTabledb ) );
          SchemaName RpgStrgetNextSchema ) ); 
          Predictions are usually difficult, especially about the future. ~Yogi Berra

          Vertical Software Systems
          VSS.biz

          Comment


          • #6
            Re: How to pass the output parameter from Java to RPGLE

            Thank you for all help.

            Comment

            Working...
            X