× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Any advice on how to debug a Java method called fram an RPG programme wouldbe
apreciated
Thanks in advance

-----Message d'origine-----
De : java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] De
la part de java400-l-request@xxxxxxxxxxxx
Envoyé : jeudi 28 juin 2007 21:06
À : java400-l@xxxxxxxxxxxx
Objet : JAVA400-L Digest, Vol 5, Issue 107


Send JAVA400-L mailing list submissions to
java400-l@xxxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.midrange.com/mailman/listinfo/java400-l
or, via email, send a message with subject or body 'help' to
java400-l-request@xxxxxxxxxxxx

You can reach the person managing the list at
java400-l-owner@xxxxxxxxxxxx

When replying, please edit your Subject line so it is more specific than "Re:
Contents of JAVA400-L digest..."


Today's Topics:

1. How to debug RPG pgm called from Java on a PC (Steve Moland)
2. Re: How to debug RPG pgm called from Java on a PC (Bruce Jin)
3. RE: How to debug RPG pgm called from Java on a PC (albartell)
4. Re: How to debug RPG pgm called from Java on a PC (David Gibbs)
5. PCML structures based on database files? (David Gibbs)
6. RE: PCML structures based on database files? (albartell)
7. Re: PCML structures based on database files?
(bill.blalock@xxxxxxxxxxx)
8. Re: How to debug RPG pgm called from Java on a PC (Steve Moland)
9. Re: PCML structures based on database files? (David Gibbs)


----------------------------------------------------------------------

message: 1
date: Thu, 28 Jun 2007 12:50:27 -0400
from: "Steve Moland" <steve@xxxxxxxxxxx>
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





------------------------------

message: 2
date: Thu, 28 Jun 2007 12:31:24 -0500
from: Bruce Jin <brucej@xxxxxxxxxxxxxxxxxxxx>
subject: Re: How to debug RPG pgm called from Java on a PC

Look for PJ job QZDASOINIT in QUSRWRK or QSERVER subsystems. The job is
gone when the connection is closed. Could you post here if you can
debug your RPG this way? Thanks

Steve Moland wrote:
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







------------------------------

message: 3
date: Thu, 28 Jun 2007 12:31:30 -0500
from: "albartell" <albartell@xxxxxxxxx>
subject: RE: How to debug RPG pgm called from Java on a PC

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.



------------------------------

message: 4
date: Thu, 28 Jun 2007 12:35:54 -0500
from: David Gibbs <david@xxxxxxxxxxxx>
subject: Re: How to debug RPG pgm called from Java on a PC

Steve Moland wrote:
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.

Service entry point debug?

SEP debugging has become my favorite feature of late.

david


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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

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