Q

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

Dig deeper on FTP

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

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:

-ADS BY GOOGLE

SearchEnterpriseLinux

SearchDataCenter

Close