Home > AS/400 Tips > iSeries administrator tips > Open-list API provides crucial information on activation groups --part 1
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ISERIES ADMINISTRATOR TIPS

Open-list API provides crucial information on activation groups --part 1


Ron Turull
01.17.2006
Rating: --- (out of 5)


iSeries news and advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



Ron Turull

One of the many Open List APIs gives programs the ability to determine which activation groups are active in the job and allows the program to retrieve the activation groups' attributes. It can also provide the same information on activation groups in another job. This information can be crucial to programs that, for example, are designed to end other activation groups or are multi-threaded.

More Information

What the API does

The Open List of Activation Group Attributes (QWVOLAGP) API builds a list of activation groups and their attributes for the specified job. The API is a Process Open List API, meaning it builds the list in the background (i.e., in another job/thread). This means that your program can go on and do something else while the system builds the list. It can later retrieve the list entries using the QGYGTLE API (see "The Open List APIs make list processing simpler and more efficient" (part 1 and part 2 for details on the Process Open List APIs including the QGYGTLE API).

Information the QWVOLAGP API generates

Each entry in the list of activation groups will contain the following information:

  • Activation group name -- char(10). For the default activation group, this field will contain *DFTACTGRP. For unnamed activation groups, it will be *UNNAMED.


  • Activation group number -- int(4). An internal number used by the system to uniquely identify the activation group within the job. You can use it, for example, with the QWVOLACT API to get more information on the activation group (e.g., which programs and service programs are currently activated within the activation group).


  • Number of activations -- int(4). The number of programs and service programs which are currently activated within the activation group.


  • Number of heaps -- int(4). The number of heaps existing in the activation group.


  • Static storage size -- int(4). The number of bytes of static storage – the most prevalent type of storage on most AS/400-iSeries – allocated to the activation group. You may want to use this figure in a garbage collecting program that reclaims activation groups which have large amounts of static storage allocated.


  • Heap storage size -- int(4). Same as static storage size above, except substitute "heap" for "static."


  • Root program name -- char(10). The name of the program that caused the activation group to be created. This field will be blank if the activation group is the default activation group. In the event the program object has been deleted or replaced, this field will contain *N.


  • Root program library -- char(10). The library of the root program. This field will be blank if the activation group is the default activation group. In the event the program object has been deleted or replaced, this field will contain *N.


  • Root program type-- char(1). This field will contain one of the following values:
  •  
     N Program has been deleted or replaced.
     0 Root program is an ILE program (i.e., *PROGRAM).
     1 Root program is a service program (i.e., *SRVPGM).
     2 Root program is a Java program.
      blank The activation group is the default activation group. 
  • Activation group state -- char(1). 0 if the activation group is in the user state. 1 if the activation group is in the system state.


  • Shared activation group indicator -- char(1). 0 if the activation group is not shared by other jobs. 1 if the activation group is shared by other jobs, which can happen in multithreaded applications.


  • In-use indicator -- char(1). 0 if the activation is not in use and, hence, is eligible to be reclaimed. 1 if the activation group is in use.


  • In the next installment, we'll discuss the parameters for this API and take a look at it in action.

    -----------------------------------
    About the author: Ron Turull is editor of Inside Version 5. He has more than 20 years' experience programming for and managing AS/400-iSeries systems.


    Rate this Tip
    To rate tips, you must be a member of Search400.com.
    Register now to start rating these tips. Log in if you are already a member.


    Submit a Tip




    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



    RELATED CONTENT
    iSeries administrator tips
    Translating Linux for IBM i admins: Using GUI to make it easy
    Translating Linux for IBM i admins: Working with jobs and networking
    OpenOffice: What to know before making the transition from Microsoft Office
    OpenOffice: An enterprise open source solution
    Database performance comparisons on IBM i
    Translating Linux for IBM i admins: User profile commands
    Modern System i reports using Client Access
    Tips for installing Lotus Domino server on a System i partition
    The iSeries Blog has a new home on IT Knowledge Exchange
    Virtualization for IBM i: Backups

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary

    DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



    iSeries Security - Security Tools, Physical Security and System Security
    HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts