This is where SEP's (Service Entry Points) are golden. Using WDSC you can
right click on a *PGM or *SRVPGM object in a library and select to set a
SEP. This will then bring up the WDSC debugger when that program is run for
the profile specified (by default it is set to your profile).

Check out this video tutorial I created showing how to debug an RPG web
service using WDSC's SEP. It is similar to what you will need to do:

Aaron Bartell

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Steve Moland
Sent: Thursday, June 28, 2007 11:50 AM
To: java400-l@xxxxxxxxxxxx
Subject: How to debug RPG pgm called from Java on a PC

I using the follow code snippet to call an RPG program on an AS400

ProgramCall pgm = new
if ( != true) {
AS400Message[] messageList = pgm.getMessageList();

The RPG program fails and I need to see why. The problem is I don't know
which server job to try to put on hold so I can start a batch debug. The RPG
program runs for less than a second when it works.

Steve Moland
Access Paths Inc
12 Parmenter Rd Unit C4
Londonderry NH 03053
603 845-0190 Ext 2
603 315-0340 Cell

This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by 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.