RMVCTLCHR -- Remove Control Character

RMVCTLCHR -- Remove Control Character


The actual command inspects and removes unwanted carriage returns, line feeds or a combination of both from a data stream file.

Below is an example of RMVCTLCHR (Remove Control Character):

RMVCTLCHR STMF('/extol/TP/upload/SPS@NP') WRKDIR('/extol/TP') CTL_0D0A(*YES)

I customarily run this command right after CPYTOSTMF. Note: The directory in WRKDIR parameter should be different than the directory referenced in the STMF directory.

Below is how I combine the usage of CPYTOSTMF and RMVCTLCHR.

CPYTOSTMF FROMMBR('/QSYS.LIB/@NL.LIB/@NC.FILE/@ND.MBR') TOSTMF('/extol/lansing/upload/LAN1@NP') STMFOPT(*REPLACE) ENDLINFMT(*CRLF) STMFCODPAG(*PCASCII)

RMVCTLCHR STMF('/extol/lansing/upload/LAN1@NP') WRKDIR('/extol/lansing') CTL_0D0A(*YES)

To see the EXTOL Tech Memo, CLICK HERE >






By: on
EXTOL Business Partner Logo

More EXTOL Examples

We have over 300+ examples of how EXTOL can be customized to meet your organization's needs

Each of our exmaples are free to review and use.