I have a vendor who is placing a files on a FTP Server in Binary. I need to retrieve those files and place them into an iSeries database file. Is there away to retrieve the file straight from the FTP Server into the database file using GET that will translate from binary to mixed text and packed values.
Software/Hardware used:
iSeries, RPGIV
ASKED:
April 21, 2011 2:32 PM
UPDATED:
May 3, 2011 12:58 PM
FTP’ing a file in binary just means it was unconverted from whatever character set (ASCII, EBCDIC, …) it was stored in. If it was from another EBCDIC system and laid out to match your file, you can simply issue a binary command before your get.
That is PROBABLY NOT the case.
The files are coming from a iSeries but they are being place on a unix system.
If the file was FTPed to the Unix box in BINARY mode, and if the file format matches a file format on your system, you should be able to GET the file in BINARY mode into the matching file on your system.
If CCSIDs also match between your system and original system, there should be no problems.
Tom