×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




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:
http://rpg-xml.com/video/RXS_WDSC_WEBSRV_DEBUG_SEP/RXS_WDSC_WEBSRV_DEBUG_SEP
.html

HTH,
Aaron Bartell
http://mowyourlawn.com

-----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
ProgramCall(sys,"/QSYS.LIB/TRSYS200T.LIB/RTVIPPRINT.PGM",parmList);
if (pgm.run() != true) {
AS400Message[] messageList = pgm.getMessageList();
}else{

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
steve@xxxxxxxxxxx



--
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,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/java400-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

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