ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

The screen flashed when RPG program call JAVA program

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

  • The screen flashed when RPG program call JAVA program

    Hi,

    I hit a problem. When the RPG program call the JAVA program to proceed, the screen will flash even there is no error. It may due to the JAVA program run on the QSH. How can I prevent such kind of flash ?

  • #2
    Re: The screen flashed when RPG program call JAVA program

    Hi,

    To avoid that display...

    Run that program ( which is having java code) in batch mode...

    use SBMJOB command


    Thanks
    Pavan Pokala

    Comment


    • #3
      Re: The screen flashed when RPG program call JAVA program

      To avoid having the console popup on interactive calls remove all System.out.println from your java code .

      If you are using a Sytem.exit(0) or System.exit(1) it is a good idea to wrap your prtotyped calls in a monitor block to capture errors that occur due to an abend. This allows you to present an error code to the user rather than having the RPG application bomb out all togethor.

      If you are using Sys.outs for logging you might want to look using log4j as a logging mechanism for your commonly used applications.
      Predictions are usually difficult, especially about the future. ~Yogi Berra

      Vertical Software Systems
      VSS.biz

      Comment

      Working...
      X