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



This is a multi-part message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
Sounds Good.

If your program reads from a data queue as part of it's processing (as a
lot of NEPs do) then it's a simple matter to test for a "shutdown" value
(all "*" or whatever) and then end the program.

HTH,

Alistair

-----Original Message-----
From: Peter Colpaert [mailto:Peter.Colpaert@honda-eu.com]
Sent: 04 January 2002 14:55
To: rpg400-l@midrange.com
Subject: Re: Never ending programs



Hi Heba,

This is my solution:

Program A is submitted upon system startup (or in the morning for
instance).

Program A submits program B, which does the job it's supposed to do, in
your case authorise the new orders.

Program A waits for a certain time (determined by the number of seconds
in
a data area)

Program A loops back to the submitting of program B.

Hope this helps.

Peter Colpaert
Application Developer
Honda Europe NV
----------
"Captain, I cannot believe my ears!" - Spock
----------




"heba refaie" <heba_refaie@hotmail.com>@midrange.com on 04/01/2002
13:47:42

Please respond to rpg400-l@midrange.com

Sent by:  rpg400-l-admin@midrange.com


To:   RPG400-L@midrange.com
cc:

Subject:  Never ending programs


Hi All

I need to write a program to act as a daemon. it should work under a
certain
subsystem (Qbatch for example), wait for the new recoded orders and
authorize them at a predefined intervals of time.

What are the possible programing techniques that can be used to achieve
this
objective other than writing a DB trigger program calling the
authorization
process.

thanks in advance for your help,
Heba

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.




_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



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.