SFTP

30 pts.
Tags:
ASCII
iSeries
SFTP
I need to transfer a file using SFTP. It's a PF with a 180 character field. When I try the put command from an iSeries library, the file goes over as binary. If I copy it to the IFS and transfer from there, it goes over as text. But, I cannot have this unencrypted file in the IFS, even temporarily. Is there a way to transfer this file from a user library, and have it arrive in ASCII format? It's a new file, so I have the ability to make any changes necessary to the file or the way it's compiled. Any suggestions?

Software/Hardware used:
CLLE on R6V1 Iseries (QSH Cmd sftp)

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    You need to think through your requirements. They are self-contradictory, and they need to be clarified.
    .
    Since sftp is technically a Unix tool, it isn't written to understand physical file "members" that mostly exist only in the AS/400 world. You should supply data that sftp AND the remote system understand. If your physical file data is encoded in EBCDIC, it's not going to be useful when it arrives on some remote system that probably uses an ASCII kind of encoding. And your physical file already exists in the IFS, so your statement that you "cannot have this unencrypted file in the IFS, even temporarily" makes no sense unless your PF is encrypted already. If it is encrypted, it's probably going to be a mess when it's decrypted as ASCII (if the remote system uses ASCII).
    .
    What is the remote platform? Can you show an example of lines from a file that they expect to receive?
    .
    Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following