 




<?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: Ability to perform AS/400 file transfers in batch</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/ability-to-perform-as400-file-transfers-in-batch/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/ability-to-perform-as400-file-transfers-in-batch/</link>
	<description></description>
	<lastBuildDate>Sun, 26 May 2013 01:40:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: bigmac46</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/ability-to-perform-as400-file-transfers-in-batch/#comment-69496</link>
		<dc:creator>bigmac46</dc:creator>
		<pubDate>Mon, 26 Oct 2009 16:00:02 +0000</pubDate>
		<guid isPermaLink="false">#comment-69496</guid>
		<description><![CDATA[the back slashes are missing after all the  &quot;c:&quot;  and the word &quot;download&quot;.  
---- reverse the forwards in the following example(etc) .  ’C:/download/transfer.bat’]]></description>
		<content:encoded><![CDATA[<p>the back slashes are missing after all the  &#8220;c:&#8221;  and the word &#8220;download&#8221;.<br />
&#8212;- reverse the forwards in the following example(etc) .  ’C:/download/transfer.bat’</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bigmac46</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/ability-to-perform-as400-file-transfers-in-batch/#comment-69489</link>
		<dc:creator>bigmac46</dc:creator>
		<pubDate>Mon, 26 Oct 2009 14:17:01 +0000</pubDate>
		<guid isPermaLink="false">#comment-69489</guid>
		<description><![CDATA[This is a way to do it interactive. It is  used  to allow users to select info needed and  download files that have been created after they get a message the files are ready to download.  The only problem we have ever had is to recreate the needed pieces when a user gets a new PC. Then we copy from my PC or another user to put it back.   It may not be &quot;UP TO DATE&#039; , But it will work. If uou want to you can even use rundll to open the excel after download is complete. 
Hope this helps   
 
AS400 PGM 

   PGM                                            
   DCL        VAR(&amp;STRCMD) TYPE(*CHAR) LEN(55) +  
                  VALUE(&#039;C:downloadtransfer.bat&#039;)  
   DCL        VAR(&amp;PCCMD) TYPE(*CHAR) LEN(55)     
   STRPCO     PCTA(*NO)                 
   MONMSG     MSGID(IWS4010)            
   STRPCCMD   PCCMD(&amp;STRCMD) PAUSE(*NO) 
   ENDPGM 
Folder names are suggestions. 
Create “download” folder on PC, then
Go to command prompt, move to “downloads” folder and edit, save, and the exit “Transfer.bat”. 
   
Transfer.bat(contains the 1 line below
RFROMPCB /F C:downloadTRANSFERS.TXT
*******************
Then edit, save, and exit   
TRANSFERS.TXT(names and path to the transfers. I save them in download folder for consistency)   
c:downloadtran1.TFR 
c:downloadtran2.TFR 
c:downloadtran3.TFR 
c:downloadtran4.TFR 
c:downloadtran5.TFR 



If you search there is a way to do run this from a batch job. Search RUNRMTCMD. and look for &quot;running a PC application fron RPG. I have not tried the procedure yet because most of our application(as the one above) are on demand.]]></description>
		<content:encoded><![CDATA[<p>This is a way to do it interactive. It is  used  to allow users to select info needed and  download files that have been created after they get a message the files are ready to download.  The only problem we have ever had is to recreate the needed pieces when a user gets a new PC. Then we copy from my PC or another user to put it back.   It may not be &#8220;UP TO DATE&#8217; , But it will work. If uou want to you can even use rundll to open the excel after download is complete.<br />
Hope this helps   </p>
<p>AS400 PGM </p>
<p>   PGM<br />
   DCL        VAR(&amp;STRCMD) TYPE(*CHAR) LEN(55) +<br />
                  VALUE(&#8216;C:downloadtransfer.bat&#8217;)<br />
   DCL        VAR(&amp;PCCMD) TYPE(*CHAR) LEN(55)<br />
   STRPCO     PCTA(*NO)<br />
   MONMSG     MSGID(IWS4010)<br />
   STRPCCMD   PCCMD(&amp;STRCMD) PAUSE(*NO)<br />
   ENDPGM<br />
Folder names are suggestions.<br />
Create “download” folder on PC, then<br />
Go to command prompt, move to “downloads” folder and edit, save, and the exit “Transfer.bat”. </p>
<p>Transfer.bat(contains the 1 line below<br />
RFROMPCB /F C:downloadTRANSFERS.TXT<br />
*******************<br />
Then edit, save, and exit<br />
TRANSFERS.TXT(names and path to the transfers. I save them in download folder for consistency)<br />
c:downloadtran1.TFR<br />
c:downloadtran2.TFR<br />
c:downloadtran3.TFR<br />
c:downloadtran4.TFR<br />
c:downloadtran5.TFR </p>
<p>If you search there is a way to do run this from a batch job. Search RUNRMTCMD. and look for &#8220;running a PC application fron RPG. I have not tried the procedure yet because most of our application(as the one above) are on demand.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ronbender</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/ability-to-perform-as400-file-transfers-in-batch/#comment-39631</link>
		<dc:creator>ronbender</dc:creator>
		<pubDate>Tue, 28 Jun 2005 14:00:21 +0000</pubDate>
		<guid isPermaLink="false">#comment-39631</guid>
		<description><![CDATA[I agree with DPSFizz, to FTP the file but you can&#039;t get it in a CSV format on the PC server.  Maybe if you FTP with the extention .CSV it will open correctly in excel.    ]]></description>
		<content:encoded><![CDATA[<p>I agree with DPSFizz, to FTP the file but you can&#8217;t get it in a CSV format on the PC server.  Maybe if you FTP with the extention .CSV it will open correctly in excel.    </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dpsfizz</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/ability-to-perform-as400-file-transfers-in-batch/#comment-39632</link>
		<dc:creator>dpsfizz</dc:creator>
		<pubDate>Thu, 09 Jun 2005 11:23:06 +0000</pubDate>
		<guid isPermaLink="false">#comment-39632</guid>
		<description><![CDATA[You can also create a CL and run it in batch.  Here are a couple of examples regarding CSV files using CPYTOIMPF (from www.as400pro.com):

========================
Converting EBCDIC to CSV
 
Try using CPYTOIMPF to put in a folder.

Something like

CPYTOIMPF  FROMFILE(YourLib/YourFile)         +
           TOSTMF(/QDLS/YourFolder/YourPCDoc) +
           RCDDLM(*CRLF)                      +
           DTAFMT(*DLM)                       +
           STRDLM(&#039;&quot;&#039;)                        +
           FLDDLM(&#039;,&#039;)                        +
           DECPNT(*PERIOD)

This creates a CSV file in the folder. Then FTP this file.  

===============================
Copy a file to an CSV file
 
CPYTOIMPF  FROMFILE(STLIB/STATEP2) +
              TOSTMF(&#039;QDLS/TXT/STATEP2&#039;) RCDDLM(*CRLF)

 COPY       OBJ(&#039;QDLS/TXT/STATEP2&#039;) +
              TOOBJ(&#039;QDLS/TXT/STATEP2.CSV&#039;) +
              TOCODEPAGE(*PCASCII) DTAFMT(*TEXT) 

]]></description>
		<content:encoded><![CDATA[<p>You can also create a CL and run it in batch.  Here are a couple of examples regarding CSV files using CPYTOIMPF (from <a href="http://www.as400pro.com" rel="nofollow">http://www.as400pro.com</a>):</p>
<p>========================<br />
Converting EBCDIC to CSV</p>
<p>Try using CPYTOIMPF to put in a folder.</p>
<p>Something like</p>
<p>CPYTOIMPF  FROMFILE(YourLib/YourFile)         +<br />
           TOSTMF(/QDLS/YourFolder/YourPCDoc) +<br />
           RCDDLM(*CRLF)                      +<br />
           DTAFMT(*DLM)                       +<br />
           STRDLM(&#8216;&#8221;&#8216;)                        +<br />
           FLDDLM(&#8216;,&#8217;)                        +<br />
           DECPNT(*PERIOD)</p>
<p>This creates a CSV file in the folder. Then FTP this file.  </p>
<p>===============================<br />
Copy a file to an CSV file</p>
<p>CPYTOIMPF  FROMFILE(STLIB/STATEP2) +<br />
              TOSTMF(&#8216;QDLS/TXT/STATEP2&#8242;) RCDDLM(*CRLF)</p>
<p> COPY       OBJ(&#8216;QDLS/TXT/STATEP2&#8242;) +<br />
              TOOBJ(&#8216;QDLS/TXT/STATEP2.CSV&#8217;) +<br />
              TOCODEPAGE(*PCASCII) DTAFMT(*TEXT) </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.048 seconds using memcached
Object Caching 309/315 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-26 07:23:39 -->