× 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.




I haven't used WDSC 7 or debugged service programs for a while, but I do remember one or two minor d'oh moments that you also might be suffering with.

When you set the SEP do you use *LIBL or do you specify which library the service program is running in? If you select *LIBL, is your library list in WDSC set correctly to include the same service program object that the stored procedure (thru' navigator) will be finding?

There is a user profile entry on the SEP form, so what do you put in there? You are meant to put the user that will be running the service program, which is not always your user profile in the case of stored procedure-called programs. I found debugging the calling stored procedure and then looking at the jobs which have locks on your user profile is the best way to find out which user is running the stored procedure.

Lastly, did you "step into" the subprocedures when you debugged the stored procedure program? That may be a work around for you if you haven't tried it already.

I did do this a lot some years ago, so I'm sorry I can't remember more details of problems I had. (There were several difficulties, but trial and error eventually got me there.)


-Paul.



-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of RDutil@xxxxxxxx
Sent: 07 February 2012 02:20
To: WDSCI-L@xxxxxxxxxxxx
Subject: [WDSCI-L] Debugging Service Program with WDSCi 7.0

I am working with WDSCi 7.0 and our IBM i is V5R4 still. Are there any known issues with debugging service programs using this combination that anyone is aware of? I have just recently learned how to use the tool to debug standard RPGILE programs, and this is my first attempt at debugging service program. I am also fairly new to creating service programs. So, it's very probable that I am just not doing things properly.

I have an RPGILE stored procedure program (S_DLYSUM) that is invoking a couple of subprocedures from a service program. I compiled the service program (DRGDAYSRV) as a *MODULE object type making sure the debug *source option was used. Then I created the service program and compiled my stored procedure program as well as creating the stored procedure (in that order). I started up the debug server. Then, I added the service entry point on the service program. I'm not sure if the correct way to do that is to specify the module and procedure from the service program I want to debug, or to leave those two options as *ALL. I've tried it both ways with no results.

Then I invoke the stored procedure from Operations Navigator. But, the execution never halts when it hits the service program. I also added a service entry point on the stored procedure to make sure that I was getting to section of code where the subprocedure from the service program would be invoked. The stored procedure breaks right at the point I was expecting.

So, my questions are the following. Is there a known issue with WDSCi 7.0 in debugging service programs? Did I make any obvious mistakes creating my service program? Or did I make any obvious mistakes in setting up the service entry point on the service program? Is there anything else I might be overlooking?

Thanks for your time,

Ray Dutil
--
This is the Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/wdsci-l.

Scanned by MailDefender - managed email security from intY - www.maildefender.net
Important

This email transmission and any files with it are strictly
confidential to the intended recipient and may be legally
privileged. Any views or opinions presented are solely
those of the author and do not necessarily represent those
of BHSF. If you are not the intended recipient, you must
not copy, disclose or distribute its contents in any way.
If you have received this e-mail in error, please notify
the sender and delete the e-mail from your system.

We have taken steps to ensure this e-mail and attachments
are free from any virus but do not accept any
responsibility once this e-mail has been transmitted. You
should scan any attachments for viruses.

No contract may be concluded on behalf of BHSF Limited by
e-mail.

Registered Office:
BHSF Limited
Gamgee House, 2 Darnley Road, Birmingham B16 8TE.

www.bhsf.co.uk

Registered in England number 35500.

BHSF is authorised and regulated by the Financial Services
Authority.




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-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.