Padding

Filter:

PAD

Syntax:

PAD /[side] n [padchar]/

Operands:

side :: RIGHT | LEFT Default RIGHT
n :: an integer specifying the number of columns to pad.
padchar :: an clear text character. Default space.

Functional Description:

Use the PAD stage to extend records with one or more specified characters or blanks. You can extend a record on the left or the right. PAD reads records from its primary input stream, extends the records, and then writes the resulting records to its primary output stream, if it is connected.

Secondary Input/Output:

NONE

Synonyms:

none

Usage Notes:

none EXAMPLES:

The following example will pad spaces out to column 80.

|PAD RIGHT 80 | The following example will pad the plus sign out to column 80.

| PAD RIGHT 80 + |

The following example will pad the first 12 columns with the percent sign.

|PAD LEFT 12 % |


JAVA Pipelines

Cullen Programming logo