Tips, Tricks, and Techniques
Last update: 30 April 2004
NAT3055 Attempted format/length conversion not possible.
Don't use a READ command to get records from the parameter file that contains different record types or logical records.
To determine the end of the read loop ADABAS has to read one record more to compare. And exactly this next record can have another format, since ADABAS fields are redefined with logical user fields. The following error message will happened:
An attempted format conversion was not possible due to incompatible
data formats or other compatibility problems.
If the record type you read is the last in the file, you'll never get this error.
PREDICT definitions for one record type:
1 Z7 DRP-REC-TYP/DRW-MKT/DRW-REC A7
Level I Name I Length I Format I Options I Predict field names
1 I AA I 002 I A I NU DE I
1 I AB I 027 I U I NU I
1 I A7 I 100 I A I NU I
1750 R1. READ PARM-VIEW-2 BY DRP-REC-TYP/DRW-MKT/DRW-REC
1760 STARTING FROM #START-KEY-1
It is strictly recommanded to use a FIND command to avoid this error.