Datagen Syntax

Datagen is a program for creating regression test data from data specifications. It reads specifications from stdin and writes test records to stdout. Compile listing appears in stderr.

This page explains the syntax for running datagen.

Normal syntax

    datagen   <input_source   >output_data   2>messages

You should see the message:

    Result of compile = 0

...after a normal compile without errors.

Normal syntax - Suppress messages

    datagen   <input_source   >output_data   2>/dev/null

You should see only the output data.

Verbose syntax

    datagen -v   <input_source   >output_data   2>messages

Syntax to show internal record data

    datagen -V   <input_source   >output_data   2>messages

Debugging datagen input source

Removing Debugging Options


Table of Contents     Record Definitions     Field Definitions
FAQ     Supporting Routines     Copying