THE INFORMATION IN THIS ARTICLE APPLIES TO:
The Advanced Workflow Engine for EFT is able to help in a multitude of automation functions. Many customers, when integrating with diverse environments, find themselves having to contend with crossing the bridge between UNIX-formatted text-based files and DOS-formatted text files. Below is a short script that can help you transform a UNIX-based text file into a DOS-formatted file by transforming the use of the LF to a CRLF.
<AMLOOP TYPE="FILECONTENTS" FILE="%targetFile%" RESULTVARIABLE="filePart" DELIMITER="%Chr(10)%" ENCODING="utf-8">
<AMSET VARIABLENAME="newData">%newData & filePart & Chr(13) & Chr(10)%</AMSET>
<AMFILEWRITE FILE="C:\temp\test_lf2_translated.txt" APPEND="NO">%newData%</AMFILEWRITE>