×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Scott,
This data will be coming from an external server.
Each subdirectly will represent data from a different country.
The client has decided that they want a separate folder for each country.

I can create a loop to traverse each directory and use CPYTOSTMF to copy
the data and remove the file with DEL after the copy, but I was hoping for
a simple one line solution for the copy and for the delete.

Thanks,
On Mon, Jan 23, 2012 at 5:17 PM, Scott Klement
<midrange-l@xxxxxxxxxxxxxxxx>wrote:

hi Jeff,

Why would your text file be in multiple subdirectories? Surely there's
some program logic that controls where it goes? If it's truly assigned
to a directory /randomly/ (this seems very unlikely to me) then you're
going to need some way to identify your new files vs. existing ones. Do
you have a naming convention or other criteria that could be used to
distinguish it?

Can you explain the scenario a little better?!



On 1/23/2012 3:19 PM, Jeff Young wrote:
All,
I have a text file that will reside in multiple sub directories within
the
same parent that I need to copy to a DB2 flat file.
After the copy is complete, I would like to delete all of the files I
copies.

I do not think that there is any IBM CL Command that will do this, but
perhaps the GURU's here can point me to a Unix /AIX command that I can
run
from a CL program.

Thanks,


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

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2026 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.