Ask the Expert

Sending an IFS file to a mainframe system via FTP

I am trying to send an IFS file to a mainframe system through FTP. Though the transfer is successful, the dataset to which I am uploading the file in Mainframe gets appended with the user ID with which I have logged onto remote system. I even tried sending by putting the quotes to the dataset(this indicates the dataset should not be appended) as suggested by mainframe programmer . But this did not work; whereas when I did FTP from DOS prompt the transfer was OK with the correct dataset name. The following are the commands I am using:

UserID
Password
Namefmt 1(to indicate the transfer is for HFS)
QUOTE CYL PRI=200 SEC=50 RECFM=FB LRECL=550 QUOtesoverride (this is mainframe command to allocate the space and the REC FMT length) PUT qdls/mydoc.txt 'dataset name'.

I would assume that you would need to use the keyword BINARY to prevent the data set on the remote system from being appended at the end of the file.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your OS/400 questions -- or help out your peers by answering them -- in our live OS/400 discussion forums.

Ask the Experts yourself: Our OS/400 gurus are waiting to answer your questions.

Check out this Search400.com Featured Topic: Top 10 expert tips for OS/400

This was first published in December 2003

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

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
Sort by: OldestNewest

Forgot Password?

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

Your password has been sent to: