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



>Actualy i need to get a set of values
>from user at a point of time and then
>proceed in batch job based on
>these values.

The classic solution to this problem is to have the interactive program
display a screen that asks for the parameters and then submits the job to
batch using those parameters.

 menu option x
  RPG program EXFMT GETPARMS -or-
  CL program SNDRCVF GETPARMS
   SBMJOB cmd(CALL xxx parm(a b c))

If for some reason the batch job MUST run before any interactive job can
submit it (like this is a batch server job that requires different
parameters from different clients) then you can have the batch job wait on a
data queue (QRCVDTAQ API).  Have the interactive jobs send the parameters to
the batch job by the QSNDDTAQ API.

Using a data queue allows multiple servers to listen to the same queue.  You
can also use a message queue as the transport mechanism, but one can only
attach a single listener to a message queue.

You could also have the batch job act as a socket server, listening for
connexion requests from the network.  The clients (the programs sending the
parameters) could be anywhere on the network including on a PC running Java
or *nix!
  --buck


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.