_ddguess.utl Utility- Guess Record Layout
Syntax
call "_ddguess.utl",fileid$,template${,options$}
Description
The _ddguess.utl utility attempts to guess the record layout of an existing data file. Remember to verify the generated record structure; it usually requires manual adjustments.
Parameter |
Description |
fileid$ |
File ID (must exist in the data dictionary). |
template$ |
Returns the record layout as a PRO/5 string template. |
options$ |
"s" Silent. |
Example
CALL BBEXT$+"_ddguess.utl","CUSTOMER",TEMPLATE$
This utility attempts to guess a file layout by examining the first record in the current data file. Fields made up entirely of numbers will be assigned the data type "N"; all others will be defined as type "C". Field names will be "FIELD"+STR(field_number); for example, FIELD1, FIELD2, FIELD3, and so on.