home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 18 REXX / 18-REXX.zip / dclgen2.zip / DCLGEN2.ANN next >
Text File  |  1993-09-06  |  3KB  |  42 lines

  1. 07 / Set / 1993                                                                 
  2.                                                                                 
  3.     DCLGEN2.CMD is a REXX program which generate a COBOL or C source            
  4.     file that describes all columns of a given table of a DBM database          
  5.                                                                                 
  6.     To use it is sufficient to issue :                                          
  7.                                                                                 
  8.            DCLGEN2 Dbase Table (language)                                       
  9.                                                                                 
  10.     as output you will have :                                                   
  11.                                                                                 
  12.     FOR COBOL :                                                                 
  13.                                                                                 
  14.     1 ) DBTMnnn.CBL : Is the COBOL source file, with DBase and                  
  15.                       Table names in comment                                    
  16.                                                                                 
  17.     FOR C :                                                                     
  18.                                                                                 
  19.     1 ) DBTMnnn.H   : Is the C source file, with DBase and                      
  20.                       Table names in comment                                    
  21.                                                                                 
  22.     2 ) DCLGEN2.LOG : a log in which you can find                               
  23.                       the relation between the                                  
  24.                       DBTMnnn.xxx and DBase + Table                             
  25.                                                                                 
  26. when you issue DCLGEN2 more than one time with the same                         
  27. DBbase and Table names the program DCLGEN2 REWRITE the                          
  28. same file so you have always only 1 file for any                                
  29. couple DBase + Table                                                            
  30.                                                                                 
  31. VARCHAR and LONGVARCHAR columns are rappresented as :                           
  32.                                                                                 
  33. for COBOL :              ( xxxxx = column name )                                
  34.              01 xxxxxx.                                                         
  35.                 49 Lxxxxx .... ( Length )                                       
  36.                 49 Dxxxxx .... ( Data   )                                       
  37.                                                                                 
  38. for C     :  struct xxxxxx {                                                    
  39.                    short int Lxxxxx.... ; ( Length )                            
  40.                    cahr      Dxxxxx.... : ( Data   )                            
  41.                    }                                                            
  42.