?
Solved

CPYTOPCD

Posted on 2003-02-19
4
Medium Priority
?
1,614 Views
Last Modified: 2007-12-19
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
Comment
Question by:muhammasif
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Accepted Solution

by:
FletcherTheCat earned 200 total points
ID: 7985940
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
 

Expert Comment

by:SRohit
ID: 7997697
Hello muhammasif,

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

Regards

rohit
0
 
LVL 1

Expert Comment

by:Reactor
ID: 8014944
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
 

Expert Comment

by:madityarama
ID: 8059901
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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're a modern-day technology professional, you may be wondering if certifications are really necessary. They are. Here's why.
Ready to get certified? Check out some courses that help you prepare for third-party exams.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month8 days, 10 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question