× 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.



On 6/22/2023 9:58 AM, tim ken wrote:

Just to clarify I want the file which is already there on the IFS
Directory path , I want it to be copied into any qualified path let's say
into LIBA/SRCPF1 and into it's member 'xyz' .

but when I do option '3' for this file which is there on IFS Directory path
then there is no such option available to move /copy it to the my intended
library/source physical ?

what i see is like below:-

Copy Object (CPY)

Object . . . . . . . . . . . . . OBJ > '/home/K21/Callstack.txt'
To directory . . . . . . . . . . TODIR '.'
To object . . . . . . . . . . . TOOBJ

Help is available for all IBM i commands. Place the cursor on any parameter and press F1. From there, one can press F2 to see all of the help for all of the parameters.

CPY is generally used to copy stream files within the IFS; not to copy from a stream file to the Db2 file system. That said, there is a much restricted way to do that: look at the help for the TOOBJ() parameter.

In general I would use CPYFRMSTMF to copy from a stream file to a Db2 file - like a source physical file.

I also recommend that you give VS Code for IBM i a try. It's free of charge, open source, is very actively being developed, and can be found here: https://marketplace.visualstudio.com/items?itemName=HalcyonTechLtd.code-for-ibmi


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.