Declares a prototype to be used in a dynamic call (CALLD).
DCLPROTOTYPE
Name (name)
Type (*BINARY | *BOOLEAN | *BYTE | *CHAR | *DATE | *DECIMAL | *FLOAT | *FLOAT4 | *FLOAT8 |
*FORM | *IND | *INTEGER | *INTEGER2 | *INTEGER4 | *INTEGER8 | *ONECHAR | *OBJECT |
*PACKED | *STRING | *TIME | *TIMESTAMP | *ZONED)
Len (Length Integer, [Decimal Positions Integer])
TimFmt (*PGMDFT | *DMY | *EUR | *HMS | *ISO | *JIS | *JUL | *MDY | *USA | *YMD)
Rank (IntegerLiteral)
Access (*PRIVATE | *INTERNAL| *PUBLIC | *PROTECTED)
Attributes (Attribute 1, Attribute 2, ...)
Required. Name of the prototype; follows standard variable naming conventions.
Optional. Type can be any of Special Value ( i.e., *CHAR, *BINARY, etc.) or it can be a class name. If Type is *BOOLEAN, you can use the *TRUE or *ON and *FALSE or *OFF special values to indicate True or False.
If a Type parameter is not given, the Len parameter is required. In this case, *CHAR is assumed if there is one integer given and *ZONED is assumed if there are two integers.
See Type Parameter for more information.
Optional. Len defines the length of the prototype. If Len is decimal, e.g. Len (3,1), *ZONED is assigned as the default. If Len is character, et. Len (3), *CHAR is assigned as the default.
Optional. TimFmt specifies the format for time, date, and timestamp variables. If the TimFmt parameter is not specified, the format specified by the program is assumed.
Optional. Rank declares an n-dimensional array of indefinite elements. The value given for Rank defines the number of dimensions for the array.
Optional. The type of access to the prototype. *PRIVATE is the default.
*PRIVATE (default) - access to the prototype is accessible only from within their declaration context, including from members of any nested types, for example from within a nested procedure or from an assignment expression in a nested enumeration.
*PUBLIC - access to the prototype is accessible from anywhere within the same project, from other projects that reference the project, and from an assembly built from the project.
*PROTECTED - access to the prototype is accessible only from within the same class, or from a class derived from this class.
*INTERNAL - access to the prototype is accessible from within the same project, but not from outside the project.
Optional. List of variables representing arguments that are passed to the procedure when it is called.
This command declares a prototype to be used in a dynamic call using CALLD.
Follow the DCLPROTYPE with DCLSRPARMS to specify the parameters.