465 pts.
 Activation Groups, RPGLE, and Open Files
Hello Everyone, We have a couple question regarding activation groups, RPGLE, and Open files. In our H specs for RPGLE and SQLRPGLE programs, some of our programs use dftactgrp(*yes), some use dftactgrp(*no), and some use dftactgrp(*no) actgrp(*caller). What are the differences? And, should all of our programs be something? 90% of our programs are using dftactgrp(*yes).  But, when using sub-procedures in a program, a compile error stating you can't use dftactgrp(*yes) appears. We currently have files being left open in jobs when a user is no longer in a program.  Some of them say different things for the activation group when displaying open files :
Activation Group
QILE       0000000000000012
*DFTACTGRP 0000000000000002
Any clarification on the subject would be very helpful. Thank you, Dave

Software/Hardware used:
Iseries, RPGLE, SQLRPGLE, AS/400
ASKED: June 10, 2010  7:28 PM
UPDATED: June 16, 2010  6:33 AM

Answer Wiki:
Hi, Try Google and you will find a lot of good descriptions & explanations. Here is one interesting document: http://www.google.co.il/url?sa=t&source=web&cd=4&ved=0CCEQFjAD&url=http%3A%2F%2Fwww.i5tools.com%2Fphp%2Fmodules.php%3Fname%3DDownloads%26d_op%3Dgetit%26lid%3D27&rct=j&q=dftactgrp&ei=sX0UTIPZG8ObOM_76YMM&usg=AFQjCNFO93LU7lN8I3kyMLMOiSUCo9TiJg YuVa47 ============================================================== Your question is a little vague unfortunately. I suspect that you already know that, and that's why you're asking. You need to do some basic reading. The best place is a fairly small section in Chapter 3., ILE Advanced Concepts, of the <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzahg/rzahgileconceptprint.htm">ILE Concepts manual</a>. The section topic is 'Data Management Scoping Rules'. Download the .PDF and read that section. That small topic says about all you need to know to make sense of what you see. Most of the rest is covered in Chapter 11., Data Management Scoping. After reading the first topic, you might know more about some exact questions that can ask. Tom
Last Wiki Answer Submitted:  June 16, 2010  6:33 am  by  YuVa47   1,285 pts.
All Answer Wiki Contributors:  YuVa47   1,285 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _