Home The Company Publications Products Links Tips Jobs

CATALOG Errors Under NAT413

Out of 10,139 Cataloged Objects

Last update: 20 May 2005

Index


Details

NAT0001 Missing/invalid syntax; undefined variable name/keyword.

The syntax checker detected an invalid statement name or keyword. Probable cause is a misspelling of a statement name, keyword or variable name, or an error in a sub-clause of the previous statement. Missing/invalid syntax; undefined variable name/keyword.

Check under NAT232 = NAT0001
Check under NAT413 = NAT0001

Version 2.3.2 Code:

3520     TRITE WORK FILE 15 #DATA-LN-11

Version 4.1.3 Code:

3520     WRITE WORK FILE 15 #DATA-LN-11

...to last index topic


NAT0002 No file is available with specified name or number.

- The file name was misspelt; or
- the file is not defined in the Data Dictionary; or
- you are not authorized for access to the file.

Check under NAT232 = NAT0002
Check under NAT413 = NAT0002

Version 2.3.2 Code:

0010 	DEFINE DATA LOCAL 1 AGF-COMP-V VIEW AGF-COMPONENT

Version 4.1.3 Solution:

0010 	DEFINE DATA LOCAL 1 AGF-COMP-V VIEW AGF-COMPONENT
The DDM/View has been retired in March 2002 – maybe the program is also obsolete.

...to last index topic


NAT0008 No file is available with specified name or number.

  1. A field used in a WITH clause must be a descriptor. A group notation is not permitted.
  2. When the ENDING AT clause of a READ statement uses a superdescriptor as the search key, the superdescriptor must be defined with the VIEW in the data area (if present).
  3. When the READ statement is related to DB2, the search variable must be part of the VIEW.
  4. The LIST FILE command may be used to ascertain whether a field is defined as a descriptor in the data dictionary.
  5. Add the superdescriptor to the VIEW.

Please also note since NATURAL version 4:
End of Range Condition (ENDING AT) controlled by database is new. As this may lead to different results and so as not confuse the “old” end-value mechanism with the “new” one, a new keyword “TO” is provided that is substituted for “THRU”.

Check under NAT232 = OK
Check under NAT413 = NAT0008

Version 2.3.2 Code:

0960 FIND SAFE-DROP-LOG WITH CTR/ACT-INACT/MATCH/PICKUP-DTE =  
0970 	      #START-CTR/STAT/MATCH-FLG/PICKU-DTE THRU              
0980 	      #END-CTR/STAT/MATCH-FLG/PICKU-DTE                     

Version 4.1.3 Solution:

0960 FIND SAFE-DROP-LOG WITH CTR/ACT-INACT/MATCH/PICKUP-DTE =   
0970 	      #START-CTR/STAT/MATCH-FLG/PICKU-DTE THRU               
0980 	      #END-CTR/STAT/MATCH-FLG/PICKU-DTE                      

Superdescriptor was not defined in the VIEW.

...to last index topic


NAT0013 Descriptor name or ISN missing after 'BY' in READ.

The word 'BY' is specified to express a sequence for a READ operation. If BY is used, either the word 'ISN' or the name of a descriptor must be specified to express the sequence in which the records are to be read.
Either do not specify BY, or specify either ISN or the name of a descriptor.

Check under NAT232 = NAT0013
Check under NAT413 = NAT0013

Version 2.3.2 Code:

4250 	READ (1) DROP-LOG-VW BY CTR/ACT-INACT/MATCH/PICKUP-DTE

Version 4.1.3 Solution:

4250 	READ (1) DROP-LOG-VW BY CTR/ACT-INACT/MATCH/PICKUP-DTE
Newer DDM/View has been used.

...to last index topic


NAT0082 Invalid command, or ERRDISP does not exist in library.

One of the following has occurred:

  • You entered a value in the command line which is neither a Natural command nor the name of a Natural program contained in the active library or in a library defined as a steplib.
  • An object which is required during execution of a program, subprogram, subroutine or helproutine is not contained in the active library or in a library defined as a steplib.
  • Your Natural session is currently applying system files other than those containing the object you specified.
    Check to ensure that you entered a valid Natural command or the name of an existing Natural object. Use the command SYSPROF to check whether you are using the correct system file.

Reason in this case: ERRDISP was missing in the library.

Check under NAT232 = NAT0082
Check under NAT413 = NAT0082

Version 2.3.2 Code:

2480 	  INPUT WITH TEXT #MSG USING MAP 'ERRDISP'                                               

Version 4.1.3 Solution:

2480 	  INPUT WITH TEXT #MSG USING MAP 'ERRDISP'                                               

...to last index topic


NAT0166 Invalid variable definition in DEFINE DATA statement.

An invalid definition of the DEFINE DATA statement has been detected.

Check under NAT232 = NAT0166
Check under NAT413 = NAT0166

Version 2.3.2 Code:
CATALL marked stmt 0515 but CHECK marked 1030

0520 	DEFINE DATA  GLOBAL  USING  SGL00G00  WITH  MAIN-BLK
0530 	              LOCAL  USING  SDR50L01                
0540 	              LOCAL  USING  SER01L01                
0550 	              LOCAL  USING  SDG10L01                
0560 	              LOCAL  USING  SDF50L03  

1030 	      3  CLS-SELLOUT-QTY

Version 4.1.3 Solution:
CATALL marked stmt 0515 but CHECK marked 1030

0520 	DEFINE DATA  GLOBAL  USING  SGL00G00  WITH  MAIN-BLK
0530 	              LOCAL  USING  SDR50L01                
0540 	              LOCAL  USING  SER01L01                
0550 	              LOCAL  USING  SDG10L01                
0560 	              LOCAL  USING  SDF50L03  

0890 	  1  CENTER-DRAW 

1030 	      3  CLS-SELLOUT-QTY

View CENTER-DRAW does not contain field "CLS-SELLOUT-QTY.

...to last index topic


NAT0285 Field reference error; reference invalid or missing.

Probable reasons for this error message:

  • You mistyped the variable name.
  • The variable name you specified has not yet been declared.
  • A specific database reference has been supplied, but the field is not present in the file referenced.
  • The value of a Natural system function has been referenced in the form *FUNCTION(FIELD), but no evaluation of the referenced system function has occurred for the field.

In this case: field "##CR-ACCT-ISN" was missing in the LDA.

Check under NAT232 = NAT0285
Check under NAT413 = NAT0285

Version 2.3.2 Code:

0340 	   MOVE ##CR-ACCT-ISN     TO  #ACCT-ISN

Version 4.1.3 Solution:

0340 	   MOVE ##CR-ACCT-ISN     TO  #ACCT-ISN

...to last index topic


NAT0340 Invalid tab setting; occupied column overlaid.

The tabulation 'nT' can only be used to position forward in a line. The tabulator notation must not position the new value over an already occupied output position.
Invalid tab setting; occupied column overlaid.

Check under NAT232 = NAT0340
Check under NAT413 = NAT0340

Version 2.3.2 Code:

1870 DISPLAY (2)                             
1880 001T 'REGION'      #IPM20A03.REGION   
1890 010T 'DEBIT ACCT'  #IPM20A03.DB-ACCT  
1900 030T 'CREDIT ACCT' #IPM20A03.CR-ACCT  
1910 050T 'COMMENT'     #COMMENT            

Version 4.1.3 Solution:

1870 DISPLAY (2)                             
1880 001T 'REGION'      #IPM20A03.REGION   
1890 010T 'DEBIT ACCT'  #IPM20A03.DB-ACCT  
1900 035T 'CREDIT ACCT' #IPM20A03.CR-ACCT  
1910 060T 'COMMENT'     #COMMENT            

...to last index topic


NAT0384 Explicit format specification required.

The FS parameter has been set with a SET GLOBALS statement or GLOBALS command to indicate that no default format/length is to be used. Therefore the format/length of all user-defined variables must be explicitly specified.
Explicit format specification required.

Check under NAT232 = NAT0384
Check under NAT413 = NAT0384

Version 2.3.2 Code:

0080 	RESET #FUT-OVRD-PPSTP-NME

Version 4.1.3 Solution:

0080 	RESET #FUT-OVRD-PPSTP-NME

...to last index topic


NAT0477 Explicit format specification required.

The value specified is out of the permitted bounds.
Supply a correct numeric value.

Check under NAT232 = NAT0477
Check under NAT413 = NAT0477

Version 2.3.2 Code:

1150     TERMINATE 5016                                                

Version 4.1.3 Solution:

1150     TERMINATE 099                                                

...to last index topic


NAT0623 Variable/field/view must be defined in DEFINE DATA.

If a DEFINE DATA statement is present, all variables/fields to be used must be defined in the DEFINE DATA statement in an LDA, GDA or PDA, which are referenced with the keyword USING in the DEFINE DATA statement.
If this error occurs for a DDM and a DEFINE DATA statement is present, a view of the DDM (and of any database field referenced in the program) must be defined in the DEFINE DATA statement.

In this case: field "##CR-ERROR-FLG" was missing in the LDA.

Check under NAT232 = NAT0623
Check under NAT413 = NAT0623

Version 2.3.2 Code:

0180 	RESET ##CR-ERROR-FLG

Version 4.1.3 Solution:

0180 	RESET ##CR-ERROR-FLG

...to last index topic


NAT0648 Parameter 1 inconsistently specified. Reason code 16.

The parameter supplied in a CALLNAT statement is not compatible with the corresponding parameter definition in the subprogram. Reason codes:

  • 04 : The CALLNAT parameter is specified as an empty parameter ("nX") but the definition in the subprogram is not "OPTIONAL".
  • 08 : Mandatory parameter in the subprogram is missing in the CALLNAT statement.
  • 12 : Parameters do not match in format.
  • 16 : Parameters do not match in length.
  • 20 : Parameters do not match in array definitions.

Check under NAT232 = OK
Check under NAT413 = NAT0648

Version 2.3.2 Code:

0950 	1 #ICT01N01-PARAMETER                (A10) 
0960 	1 REDEFINE #ICT01N01-PARAMETER             
0970 	  2 #CBLE-SERV-TYP-INCL-INACTV-FLG   (A1)  
0980 	  2 #CBLE-SERV-TYP-ARRAY             (A8)  
0990 	  2 REDEFINE #CBLE-SERV-TYP-ARRAY          
1000 	    3 #CBLE-SERV-TYPES               (A1/8)

1410 	CALLNAT 'ICT01N01' #ICT01N01-PARAMETER

Parameter in program ICT01N01:
0300 DEFINE DATA                             
0310 PARAMETER                               
0320 1 #PARA                         (A37)   
0330 1 REDEFINE #PARA                        
0340 2 #ICT01N01-INCL-INACTV-FLG     (A1)    
0350 2 #CBLE-SERV-TYP-ARRAY          (A36)   
0360 2 REDEFINE #CBLE-SERV-TYP-ARRAY         
0370   3 #CBLE-SERV-TYPES            (A1/36) 
Version 4.1.3 Solution:
Correct parameters in calling program to match parameters in program to be called.
0950 	1 #ICT01N01-PARAMETER                (A37) 
0960 	1 REDEFINE #ICT01N01-PARAMETER             
etc.
Another possibility is to go to "Compilation Options" and turn "Parameter Checking for CALLNAT Statements (PCHECK)" off. Or "Disable New Version 4.1 Syntax (V31COMP)" under "Compilation Options."

...to last index topic


Top Page



Back to NATURAL Tips, Tricks, Techniques -- Overview