General Page
IBM i Access for Windows Data Transfer requests which specified ASCII as the output file type had the option to append an EOF (x'1A') character on the line following the last record of data. This was done by setting Output device: File -> Details... -> File type: ASCII Text -> Details -> Include end of file indicator.
The Access Client Solutions Data Transfer function has no built-in option to add the End-of-File character to ASCII or Text-type file transfers.
This change is intentional. DOS had the concept of an EOF marker which would terminate a file such that read would quit at that point, even when there is more data following. ACS Data Transfer users needing to add an old DOS EOF can create a script to add the character to the file once it is on the PC. Assuming a Data Transfer request has created myfile.csv, the following sequence will append an EOF. These could be placed in a PC .cmd script file:
Start -> Run... -> cmd [enter]
copy /a myfile.csv myfilewithEOF.csv
The command line copy
with /a
argument will append a DOS EOF to the target (myfilewithEOF.csv
).
Was this topic helpful?
Document Information
More support for:
IBM i
Software version:
All Versions
Operating system(s):
IBM i
Document number:
734501
Modified date:
18 December 2019
UID
ibm10734501