× 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 fell across an explanation - there is a debug command called THREAD, which returns an error if run in a non-service job session:

Threads debugging is supported only for service jobs that are spawned with threads support.

Oy, more to learn!

At 04:04 PM 9/8/2003 -0500, you wrote:
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.



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.