Natural System Error Messages 1300-1349

NAT1300: Negative exponent not allowed.

Text
Negative exponent not allowed.
Explanation
Natural performs an exponentiation via repetitive multiplication.
Negative exponents are not permitted.
Action
Use only positive exponent values.

NAT1301: Intermediate result too large.

Text
Intermediate result too large.
Explanation
The construct of the arithmetic expression generates an intermediate
result with too many digits.
Action
Separate the arithmetic expression into several statements with defined
lengths for intermediate results.

NAT1302: Division by zero not permitted by parameter ZD=ON.

Text
Division by zero not permitted by parameter ZD=ON.
Explanation
The ZD session parameter is set to "ON".  This causes
an error when a division by zero is attempted.
If a result of zero is desired when attempting a division
by zero, change the setting of the ZD session parameter to "OFF".
Action
Set "ZD=OFF" if desired.

NAT1303: Numeric truncation caused by adding/subtracting 1.

Text
Numeric truncation caused by adding/subtracting 1.
Explanation
In the evaluation of a relational expression, the operators
GREATER and LESS THAN are evaluated by adding/subtracting "1"
from the value.
Action
Increase length of field used in relational expression.

NAT1304: Value has been rounded and does not fit into field.

Text
Value has been rounded and does not fit into field.
Explanation
Rounding has caused the value to exceed the number of digits
defined for the field.
Action
Increase length of field being rounded.

NAT1305: Numeric value truncated in MOVE/ASSIGN operation.

Text
Numeric value truncated in MOVE/ASSIGN operation.
Explanation
The receiving field in a MOVE/ASSIGN operation is not long
enough to hold the result of the value.
Action
Increase the length of the receiving field.

NAT1306: Error in STEP value in FOR statement.

Text
Error in STEP value in FOR statement.
Explanation
The end value cannot be reached by incrementing the start value
because STEP value = 0 was detected.
Action
Check program and correct error.

NAT1307: Resulting element address in MOVE INDEXED out of range.

Text
Resulting element address in MOVE INDEXED out of range.
Explanation
The target address of the MOVE INDEXED operation lies
outside the Natural data area.
Action
Check index value or length of base field in MOVE INDEXED.

NAT1308: Replace string does not fit into variable.

Text
Replace string does not fit into variable.
Explanation
In an EXAMINE statement, one of the strings to be examined and
replaced resulted in a total string length that is larger than the
variable length.
A truncation of a value is not allowed in an EXAMINE statement.
Action
Adjust length of field in EXAMINE statement.

NAT1309: Overflow in NUMBER variable of EXAMINE statement.

Text
Overflow in NUMBER variable of EXAMINE statement.
Explanation
The number of strings found in the source variable is too large
to be represented in the NUMBER variable of the EXAMINE statement.
Action
Adjust the length of the NUMBER variable.

NAT1310: RETRY statement not allowed for this error number.

Text
RETRY statement not allowed for this error number.
Explanation
1. A RETRY is only possible for database response code "145". This
response code indicates that a record which is to be read for update is
currently in "hold" status for another user. NAT3145 can only occur when
the global option WH=OFF (wait hold) is in effect.
2. NAT1310 can also occur under one of the following conditions if the
response code is in fact "145":
- The object module which was active when "145" was received does not
  contain an ON ERROR statement.
- The RETRY statement executed in reaction to "145" is not contained in
  the same object module as was active when the response code was
  received.
Response code "145" can only be handled by the object module which is
active when the response code is received. When control is returned from
that module, Natural automatically converts NAT3145 to NAT1310.
Action
that module, Natural automatically converts NAT3145 to NAT1310.
Check program and correct error.

NAT1311: Index in MOVE INDEXED statement is zero or negative.

Text
Index in MOVE INDEXED statement is zero or negative.
Explanation
The index in a MOVE INDEXED statement must be positive.
Action
Correct program.

NAT1312: Number of elements too large for number field.

Text
Number of elements too large for number field.
Explanation
The NUMBER clause was used in the SEPARATE statement,
but the number of elements to be returned does not fit
into the field specified.
Action
Increase the length of the field which is to contain
the resulting number of elements.

NAT1313: Not enough receiving fields available in SEPARATE.

Text
Not enough receiving fields available in SEPARATE.
Explanation
The source field contained so many delimiter characters that there
were not enough target fields available in the SEPARATE statement
to receive all values.
Action
Check program and correct error.

NAT1314: Target field too small for field portion.

Text
Target field too small for field portion.
Explanation
In a SEPARATE statement, a portion of a field to be transferred is
larger than the target field specified.
Action
Increase the length of the target field.

NAT1315: Source field and target field in SEPARATE overlap.

Text
Source field and target field in SEPARATE overlap.
Action
Avoid overlapping of source and target fields.

NAT1316: Index not within array structure.

Text
Index not within array structure.
Explanation
The index specified for an array is not within the dimensions
defined for the array.
Action
Check program and correct error.

NAT1317: Array range operation on invalid ranges.

Text
Array range operation on invalid ranges.
Explanation
An arithmetic operation may operate on array ranges with
identical range structures, or on array ranges with
single values (scalar values).
Two or three ranges were defined for an arithmetic operation,
which do not have identical range structures.
Action
Check program and correct error.

NAT1318: Overlap during ASSIGN.

Text
Overlap during ASSIGN.
Explanation
During assignment of alphanumeric or binary operands, an
invalid overlap was detected. This condition occurs when an
attempt is made to move a byte which has already been moved
during the execution of the statement.
Action
Check program and correct error.

NAT1319: Invalid date operation.

Text
Invalid date operation.
Explanation
The result of an operation (date integer) is a negative date.
Action
Check program and correct error.

NAT1320: Invalid operand for system function VAL.

Text
Invalid operand for system function VAL.
Explanation
The operand of the VAL system function does not contain a valid
alphanumeric representation of the resulting value.
The VAL system function is similar to the INPUT statement: what
is accepted by the INPUT statement is also accepted by the VAL
system function.
Action
Check program and correct error.

NAT1321: Invalid UNTIL parameter in MOVE ALL statement.

Text
Invalid UNTIL parameter in MOVE ALL statement.
Explanation
This error may be caused by one of the following:
- The UNTIL parameter contains a negative value.
- The UNTIL parameter contains a value with more than 7 valid
  decimal digits or more than 31 valid binary digits.
Action
Correct error.

NAT1322: Parameter :1: missing (invoked at line :2: by :3:/:4:/:5:/:6:).

Text
Parameter ... missing (invoked at line ... by .../.../.../...).
Explanation
Natural tried to execute a statement which contained a reference to
parameter ... which was not supplied by the object .../.../.../...
This occurs if the invoking statement at line ... has not supplied
a parameter which was defined as optional by the invoked object
(DEFINE DATA PARAMETER).
Action
Specify the missing parameter in the invoking statement.

NAT1323: ACCEPT, REJECT, REINPUT not allowed in end-data condition.

Text
ACCEPT, REJECT, REINPUT not allowed in end-data condition.
Explanation
The statements ACCEPT and REJECT are not allowed in an end-of-data
condition (loop is already closed).
The same restriction applies for a REINPUT statement if the
corresponding INPUT statement is contained within a loop which has
been closed.
Action
Check program and correct error.

NAT1324: Loop must be active if this statement is used.

Text
Loop must be active if this statement is used.
Explanation
An ESCAPE TOP, ESCAPE BOTTOM, ACCEPT, REJECT or PERFORM BREAK PROCESSING
statement cannot be executed, because
- no loop is active for an ESCAPE TOP, ESCAPE BOTTOM or
  PERFORM BREAK PROCESSING statement;
- no FIND, READ, HISTOGRAM, CALL FILE, SORT or READ WORK FILE loop is
  active for an ACCEPT or REJECT statement.
Action
Check program and correct error.

NAT1325: Too many asterisks "*" found in pattern.

Text
Too many asterisks "*" found in pattern.
Explanation
A maximum of 10 asterisks "*" may be supplied in a pattern. If more "*"
are found in the pattern, a table overflow occurs and therefore the
execution is stopped. However, "**" is recognized as "*".
Action
Decrease the number of asterisks "*" in the pattern.

NAT1326: Range specified is outside field.

Text
Range specified is outside field.
Explanation
Error in the SUBSTRING option of a statement:
- the starting position is not within the field; or
- the value of the starting position is zero or negative; or
- the specified length exceeds the length of the field; or
- the length value is zero or negative.
Error in the POSITION clause of an EXAMINE statement:
- The FROM position is not within the field; or
- the ENDING AT/THRU position is not within the field.
Error in the CHARPOSITION clause of an EXAMINE statement:
- the CHARPOSITION is not within the field.
Action
Check program and correct error.

NAT1328: No default code page available.

Text
No default code page available.
Explanation
The execution of the current statement requires that a default code
page is defined.
Action
Define a default code page, using the CP parameter.