Q

Upload an ASCII file from a PC server to an iSeries

What is the best way to upload an ASCII file from a PC server to an iSeries? A user will place the file on the...

PC server using FTP and we would like to get it to our iSeries for processing. Can this be done using a CLP? Or, is Client Access going to be our only option? We are hoping to monitor the PC side and cause the upload to the iSeries to occur without user intervention.

The best way to deliver flat file to the iSeries is to use FTP and use the iSeries as a server or as client. When the iSeries is the server on the PC side issue this command.

FTP -s:myscriptfile.txt where myscriptfile.txt contains something like this:

USER as400user
as400password
cd qgpl
ascii
put pcfile as400file

From the iSeries you can use batch FTP to get the files from the PC, this will require setting the ftp server on the PC. See more explanation here. 

More on this topic

Visit the ITKnowledge Exchange and get answers to your connectivity questions fast.

The Best Web Links: Tips, tutorials and more.

PC/Windows connectivity expert Shahar Mor is available to answer your toughest networking questions. Ask Shahar a question or read his previously answered questions here.

 

This was last published in February 2005

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.

Start the conversation

Send me notifications when other members comment.

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

Please create a username to comment.

-ADS BY GOOGLE

SearchEnterpriseLinux

SearchDataCenter

Close