Admin Production rocket
Current Publication

Simple Declarations

Enterprise Developer for Visual Studio 2017 V7.0
Rocket® Enterprise Developer (formerly a product of Micro Focus or formerly a product of Open Text) documentation, created before Rocket Software acquired certain products from OpenText, may include outdated references to "Micro Focus" or "OpenText", both of which are trademarks of OpenText or its affiliates. Rocket Software is not affiliated with Micro Focus or OpenText and has since rebranded these products as Rocket® products. You may also encounter outdated links in this documentation. If you do, please contact Rocket Support (support@rocketsoftware.com) for assistance.

Simple Declarations

A simple declaration defines a single name and describes its attributes. Its recommended form is:

DECLARE name a⊂1 a⊂2 a⊂n;

where name is the declared name and a1 through an are attributes. For example:

DECLARE A FIXED BINARY(15);
DECLARE B CHARACTER(10) VARYING STATIC INITIAL('ABC');
DECLARE C DIMENSION(5) FLOAT DECIMAL(7);

The last statement in this example could also be given without the keyword DIMENSION by using the following format:

DECLARE C(5) FLOAT DECIMAL(7);