IBM Support

ACS Data Transfer ASCII file type does not append End-of-File character

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).

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Component":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

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

Manage My Notification Subscriptions