 




<?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: CPYFRMIMPF Issue</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/cpyfrmimpf-issue-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/cpyfrmimpf-issue-2/</link>
	<description></description>
	<lastBuildDate>Tue, 21 May 2013 23:11:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cpyfrmimpf-issue-2/#comment-101082</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Sat, 31 Dec 2011 10:10:16 +0000</pubDate>
		<guid isPermaLink="false">#comment-101082</guid>
		<description><![CDATA[Okay, so it should start with &#039;how was it &quot;exported&quot;?&#039;

&lt;i&gt;I just see them as all data blank..&lt;/i&gt;

How are you viewing the file? Are all of the fields character fields? There are no numeric fields in FUELMAST?

Does the number of blank records match the number of exported records?

If you run under debug, do any hints show up? You will probably need to use STRDBG UPDPROD(*YES).

You might also use CPYFRMIMPF FROMRCD(*FIRST 1) so that only one import record is processed. That will shorten any test runs.

You might also use CPYFRMIMPF ERRRCDFILE(MYLIB/ERRF) so that any error records will be copied to an error file. After a test, check to see if any error records were logged.

Tom]]></description>
		<content:encoded><![CDATA[<p>Okay, so it should start with &#8216;how was it &#8220;exported&#8221;?&#8217;</p>
<p><i>I just see them as all data blank..</i></p>
<p>How are you viewing the file? Are all of the fields character fields? There are no numeric fields in FUELMAST?</p>
<p>Does the number of blank records match the number of exported records?</p>
<p>If you run under debug, do any hints show up? You will probably need to use STRDBG UPDPROD(*YES).</p>
<p>You might also use CPYFRMIMPF FROMRCD(*FIRST 1) so that only one import record is processed. That will shorten any test runs.</p>
<p>You might also use CPYFRMIMPF ERRRCDFILE(MYLIB/ERRF) so that any error records will be copied to an error file. After a test, check to see if any error records were logged.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cpyfrmimpf-issue-2/#comment-101081</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Sat, 31 Dec 2011 09:18:07 +0000</pubDate>
		<guid isPermaLink="false">#comment-101081</guid>
		<description><![CDATA[&lt;i&gt;...Isn’t the place the data is imported from or to..&lt;/i&gt;

Sheesh! There you go again, forgetting to remind me to get new glasses! You really gotta do something about that memory.

Ah, well... it definitely makes a lot more sense that way. I should have actually read your first response and noticed it then. Once something is misread, it&#039;s almost impossible to see it correctly until someone else points it out. The mind is marvelous, but it can foul up spectacularly.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>&#8230;Isn’t the place the data is imported from or to..</i></p>
<p>Sheesh! There you go again, forgetting to remind me to get new glasses! You really gotta do something about that memory.</p>
<p>Ah, well&#8230; it definitely makes a lot more sense that way. I should have actually read your first response and noticed it then. Once something is misread, it&#8217;s almost impossible to see it correctly until someone else points it out. The mind is marvelous, but it can foul up spectacularly.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cpyfrmimpf-issue-2/#comment-101073</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Sat, 31 Dec 2011 07:44:02 +0000</pubDate>
		<guid isPermaLink="false">#comment-101073</guid>
		<description><![CDATA[Tom 

FLDDFNFILE(MYLIB/QDDSSRC member DATA)
Isn&#039;t the place the data is imported from or to
It&#039;s the member that contains a description of the file structure of the to file.
Kinda like using an .fdf file when uploading in client access.

Phil]]></description>
		<content:encoded><![CDATA[<p>Tom </p>
<p>FLDDFNFILE(MYLIB/QDDSSRC member DATA)<br />
Isn&#8217;t the place the data is imported from or to<br />
It&#8217;s the member that contains a description of the file structure of the to file.<br />
Kinda like using an .fdf file when uploading in client access.</p>
<p>Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cpyfrmimpf-issue-2/#comment-101059</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Sat, 31 Dec 2011 01:46:41 +0000</pubDate>
		<guid isPermaLink="false">#comment-101059</guid>
		<description><![CDATA[I&#039;d wonder first if this really is an &quot;import&quot; file. That is, how was it &quot;exported&quot;?

Tom]]></description>
		<content:encoded><![CDATA[<p>I&#8217;d wonder first if this really is an &#8220;import&#8221; file. That is, how was it &#8220;exported&#8221;?</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cpyfrmimpf-issue-2/#comment-101057</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Sat, 31 Dec 2011 01:43:13 +0000</pubDate>
		<guid isPermaLink="false">#comment-101057</guid>
		<description><![CDATA[The CPYTOIMPF and CPYFRMIMPF commands are generally intended to provide the DB2 EXPORT and IMPORT functions that are found in DB2 on other platforms. As long as general DB2 database concepts are held in mind, their behavior can be a little more comprehensible. (They can definitely throw some curves at times.)

Their purpose is somewhat described by this statement from CPYFRMIMPF help text:&lt;ul&gt;
	&lt;li&gt;The term import file is used to describe a file created for purposes of copying data between heterogeneous databases.&lt;/li&gt;
&lt;/ul&gt;

But this question gets a little confused when the file name is QDDSSRC because it implies that this doesn&#039;t really involve a &quot;database&quot; file but a source file instead. A source file has some particular characteristics that might need to be taken into account.

Maybe if the details of how data got into the oddly defined streamfile is given, an appropriate CPYFRMIMPF command can be built.

Tom]]></description>
		<content:encoded><![CDATA[<p>The CPYTOIMPF and CPYFRMIMPF commands are generally intended to provide the DB2 EXPORT and IMPORT functions that are found in DB2 on other platforms. As long as general DB2 database concepts are held in mind, their behavior can be a little more comprehensible. (They can definitely throw some curves at times.)</p>
<p>Their purpose is somewhat described by this statement from CPYFRMIMPF help text:
<ul>
<li>The term import file is used to describe a file created for purposes of copying data between heterogeneous databases.</li>
</ul>
<p>But this question gets a little confused when the file name is QDDSSRC because it implies that this doesn&#8217;t really involve a &#8220;database&#8221; file but a source file instead. A source file has some particular characteristics that might need to be taken into account.</p>
<p>Maybe if the details of how data got into the oddly defined streamfile is given, an appropriate CPYFRMIMPF command can be built.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cpyfrmimpf-issue-2/#comment-100978</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Wed, 28 Dec 2011 13:25:07 +0000</pubDate>
		<guid isPermaLink="false">#comment-100978</guid>
		<description><![CDATA[So Tom&#039;s usually right, try CPYFRMSTMF

The method I described only works with char fields and positive zoned fields.  Not so useful.

Phil]]></description>
		<content:encoded><![CDATA[<p>So Tom&#8217;s usually right, try CPYFRMSTMF</p>
<p>The method I described only works with char fields and positive zoned fields.  Not so useful.</p>
<p>Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cpyfrmimpf-issue-2/#comment-100977</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Wed, 28 Dec 2011 12:53:44 +0000</pubDate>
		<guid isPermaLink="false">#comment-100977</guid>
		<description><![CDATA[Tom
I think Ron&#039;s trying to copy a fixed length text file into CEIOH/FUELMAST
Since it&#039;s fixed length it has no delimiters.
With it&#039;s structure described in
 FLDDFNFILE(MYLIB/QDDSSRC member DATA)
apparently he&#039;s getting blank lines..

Ron  -  check the job log - it never helps but gives me time to think about it.  It might have a list of error.s

I usually copy this type of file to a flat file on the 400 then use CPYF with fmt *NOCHK  to populate the target file.
.
Phil]]></description>
		<content:encoded><![CDATA[<p>Tom<br />
I think Ron&#8217;s trying to copy a fixed length text file into CEIOH/FUELMAST<br />
Since it&#8217;s fixed length it has no delimiters.<br />
With it&#8217;s structure described in<br />
 FLDDFNFILE(MYLIB/QDDSSRC member DATA)<br />
apparently he&#8217;s getting blank lines..</p>
<p>Ron  &#8211;  check the job log &#8211; it never helps but gives me time to think about it.  It might have a list of error.s</p>
<p>I usually copy this type of file to a flat file on the 400 then use CPYF with fmt *NOCHK  to populate the target file.<br />
.<br />
Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cpyfrmimpf-issue-2/#comment-100973</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Wed, 28 Dec 2011 12:39:38 +0000</pubDate>
		<guid isPermaLink="false">#comment-100973</guid>
		<description><![CDATA[If you are using DTAFMT(*FIXED) and STRDLM(*NONE) and STRESCCHR(*NONE), why are you using CPYFRMIMPF? Why don&#039;t you use CPYFRMSTMF?

And if you&#039;re copying into a source file, why are you using CPYFRMIMPF instead of CPYFRMSTMF?

And why would you have a streamfile with fixed-length of 468 if you&#039;re really intending to copy into a DDS source file? No DDS uses records that long.

Working up an answer might be easier if those are made clear.

Tom]]></description>
		<content:encoded><![CDATA[<p>If you are using DTAFMT(*FIXED) and STRDLM(*NONE) and STRESCCHR(*NONE), why are you using CPYFRMIMPF? Why don&#8217;t you use CPYFRMSTMF?</p>
<p>And if you&#8217;re copying into a source file, why are you using CPYFRMIMPF instead of CPYFRMSTMF?</p>
<p>And why would you have a streamfile with fixed-length of 468 if you&#8217;re really intending to copy into a DDS source file? No DDS uses records that long.</p>
<p>Working up an answer might be easier if those are made clear.</p>
<p>Tom</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.019 seconds using memcached
Object Caching 366/369 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-22 00:08:30 -->