Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
• Status: Solved
• Priority: Medium
• Security: Public
• Views: 1696

# CPYTOPCD

I'm trying to copy a file to my PC. Here are the values that I'm using:
====================================

From file  . . . . . . . . . . . > QPJOBLOG
Library  . . . . . . . . . . . >   SPLFACTORY
To folder  . . . . . . . . . . . > SPLFACTORY

From member  . . . . . . . . . .

To document  . . . . . . . . . .

Replace document . . . . . . . .

Translate table  . . . . . . . .   *DFT

Library  . . . . . . . . . . .
Format of PC data  . . . . . . .   *TEXT

=========================================

I'm getting        Folder name not correct.
I do have a folder called SPLFACTORY under C:/ on my PC.

Thanks.

0
muhammasif
1 Solution

Commented:
The CPYTOPCD command doesn't copy the document to a folder on your local PC. What the command does is copy a file into a PC format document in a folder under QDLS on the AS400.

The command DSPFLR will allow you to look and see what folders are already in existence on your AS400. Specify one of these folders that you have enough authority to and the command will work. To get the document onto your PC using this method, the folder needs to be shared, and you can then either map a drive to it or type the UNC path to it into Windows Explorer.

It is probably simpler however to use the Actions > Receive File From Host option on Client Access to copy the document straight to your local PC.
0

Commented:
Hello muhammasif,

The best way to do is thru Operation navigator.
Thats the easy to do way in windows style.

Regards

rohit
0

Commented:
Hi,

If you want to automate the download and you are OK with using the Client Access file transfer utility you can issue two CL commands from the AS/400 to automatically run the transfer :

1. STRPCO
2. STRPCCMD PCCMD('C:\Data\Transfer.dtf') PAUSE(*NO)

The first is the "Start PC Oragniser" command and the second is the "Run PC Command" command.

Remember to Set up the transfer to start automaticaly and to close down automatically, this is done from File>Properties>Startup Tab. You can also specify a username ans password under the connection tab but remember this could be a security risk.

Hope this helps

Reactor
0

Commented:
You can use Client Access 400.

Try to use

1 "C:\Program Files\IBM\Client Access\cwbtf.exe"  /t or
2 "C:\Program Files\IBM\Client Access\rtopcb.exe" in DOS

but you must have the TTO files. You can get if you use choise no:1. Save as Filename.tto
0

## Featured Post

Tackle projects and never again get stuck behind a technical roadblock.