Q
Problem solve Get help with specific problems with your technologies, process and projects.

Automatic file transfer

Each month I need to transfer approximately 200 iSeries files to our PC shared network drive. I know how to use Client Access file transfer, but it will take hours each month to do it manually. I'd like to automate the process in an iSeries CL program by simulating the Client Access program PC5250$A.TTO or an easier way if possible. Any help will be greatly appreciated.
This is one option:

1. Define QNTC as described here, this will allow direct writing from the iSeries to the NT share.

2. For every file issue command CPYTOIMPF directly to the QNTC, for example:

 
CPYTOIMPF FROMFILE(somefile)
          TOSTMF('/qntc/pcname/dirname/pcname')
          MBROPT(*REPLACE)
          RCDDLM(*CRLF)

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

Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.

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.


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.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close