WFL/DATABRIDGE/COMP

WFL/DATABRIDGE/COMP is a multi-function WFL that can do the following:

  • Tailor a new DBSupport library. For information on using WFL/DATABRIDGE/COMP to compile a support library, filtering routine, or formatting routine, see Understanding DBGenFormat.
  • Compile any of the following sample programs:
    • SQLGEN
    • DASDLGEN
    • EXTRACTADDRESS
    • MINISPAN
    • MINILISTER
    • VIRTUALLIB
    • REFORMAT
    • COBOLFORMAT
  • Compile the DBCobolSupport library

Before you start WFL/DATABRIDGE/COMP, make sure that all of the parameters are UPPERCASE.

Compiler Control Card Options

As with all other DATABridge WFLs, you can set QUEUE and STARTTIME. In addition, this WFL/DATABRIDGE/COMP contains compiler control cards ($ card options) for the following DATABridge components:

  • SUPPORT
  • COBOLSUPPORT
  • SAMPLE/SQLGEN
  • SAMPLE/MINISPAN
  • SAMPLE/MINILISTER
  • SAMPLE/REFORMAT
  • SAMPLE/DASDLGEN
  • SAMPLE/VIRTUALLIB
  • SAMPLE/EXTRACTADDRESS
  • SAMPLE/COBOLFORMAT

The compiler control cards provide you with a convenient way of changing settings such as $ RESET LIST and $ SET MERGE LINEINFO ERRORLIST. However, most sites do not need to change any of the compiler control card options. In addition, do not alter any of the compiler control card options unless you are completely familiar with the particular control card option.

Resulting Files

If there are any compile errors or warnings when you run WFL/DATABRIDGE/COMP, they are written to the following file:

ERRORS/programname

where programname is any DATABridge component listed in the preceding section “Compiler Control Card Options.”

In addition, any printer listings that the compile generates are written to the following file:

DBBD/COMP/programname

Patches

When you need to patch a DATABridge program such as DBSupport, it is recommended that you use the INTERNAL FORMAT statement in DBGenFormat. See “Declaring Internal and External Formats” in Creating a Format.

You can also modify the source directly, or you can put the patch in the appropriate CARD file in WFL/DATABRIDGE/COMP. It is recommended that you put the patch in the CARD file and that you use the $INCLUDE statement, as shown in the example on the next page.

DATA CARD/SUPPORT

$ RESET LIST STATISTICS (RESET LABELS) RESET VERBOSE

$ SET MERGE LINEINFO ERRORLIST VERSION 4.0

$INCLUDE "PATCH/DATABRIDGE/SUPPORT/ formatname" 72000000

Note: The position of the dollar sign ($) for the INCLUDE statement must be in column 2 or beyond. The space between the $ and the literal INCLUDE does not matter. The line number, 72000000 in this example, must begin in column 73.