home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
dclgen2.zip
/
DCLGEN2.ANN
next >
Wrap
Text File
|
1993-09-06
|
3KB
|
42 lines
07 / Set / 1993
DCLGEN2.CMD is a REXX program which generate a COBOL or C source
file that describes all columns of a given table of a DBM database
To use it is sufficient to issue :
DCLGEN2 Dbase Table (language)
as output you will have :
FOR COBOL :
1 ) DBTMnnn.CBL : Is the COBOL source file, with DBase and
Table names in comment
FOR C :
1 ) DBTMnnn.H : Is the C source file, with DBase and
Table names in comment
2 ) DCLGEN2.LOG : a log in which you can find
the relation between the
DBTMnnn.xxx and DBase + Table
when you issue DCLGEN2 more than one time with the same
DBbase and Table names the program DCLGEN2 REWRITE the
same file so you have always only 1 file for any
couple DBase + Table
VARCHAR and LONGVARCHAR columns are rappresented as :
for COBOL : ( xxxxx = column name )
01 xxxxxx.
49 Lxxxxx .... ( Length )
49 Dxxxxx .... ( Data )
for C : struct xxxxxx {
short int Lxxxxx.... ; ( Length )
cahr Dxxxxx.... : ( Data )
}