RAD function: genout

A RAD function that generates a string containing the contents of a record using a specified form. The output produced is either fixed or variable length.

Function

genout

Format

genout($file.variable, $format.name)

Parameters

The $file.variable is a variable containing a record or records to process.

The $format.name variable is the name of format to be used.

Factors

  • Spaces are substituted for NULL in fixed length output.
  • All normal format processing occurs, including input and output routines. Data can therefore be automatically reformatted or manipulated as part of the function. For example, a date can be converted from 02/28/05 00:00:00to February 28, 2005.

Examples

$output=genout($operator, “operator.view”)
$output={“Name:joes Full Name:Joe Smith”,
“Printer:sysprint Email:joes@microfocus.com”}