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



Hello Craig,

It seems that your program does not change the value of the Error
parameter. Here's an excerpt from the documentation describing the Error
parameter:

Error detected

OUTPUT; CHAR(10)

Indicates if an error on the user-written program was found.

The possible values are:

*ERROR Error detected by watch exit program. The watch session that
was
passed in Session ID parameter will be ended. If the watch session
to be
ended originally specified multiple message ids or LIC log entries,
all
of them will no longer be watched.

<blanks> No error detected by watch exit program.

Note: Any value other than "*ERROR" or <blanks> will be considered
an
error and the watch session that was passed in Session ID parameter
will
be ended. If the watch session to be ended originally specified
multiple
message ids or LIC log entries, all of them will no longer be
watched.

--

I've checked the watch facility and it appears that the system
initializes the Error parameter to all x'00' and therefore is able to
detect if none of the above valid values are returned - and in that case
ends the watch session, as described in the above note.

Best regards,
Carsten Flensburg

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Craig Jacobsen
Sent: 18. juli 2008 20:15
To: 'RPG programming on the AS400 / iSeries'
Subject: RPG watch program

I'm trying to start a watch for CPI1127 (All jobs at work station
QPADEVxxxx
ended)

We changed the timeout value from 180 minutes to 30 minutes (thanks
auditors).

Every time it runs, the watch is cancelled with:
Watch session WSTIMEOUT issued by 003978/xxxxxxxx/QPADEV0002 at
07/18/08 12:15:16 has been ended. Reason code: X'04'
04 - User Exit Program error

It is ending the watch and I am not getting the data I need
(user/device).
I had this as SQLRPLE but trimmed it to barebones and it still is not
working.

Any help would be appreciated.


This communication is intended only for use by the addressee. It may contain confidential or privileged information. If you receive this communication unintentionally, please inform us immediately and delete this e-mail and any attachments. Warning: Although we have taken reasonable precautions to ensure no viruses are present in this email, we cannot accept responsibility for any loss or damage arising from the use of this email or attachments.

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.