× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Siva

Welcome to AS/400. The answer depends on a couple of things. Basically I would say yes, but not with CPYTOPCD.

First, it'd be helpful to know which version of the OS/400 operating system you are on. You can see this if you execute DSPDTAARA QSS1MRI on the command line - the release is in the first position. It'll be something like V5R1M0 or V4R4M0 - VxRxMx in general.

The folder here refers to something on the AS/400. It is a file system that uses the old DOS 8.3 naming convention - it is not recommended that you use this command because of the naming limitations, as well as other complications that go along with this older part of AS/400. So you should not use CPYTOPCD.

The commands to use would be CPYTOSTMF or CPYTOIMPF - the first one copies a physical file to a file in what is called the IFS (Integrated File System), which is generally like a Windows or PC or Unix file system. The folders used by CPYTOPCD are a part of this, too, in a directory call /QDLS, but do not put things there - the problems I mentioned apply ig you even try to use that directory and its subdirectories.

AS/400 of recent releases can participate in a Windows networking environment, using something called NetServer on the AS/400. You set up file shares on the AS/400 (using Operations Navigator, a PC application in Client Access). Then any Windows machine can map a drive to a share, or you can use the network name of the AS/400. So this is how you copy a physical file to someplace a PC can get to it - it is still on the 400 but accessible from PCs.

There is also a directory on the 400 call /QNTC, which is how the 400 sees Windows machines in a Windows network. This is where you COULD write something directly to a PC, but I don't remember if the commands I mentioned above work with /QNTC. Even if they do, it's a bit more complicated.

Hope this helps
Vern

At 11:53 PM 2/26/2005, you wrote:
i am new to AS/400 environment . I find a command CPYTOPCD and tried to use that as below.
QSYS/CPYTOPCD FROMFILE(CMPMS) TOFLR(DOCS) TODOC(CMPMS) REPLACE(*YES)


It gives an Error Message (IWS1612) : Member CMPMS not copied to PC document. [Docs is the file in my local PC]

Can anyone tell me either the folder name option here refers to the local folder in my PC or a folder in AS/400 (as i am seeing some options as "To work with folders").? Is there any way in this comamnd to transfer the file from AS/400 to the PC Side?

Thanks
Siva


__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.