M204.2493: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (add <var>'s)
m (add link)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:


<P>
<P>
On a <var>Declare</var> statement with the <var>Initial(<i>value</i>)</var> attribute, the %variable being declared is too small for the initial value. This is a warning message only. For example:  
On a <var>Declare</var> statement with the <var>[[Using variables and values in computation#Declare statements for %variables|Initial (<i>value</i>)]]</var> attribute, the %variable being declared is too small for the initial value. This is a warning message only. For example:  
</P>
</P>
<P class="code">%X IS STRING LEN 3 INITIAL (`ABCDEFGHIJ')</P>
<P class="code">%X IS STRING LEN 3 INITIAL (`ABCDEFGHIJ')</P>

Latest revision as of 19:59, 2 July 2018

M204.2493  Variable too small for Initial value

On a Declare statement with the Initial (value) attribute, the %variable being declared is too small for the initial value. This is a warning message only. For example:

%X IS STRING LEN 3 INITIAL (`ABCDEFGHIJ')

Response: Increase the size of the %variable, or decrease the size of the initial value.

Message attributes:

RETCODEO=0Sets online return code
RETCODEB=0Sets batch (single user) return code
CLASS=IInformation class; the message can be suppressed with the X'02' bit setting of the MSGCTL parameter
AUDITMSWrites the message with line type MS to the audit trail
NOCOUNTDoes not increment the error count (ERCNT) parameter
ECHODisplays the line that caused the error

Back to list of messages