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



Hi,

do enybody know how to control the job that system creates to execute 
request for subprocedure within an RPG SERVICE PROGRAM CALL 
(ServiceProgramCall class).

This is the short overview of my problem:

3 parties are included:
WebSphereAppSrv on windows platform
AS400
RPG SERVICE PROGRAM has ACTGRP atribute set to *CALLER

Scenario:
1. I have client request from browser to a web application that runs on 
websphere application server on windows server.
2. WAS handles request, makes instance of ServiceProgramCall class and 
execute calls to 3 subProcedures.
3. AS400 receives call, instantiate new job, activates SRVPGM, perform 
actions and returns to the caller.

Problem:
-ACTIVATON of service program leaves LOCKS on used files. (I know I should 
explicitly close the files but..)
-JOB stays resident (If it has ended imidietly after SRVPGM invoking, ODPs 
inside ACTIVATION would be deleted and files would be freed without 
exp.closing)

QUESTIONS:
-Is it posibile that SRVPGM is ACTIVATED in *DFTACTGRP???? (when you 
define ACTGRP to *CALLER there is posibility but nobody can tell me where 
is loaded AGENT for executing calls on AS400 - inside *DFTACTGRP or some 
other SPECIAL purpose IBM ACTGRP).
-would it be OK to run create SRVPGM with ACTGRP *NEW (it's not question 
of performance because CALL is performed rarely and on demand)? Then, when 
client finishes with SRVPGM system would automaticly reclame ACTGRP and 
relese files.
-Or mybe destroying AS400 Java object used for instantiating 
ServiceProgramCall would automaticly end AS400 job (it would relese all 
resources scoped to the job including my ODP-s)

Thanks very much and sorry to those who think this is question only for 
java400 group,

dipl.ing. Igor Beslic,
IBM Certified Specialist ILE RPG Programmer
VOLKSBANK d.d.
OJ Informatika
Varšavska 9, 10000 Zagreb
tel: +385 1 4801 895

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.