search cancel

Issues with GET and SFTP_JAVA module using ASCII mode

book

Article ID: 89927

calendar_today

Updated On:

Products

CA Automic Applications Manager (AM)

Issue/Introduction

Issues with GET and SFTP_JAVA module using ASCII mode

Environment

Release: AAMOS499000-8.0-Automic Applications Manager-OS400 Agent
Component:

Resolution

Detailed Description and Symptoms

When trying to GET a file using the SFTP_JAVA module in version 8.0 in ASCII mode the file is Not where you expect it to be. If you look in the master's tmp directory you will find it renamed.


Investigation

If trying to get test.txt the file would be renamed in a similar fashion:

 

sftp-1762test.txt

 

If you try looking in the output file for the job you will notice no real error. The only indicator of this issue is the file is not transferred to the correct directory but rather appears renamed in the tmp directory.


Solution

This is a known issue. SFTP_JAVA does not support ASCII file transfers. It only supports BINARY file transfers. Please try transferring the file in BINARY mode and SFTP_JAVA should perform as expected.