Class Library

Encore RPG programs rely on a class library for their execution. The library is a group of classes, interfaces, and value types, it also provides access to system functionality and contains links to the .NET classes in which applications, components, and controls are built. This library is composed of several assemblies which are named with the prefix ASNA.QSys and are formally known as the Monarch Base.

Namespaces

The class library provides the following namespaces:

ASNA.QSys.Runtime Namespace

The ASNA.QSys.Runtime namespace contains classes that support compilation and code generation using the Encore RPG for Visual Studio language. Most of the classes are reserved for the Encore RPG system. Some classes and their members may be employed directly by the Encore RPG programmer.

Several ECR declaration commands rely directly on some of these classes or interfaces. Here are a few of them:

Declare Command Underlying Class
DclDB Database Class
DclDiskFile DatabaseFile Class
DclPrintFile PrintFile Class
DclWorkStnFile WorkstationFile Class
DclDS DataStructure Class
DclFld *Bin, *Packed, *Zoned FixedDecimal Class
*Char FixedString Class
*Date FixedDate Class
*Ind Indicator Class
*Time FixedTime Class

ASNA.QSys.Runtime.JobSupport Namespace

The ASNA.QSys.Runtime.JobSupport namespace provides classes supporting the execution of Monarch migrated programs. Some of the more salient classes are:

Supported Feature Class
Job Job Class
Program Program Class
Module Module Class

ASNA.DataGate.Client🡵 Namespace

The ASNA.DataGate.Client🡵 namespace is the primary namespace used by client applications. It contains the most fundamental classes for accessing database server resources.

Most application access the facilities of DataGate.Client indirectly through the use of objects declared via DCLDB and DCLxxxxFILE. However, sometimes it may be convenient to utilize directly some of the facilities provided by DataGate.Client.