Reverse the record contents

Filter:

REVERSE

Syntax:

REVERSE

Operands:

none

Functional Description:

Use the REVERSE stage to reverse the contents of records on a character-by-character basis . The first character of the input record becomes the last character of the output record, the second character becomes the second-to-last character, and so on. REVERSE reads records from its primary input stream and writes each record in reverse character order to its primary output stream.

Secondary Input/Output:

none

Synonyms:

none

Usage Notes:

The following example will reverse the inputted literal string:

LITERAL This is the time for all good men. | REVERSE | CONSOLE

The following example will reverse the record of the input file:

< test.data | REVERSE | > output.file



JAVA Pipelines

Cullen Programming logo