DFSORT OUTREC Reformatting with FINDREP

DFSORT OUTREC: Extending with OVERLAY DFSORT OUTREC: Reformatting with IFTHEN

Advertisements


The reformat output records by specifying items that start at a specific position can be done with the BUILD, FIELDS or OVERLAY parameter of the OUTREC statement.

But if to replace or remove data anywhere in records, the FINDREP parameter of the OUTREC statement needs to use instead.

FINDREP indicates that doing a find and replace operation.

IN identifies the constant (the "find" constant) and OUT identifies the constant (the "replace" constant).


Syntax:
OPTION COPY
OUTREC FINDREP=(IN=String/charset,OUT=String/charset)

Name Description
IN=String/charsetSpecifies string/charset that needs to find in the file.
OUT=String/charsetSpecifies new string/charset that used to replace in the file.

Example: - Will update soon


DFSORT OUTREC: Extending with OVERLAY DFSORT OUTREC: Reformatting with IFTHEN

Advertisements