Consultor Eletrônico



Kbase P18438: How to produce a Version 8 definition file (.df) from Version 9 ?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   15/10/2008
Status: Verified

GOAL:

How to convert a version 9 database definition file to version 8?

FIX:

Run the following script from a 4GL session in order to get rid off few options introduced in version 9 that version 8 does not understand: DEF STREAM ins.
DEF STREAM outs.

INPUT STREAM ins FROM lpfdbaind.df .
OUTPUT STREAM outs TO lpfdbaind8.df.

DEFINE VARIABLE c AS CHARACTER NO-UNDO.

REPEAT:
IMPORT STREAM ins UNFORM c.
IF c MATCHES "* AREA *" THEN NEXT.
IF c MATCHES "* SQL-WIDTH *" THEN NEXT.
IF c MATCHES "* POSITION *" THEN NEXT.
PUT STREAM outs UNFORM c "~n".
END.

INPUT STREAM ins CLOSE.
OUTPUT STREAM outs CLOSE.