 




<?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: Automatic transfer of Data from AS/400 DDS Described file to Excel spreadsheet</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/automatic-transfer-of-data-from-as400-dds-described-file-to-excel-spreadsheet/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/automatic-transfer-of-data-from-as400-dds-described-file-to-excel-spreadsheet/</link>
	<description></description>
	<lastBuildDate>Sat, 25 May 2013 17:28:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: mcarpntr</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/automatic-transfer-of-data-from-as400-dds-described-file-to-excel-spreadsheet/#comment-73078</link>
		<dc:creator>mcarpntr</dc:creator>
		<pubDate>Wed, 27 Jan 2010 20:13:56 +0000</pubDate>
		<guid isPermaLink="false">#comment-73078</guid>
		<description><![CDATA[Hi TSCHMITZ,
Great tip! I have been serching for a solution like yours for a week. I am stumped and would be very grateful if you could send me an “example of both I5 and Excel side.” 

my email address is  &lt;a href=&quot;mailto:mcarpent@dimeo.com&quot; 

Thank you!]]></description>
		<content:encoded><![CDATA[<p>Hi TSCHMITZ,<br />
Great tip! I have been serching for a solution like yours for a week. I am stumped and would be very grateful if you could send me an “example of both I5 and Excel side.” </p>
<p>my email address is  &lt;a href=&#8221;mailto:mcarpent@dimeo.com&#8221; </p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: donethat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/automatic-transfer-of-data-from-as400-dds-described-file-to-excel-spreadsheet/#comment-73056</link>
		<dc:creator>donethat</dc:creator>
		<pubDate>Wed, 27 Jan 2010 12:47:53 +0000</pubDate>
		<guid isPermaLink="false">#comment-73056</guid>
		<description><![CDATA[Wow...I can sure use the VB script + Browser example above. Let me add my thanks for that.

Here&#039;s some tips/gotchas on using MS Query.

1) Think about usability before making the refresh automatic. You will lock user out of Excel when it opens. It can be slow, user has no idea why (no screen info other than hourglass) and can be extremely annoying.
2) Did you know you can paste any SQL statement into MS Query instead of using the GUI build? You can do all your development interactively on AS400 &amp; when done - paste &amp; go. And that SQL can be ANY complexity you dream up which becomes VERY powerful!
I have 300+ line SQL&#039;s with multiple joins, unions &amp; CTEs in Excel 2003 running with no problem.
3) Gotcha 1...you can use /*...*/ in MS Query to doc your work. BUT (hah) you cannot START the query with a comment. 
4) Gotcha 2...do not use a ; to end the statement.
5) Gotcha 3...make &quot;WITH NC&quot; (no commitment) the last line for all SELECT queries.

And yes TSCHMITZ - I would like to see your technique too. I make users go to the Data Menu to refresh but giving them a couple buttons is a nice touch. Please send to garylavery@aol.com. Very much appreciated.

Gary]]></description>
		<content:encoded><![CDATA[<p>Wow&#8230;I can sure use the VB script + Browser example above. Let me add my thanks for that.</p>
<p>Here&#8217;s some tips/gotchas on using MS Query.</p>
<p>1) Think about usability before making the refresh automatic. You will lock user out of Excel when it opens. It can be slow, user has no idea why (no screen info other than hourglass) and can be extremely annoying.<br />
2) Did you know you can paste any SQL statement into MS Query instead of using the GUI build? You can do all your development interactively on AS400 &amp; when done &#8211; paste &amp; go. And that SQL can be ANY complexity you dream up which becomes VERY powerful!<br />
I have 300+ line SQL&#8217;s with multiple joins, unions &amp; CTEs in Excel 2003 running with no problem.<br />
3) Gotcha 1&#8230;you can use /*&#8230;*/ in MS Query to doc your work. BUT (hah) you cannot START the query with a comment.<br />
4) Gotcha 2&#8230;do not use a ; to end the statement.<br />
5) Gotcha 3&#8230;make &#8220;WITH NC&#8221; (no commitment) the last line for all SELECT queries.</p>
<p>And yes TSCHMITZ &#8211; I would like to see your technique too. I make users go to the Data Menu to refresh but giving them a couple buttons is a nice touch. Please send to <a href="mailto:garylavery@aol.com">garylavery@aol.com</a>. Very much appreciated.</p>
<p>Gary</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nhewage</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/automatic-transfer-of-data-from-as400-dds-described-file-to-excel-spreadsheet/#comment-73030</link>
		<dc:creator>nhewage</dc:creator>
		<pubDate>Tue, 26 Jan 2010 17:37:25 +0000</pubDate>
		<guid isPermaLink="false">#comment-73030</guid>
		<description><![CDATA[Hi TSCHMITZ,

Please send it to me too.
Appreciate.

Thanks,
Hewage]]></description>
		<content:encoded><![CDATA[<p>Hi TSCHMITZ,</p>
<p>Please send it to me too.<br />
Appreciate.</p>
<p>Thanks,<br />
Hewage</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alicsc</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/automatic-transfer-of-data-from-as400-dds-described-file-to-excel-spreadsheet/#comment-73005</link>
		<dc:creator>alicsc</dc:creator>
		<pubDate>Mon, 25 Jan 2010 14:16:07 +0000</pubDate>
		<guid isPermaLink="false">#comment-73005</guid>
		<description><![CDATA[Hi TSCHMITZ,

Please send it to me.
Appreciate.

Thanks,
Ali]]></description>
		<content:encoded><![CDATA[<p>Hi TSCHMITZ,</p>
<p>Please send it to me.<br />
Appreciate.</p>
<p>Thanks,<br />
Ali</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chuckmool</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/automatic-transfer-of-data-from-as400-dds-described-file-to-excel-spreadsheet/#comment-51621</link>
		<dc:creator>chuckmool</dc:creator>
		<pubDate>Mon, 18 Feb 2008 06:54:54 +0000</pubDate>
		<guid isPermaLink="false">#comment-51621</guid>
		<description><![CDATA[Hi TSCHMITZ,
Great tip! I have been serching for a solution like yours for a week. I am stumped and would be very grateful if you could send me an &quot;example of both I5 and Excel side.&quot; 

&quot;If somebody has some interest using this technique, send me a private message and i”ll prepare a example of both I5 and Excel side.&quot;

my email address is mledra@rogers.com

Thank you!]]></description>
		<content:encoded><![CDATA[<p>Hi TSCHMITZ,<br />
Great tip! I have been serching for a solution like yours for a week. I am stumped and would be very grateful if you could send me an &#8220;example of both I5 and Excel side.&#8221; </p>
<p>&#8220;If somebody has some interest using this technique, send me a private message and i”ll prepare a example of both I5 and Excel side.&#8221;</p>
<p>my email address is <a href="mailto:mledra@rogers.com">mledra@rogers.com</a></p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bigmac46</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/automatic-transfer-of-data-from-as400-dds-described-file-to-excel-spreadsheet/#comment-51541</link>
		<dc:creator>bigmac46</dc:creator>
		<pubDate>Tue, 12 Feb 2008 17:22:56 +0000</pubDate>
		<guid isPermaLink="false">#comment-51541</guid>
		<description><![CDATA[&lt;pre&gt;
  PGM                                                        
        DCL        VAR(&amp;STRCMD) TYPE(*CHAR) LEN(55) +        
                     VALUE(&#039;C:\DOWNLOAD\JTESTFROM.DTF&#039;)      
        DCL        VAR(&amp;PCCMD) TYPE(*CHAR) LEN(55)           
        STRPCO     PCTA(*NO)                                 
        MONMSG     MSGID(IWS4010)                            
        STRPCCMD   PCCMD(&amp;STRCMD) PAUSE(*NO)                 
        CRTDTAARA DTAARA(QTEMP/STRPCO) TYPE(*CHAR) LEN(1) +  
            TEXT(&#039;START PCO DATA ARE&#039;)                       
        MONMSG CPF0000                                       
        STRPCO PCTA(*NO)                                     
        MONMSG MSGID(IWS4010)                                
        STRPCCMD   PCCMD(&#039;START C:\DOWNLOAD\JTEST.xls&#039;) +    
                     PAUSE(*NO)                              
&lt;/pre&gt;

ONCE THEY GET IN , IF IT NEEDS TO BE UPDATED: 
CLICK      DATA 
CLICK      TRANSFER FORM ISERIES AND SELECT THE TRANSFER TO IMPORT DATE STARTING WHERE YOU ARE POSITIONED IN THE SPREADSHEET  THEN RUN IT. 
OR GET OUT AND TAKE THE MENU OPTION TO RUN THE PROGRAM AGAIN]]></description>
		<content:encoded><![CDATA[<pre>
  PGM                                                        
        DCL        VAR(&amp;STRCMD) TYPE(*CHAR) LEN(55) +        
                     VALUE('C:\DOWNLOAD\JTESTFROM.DTF')      
        DCL        VAR(&amp;PCCMD) TYPE(*CHAR) LEN(55)           
        STRPCO     PCTA(*NO)                                 
        MONMSG     MSGID(IWS4010)                            
        STRPCCMD   PCCMD(&amp;STRCMD) PAUSE(*NO)                 
        CRTDTAARA DTAARA(QTEMP/STRPCO) TYPE(*CHAR) LEN(1) +  
            TEXT('START PCO DATA ARE')                       
        MONMSG CPF0000                                       
        STRPCO PCTA(*NO)                                     
        MONMSG MSGID(IWS4010)                                
        STRPCCMD   PCCMD('START C:\DOWNLOAD\JTEST.xls') +    
                     PAUSE(*NO)                              
</pre>
<p>ONCE THEY GET IN , IF IT NEEDS TO BE UPDATED:<br />
CLICK      DATA<br />
CLICK      TRANSFER FORM ISERIES AND SELECT THE TRANSFER TO IMPORT DATE STARTING WHERE YOU ARE POSITIONED IN THE SPREADSHEET  THEN RUN IT.<br />
OR GET OUT AND TAKE THE MENU OPTION TO RUN THE PROGRAM AGAIN</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tschmitz</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/automatic-transfer-of-data-from-as400-dds-described-file-to-excel-spreadsheet/#comment-51495</link>
		<dc:creator>tschmitz</dc:creator>
		<pubDate>Thu, 07 Feb 2008 14:38:51 +0000</pubDate>
		<guid isPermaLink="false">#comment-51495</guid>
		<description><![CDATA[Hi,

i personaly do not like automatic updates on open (MS_QUERY) because sometimes the excel file should be available when the user is not connected to the I5.

I prefer the following solution, working on request from the user :
1) the main excel sheet shows Timestamp of both Available DB from I5 and timestamp of implemented data from i5, int the following form :

				
Check new Update                             Available DB dated :		2008-02-06 13:44	Finished
				
Update Data                                        Implemented DB dated :	2008-02-06 13:44	
				

&quot;Check New update&quot; and &quot;Update data&quot; are action buttons inside excel.

&quot;Check New update&quot; data use a MS Query inside excel to control that :
1) I5 process is not running (if yes, update is not allowed and a pop-up message notify user to wait a bit)
2) TimeStamp of available DB is more recent than implemented one. If yes, update Timstamp of available data inside excel and visualy shows that with color.

Update data run the following process(es).
1) Clear actual data inside Excel
2) Remove Autofilters
3) Import new data
4) Synchronize Available and imported Timstamp
5) optional treament... like Pivot table regenaration...

If you put the full name of the 2 required MS Query variable inside one sheet of your excel file, you may reuse this excel file to import and make some basic B.O. application very quick.

On i5 job (assuming the data to be used in excel is generated in a batch process), the requirements are :
1)When Batch job start, flag the application with ACTIVE STATUS using Timestamp control file (will lock excel import for a while)
2) Let your update run
3) When batch stops, update the TImestamp control file and release status.

If somebody has some interest using this technique, send me a private message and i&quot;ll prepare a example of both I5 and Excel side.

Prerequesites are ODBC link available on the machine running the excel import.

Bye.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>i personaly do not like automatic updates on open (MS_QUERY) because sometimes the excel file should be available when the user is not connected to the I5.</p>
<p>I prefer the following solution, working on request from the user :<br />
1) the main excel sheet shows Timestamp of both Available DB from I5 and timestamp of implemented data from i5, int the following form :</p>
<p>Check new Update                             Available DB dated :		2008-02-06 13:44	Finished</p>
<p>Update Data                                        Implemented DB dated :	2008-02-06 13:44	</p>
<p>&#8220;Check New update&#8221; and &#8220;Update data&#8221; are action buttons inside excel.</p>
<p>&#8220;Check New update&#8221; data use a MS Query inside excel to control that :<br />
1) I5 process is not running (if yes, update is not allowed and a pop-up message notify user to wait a bit)<br />
2) TimeStamp of available DB is more recent than implemented one. If yes, update Timstamp of available data inside excel and visualy shows that with color.</p>
<p>Update data run the following process(es).<br />
1) Clear actual data inside Excel<br />
2) Remove Autofilters<br />
3) Import new data<br />
4) Synchronize Available and imported Timstamp<br />
5) optional treament&#8230; like Pivot table regenaration&#8230;</p>
<p>If you put the full name of the 2 required MS Query variable inside one sheet of your excel file, you may reuse this excel file to import and make some basic B.O. application very quick.</p>
<p>On i5 job (assuming the data to be used in excel is generated in a batch process), the requirements are :<br />
1)When Batch job start, flag the application with ACTIVE STATUS using Timestamp control file (will lock excel import for a while)<br />
2) Let your update run<br />
3) When batch stops, update the TImestamp control file and release status.</p>
<p>If somebody has some interest using this technique, send me a private message and i&#8221;ll prepare a example of both I5 and Excel side.</p>
<p>Prerequesites are ODBC link available on the machine running the excel import.</p>
<p>Bye.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jac</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/automatic-transfer-of-data-from-as400-dds-described-file-to-excel-spreadsheet/#comment-51467</link>
		<dc:creator>jac</dc:creator>
		<pubDate>Tue, 05 Feb 2008 15:38:19 +0000</pubDate>
		<guid isPermaLink="false">#comment-51467</guid>
		<description><![CDATA[I have been looking for a solution like this one for a while. I should have started here!

THIS IS GREAT!

Is there a possibility to have sample code for:

1. do the transfer using STRPPCMD 
2. open the spread sheet with another STRPCCMD 
3. then refresh as needed with data/transfer for Iseries option .]]></description>
		<content:encoded><![CDATA[<p>I have been looking for a solution like this one for a while. I should have started here!</p>
<p>THIS IS GREAT!</p>
<p>Is there a possibility to have sample code for:</p>
<p>1. do the transfer using STRPPCMD<br />
2. open the spread sheet with another STRPCCMD<br />
3. then refresh as needed with data/transfer for Iseries option .</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 3/10 queries in 0.033 seconds using memcached
Object Caching 365/371 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-25 20:23:49 -->