ADELIA

      

      

      

      

(I/B)

 

 

 

 

 

Warning: This instruction is used in the description of a macro-instruction, a program template or a management rule. It is accepted in Visual Adelia or in Adelia Web if it is placed in a management rule with an ADELIA-compatible source type.

 

Section for use

All

 

Syntax

DECLARE VarId;GuideWord Length;NbDecimals NumericType NbElements Parameter

DECLARE VarId;GuideWord ;ReferenceGuideWord

DECLARE VarId;GuideWord Type

 

GuideWord

GuideWord | None

 

 

 

NbDecimals

Integer | None

 

 

 

NbElements

Integer | None

 

 

 

Parameter

*NODEF | None

 

 

 

Type

L | T | Z | *

 

 

 

NumericType

B | I | U | None

 

Description

This instruction is used to declare a work variable.

The following must be declared:

Notes:


Example

* Management rule to prompt customers

*

DECLARE PCUSCO;P_CUST_CODE 10;0

DECLARE PRETCO;P_RETN_CODE 1

DECLARE WCUSCO;W_CUST_CODE ;P_CUST_CODE

SFTKY $$CODE

P_CUST_CODE = *BLANK

P_RETN_CODE = *BLANK

CALL SELECT_CUSTOMER P_CUST_CODE P_RETN_CODE

IF   P_CUST_CODE <> *BLANK AND P_RETN_CODE = *BLANK

$$CODE = P_CUST_CODE

END

END_SFTKY

 

See also the list of 4GL instructions by topic

↑ Top of page