Thierry Seunevel Thierry 
Seunevel 
 Tech Corner      
  Home   Missions Tech corner Download Resume Contact
Home > Tech Corner > RunMnyCmd

Running AS/400 commands on many objects (2)

. Example
. List file
. Managing List
. RunMnyCmd
. Tool's Code
The objects list file
The tool basis is the objects list file
A model of this file, named OBJPF, with a record name equals to the file name is delivered with the code of the tool. Its layout follows :
Field Lenght Text Comment
BIBLIO 10A Library Name of the library hosting the object
OBJET 10A Objet name  
TYPE 8A Object type The object type is expressed with the standard AS/400 terminology, like *FILE or *PGM
DESC 50A Text  
ATTRB 10A Attribute Attribute of the object. Not all type of object have an attribute. Example of attributes are PF-DTA or PF-SRC object of type *FILE, RPG or CLP for object of type *MODULE
FRMBIB 10A Originating library This field is not used by the standard commands used in RunMnyCmd. It can be useful in some occasions, and can be filled when a list file is created through a Query or SQL order.
An access path, made up of the three first fields (BIBLIO, OBJET and TYPE) allows random access by key.

An OBJPF file, used as model in the creation command, must be created in the tool library.
It is defined with a value *NOMAX for the parameter MAXMBRS, and without any member.

The DDS specifications are shown below :
  A         UNIQUE
  A R OBJPF     TEXT('ENREG LISTE D OBJETS')
  A   BIBLIO 10   TEXT('NOM BIBLIO')
  A   OBJET 10   TEXT('NOM OBJET')
  A   TYPE 8   TEXT('TYPE OBJET')
  A   DESC 50   TEXT('DESCRIPTION')
  A   ATTRB 10   TEXT('ATTRIBUT OBJET')
  A   FRMBIB 10   TEXT('BIBLIO ORIGINE')
  A K BIBLIO      
  A K OBJET      
  A K TYPE      

A set of commands, described on the next page, are used to manage object lists and objects in list.

    Top  Top  Previous  Example | Managing List Next


©  Thierry Seunevel (2004) www.seusoft.com