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


  • Subject: RE: Modular design
  • From: "Sims, Ken" <KSIMS@xxxxxxxxxxxxxxxx>
  • Date: Fri, 25 Feb 2000 14:18:57 -0500

Hi Tom -

>Date: Thu, 24 Feb 2000 15:10:42 -0500
>From: "Tom Tufankjian" <Tom_Tufankjian@hbltd.com>
>Subject: Modular design
 ...
>Right now I have pgma as a regular rpg400 program doing a regular non-bound
>call the pgmb.  Pgmb and pgmc are bound
>together and pgmb does a function call to a procedure in pgmc.  All the
>programs are in activation group QILE.
>
>Also, I am calling pgma from a cl program which does a rclactgrp QILE after
>the call to pgma so that all the files are closed.  Can't I do this from
>the rpg program pgma?

I have a similiar situation except it is all dynamic calls.  A CL (not ILE)
calls an RPG IV program which calls several different RPG IV programs, all
of it dynamic calls.

I compiled the first RPG IV program as DFTACTGRP(*NO) ACTGRP(*NEW).  The
other programs are all DFTACTGRP(*NO) ACTGRP(*CALLER).  When the first RPG
IV program is called by the CL, a new activation group is created.  Since
the rest of the RPG IV programs are *CALLER, they all run in that same
activation group.  Since I use *NEW rather than a named activation group,
when the first program ends, the operating system automatically reclaims the
activation group, so RCLACTGRP is not needed.

Unless you are getting really sophisticated with activation groups, I see no
purpose for named activation groups, QILE or otherwise.  If you want
programs to run in a separate activation group and that group to be
reclaimed when the programs end, use *NEW for the outermost program and
*CALLER for everything else.

Ken
Southern Wine and Spirits of Nevada, Inc.
Opinions expressed are my own and do not necessarily represent the views of
my employer or anyone in their right mind.

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.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.