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

Sending a PC file to the database file

In a CL program, how can I run a command that will 'SEND' a PC file from my PC's hard drive to a database file on my iSeries? I am doing it now by selecting the SEND button on my CA/400 tool bar which runs PC5250$A.tfr, but would like to do it by selecting an option on an iSeries menu.
This can be done by using STRPCCMD. Please take a look at the following CL code snippet:

Pgm
Strpco
strpccmd cmd('rtopcb xx.tto')
endpgm

Most emulation products will run STRPCCMD with no problems.

==================================
MORE INFORMATION 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 November 2004

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