Power Global

Power Global

Connect, learn, share, and engage with IBM Power.

 View Only
  • 1.  Java calls from RPG

    Posted Fri April 22, 2022 03:24 PM
    I have a couple of small java jobs that I need to call from an RPG program., I created a java driver program to test the java programs but I am having some issues with calling the same java programs from RPG. I have fixed all classpath issues and some days I get a valid test calling from RPG and some days, with no changes it does not work. I am trying to count the number of pages in a PDF. My count returns -1 if I encounter any errors or a valid number of pages. I need to see what the Java output is from the run to determine why the RPG call is not working. I know I am sometimes getting a java excerption but I cannot find the exception. It is not in the joblog and I have not found any documentation on where the java System.Out.Println output goes. Any help or assistance in pointing me to the correct resource would be greatly appreciated. When I call my java program to get page count from another java program it works 100% of the time but works occasionally when called from RPG. I retally need to see the java program output but I cannot find it anywhere,

    ------------------------------
    Roger Hunt
    ------------------------------


  • 2.  RE: Java calls from RPG

    Posted Mon April 25, 2022 09:45 AM

    Roger, this troubleshooting page, https://supportcontent.ibm.com/support/pages/troubleshoot-calls-rpg-java, has a section about how to see the System.out output.



    ------------------------------
    Barbara Morris
    ------------------------------



  • 3.  RE: Java calls from RPG

    Posted Mon April 25, 2022 05:10 PM
    this need to move to IBM Power I system group or AS/400. This is for Power P AIX system.

    ------------------------------
    minesh patel
    ------------------------------