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



Vern,

I recently wrote my first UDF, also in a service program.  To debug it I
started a service job on an interactive session, started debug on the
module then used the function in a STRSQL session.  It takes two
interactive sessions but it worked fine.  IIRC there was a post a few
weeks ago that pointed me in this direction.

Rick

-----Original Message-----
From: Vern Hamberg [mailto:vhamberg@xxxxxxxxxxxxxxxxxxxxxxxxx]
Sent: Monday, September 08, 2003 3:15 PM
To: Midrange Systems Technical Discussion
Subject: How to debug UDFs?

I'm at V5R1. I have a couple UDFs defined in a *SRVPGM - don't know if
that
matters. When I try to debug, it never stops at the breakpoint.

I've tried a 'sleep' (like DLYJOB) so that I can use WRKOBJLCK VERN
*USRPRF, but nothing has the lock that seems to be handling this. I've
looked for TIMW, but there are way too many jobs in that state. I've
tried
FENCED and NOT FENCED, but no difference - of course, was that supposed
to
matter on V5R1? And if no, why does it allow the use of the clause?

Why ask why?       ;-)

Appreciate your thoughts and knowledge.

Vern


_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


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