 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: how to copy tables between two libraries without repeat cpyf command using script?</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/how-to-copy-tables-between-two-libraries-without-repeat-cpyf-command-using-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-copy-tables-between-two-libraries-without-repeat-cpyf-command-using-script/</link>
	<description></description>
	<lastBuildDate>Sun, 19 May 2013 03:14:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-copy-tables-between-two-libraries-without-repeat-cpyf-command-using-script/#comment-105146</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Mon, 19 Mar 2012 23:27:20 +0000</pubDate>
		<guid isPermaLink="false">#comment-105146</guid>
		<description><![CDATA[&lt;i&gt;...is there a script to copy multible tables without repeat cpyf command?&lt;/i&gt;

First, you can create any &quot;script&quot; you want. It&#039;s likely that no one has ever created a script that would copy &lt;b&gt;your&lt;/b&gt; files, though. Copying files from one library to another can take some work because there are many types of files. Different types may need different handling.

However, under some lucky circumstances, you can use a single command:
&lt;pre&gt;CPY OBJ( &#039;/qsys.lib/mylib.lib/abc*.file&#039; )
    TODIR( &#039;/qsys.lib/newlib.lib&#039; )
    SUBTREE(*ALL)&lt;/pre&gt;
That will copy all files with names beginning &quot;ABC&quot; in library MYLIB to a library named NEWLIB. At least, it will copy many such files -- some file types don&#039;t copy easily.

I strongly suggest that you run a series of tests of the CPY command before trying to copy sets of files with it. It might teach a lot about things that might trip up any &quot;script&quot;.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>&#8230;is there a script to copy multible tables without repeat cpyf command?</i></p>
<p>First, you can create any &#8220;script&#8221; you want. It&#8217;s likely that no one has ever created a script that would copy <b>your</b> files, though. Copying files from one library to another can take some work because there are many types of files. Different types may need different handling.</p>
<p>However, under some lucky circumstances, you can use a single command:</p>
<pre>CPY OBJ( '/qsys.lib/mylib.lib/abc*.file' )
    TODIR( '/qsys.lib/newlib.lib' )
    SUBTREE(*ALL)</pre>
<p>That will copy all files with names beginning &#8220;ABC&#8221; in library MYLIB to a library named NEWLIB. At least, it will copy many such files &#8212; some file types don&#8217;t copy easily.</p>
<p>I strongly suggest that you run a series of tests of the CPY command before trying to copy sets of files with it. It might teach a lot about things that might trip up any &#8220;script&#8221;.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: woodengineer</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-copy-tables-between-two-libraries-without-repeat-cpyf-command-using-script/#comment-105142</link>
		<dc:creator>woodengineer</dc:creator>
		<pubDate>Mon, 19 Mar 2012 17:23:26 +0000</pubDate>
		<guid isPermaLink="false">#comment-105142</guid>
		<description><![CDATA[My apologies . . . that shoud have said &quot;put the table names in a data base file&quot;.]]></description>
		<content:encoded><![CDATA[<p>My apologies . . . that shoud have said &#8220;put the table names in a data base file&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: woodengineer</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-copy-tables-between-two-libraries-without-repeat-cpyf-command-using-script/#comment-105141</link>
		<dc:creator>woodengineer</dc:creator>
		<pubDate>Mon, 19 Mar 2012 17:21:21 +0000</pubDate>
		<guid isPermaLink="false">#comment-105141</guid>
		<description><![CDATA[You could put the library names in a data base file, then ready that file in a CL program and issue a CPYF for each record.]]></description>
		<content:encoded><![CDATA[<p>You could put the library names in a data base file, then ready that file in a CL program and issue a CPYF for each record.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/9 queries in 0.013 seconds using memcached
Object Caching 296/299 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-19 17:23:04 -->