 




<?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 convert spool file to programs in AS/400</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/how-to-convert-spool-file-to-programs-in-as400/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-convert-spool-file-to-programs-in-as400/</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-convert-spool-file-to-programs-in-as400/#comment-87053</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Tue, 25 Jan 2011 22:07:10 +0000</pubDate>
		<guid isPermaLink="false">#comment-87053</guid>
		<description><![CDATA[If you have a spooled file of the compile listing, the first thing I would do is use iSeries Navigator to drag/drop a copy into a PC text file. I&#039;d want to be certain I had that extra copy in a second system for safety.

Once in a PC text file, I might simply edit (another copy of) the listing to remove parts of the listing that aren&#039;t source. Depending on how big the program is, that might only take a few minutes. From a cleaned-up PC text file, you can copy it into a shared directory back on your AS/400. The CPYFRMSTMF command can then copy it into a source member.

Alternatively, you could use the CPYSPLF command to copy the spooled file into a simple physical file. You might then use SQL to DELETE lines you don&#039;t want. Deletion might get rid of all lines less than the RRN() of the first source line or greater than the RRN() of the last source line. You would also DELETE lines WHERE page heading constants were found. Finally, you might CREATE VIEW that only presnted a SUBSTR() of the print lines that included the source itself. You could then copy the VIEW into a source member.

Another alternative might be to use various Qshell or PASE utilities against either a spool file PC copy or the CPYSPLF physical file to clean up the listing.

There are a lot of ways to do it. The way for you will depend on what you feel comfortable doing.

Regardless, step #1 should be to make sure that you work with copies of the spooled file. Always keep track of the steps so you can quickly start from the beginning again.

Tom]]></description>
		<content:encoded><![CDATA[<p>If you have a spooled file of the compile listing, the first thing I would do is use iSeries Navigator to drag/drop a copy into a PC text file. I&#8217;d want to be certain I had that extra copy in a second system for safety.</p>
<p>Once in a PC text file, I might simply edit (another copy of) the listing to remove parts of the listing that aren&#8217;t source. Depending on how big the program is, that might only take a few minutes. From a cleaned-up PC text file, you can copy it into a shared directory back on your AS/400. The CPYFRMSTMF command can then copy it into a source member.</p>
<p>Alternatively, you could use the CPYSPLF command to copy the spooled file into a simple physical file. You might then use SQL to DELETE lines you don&#8217;t want. Deletion might get rid of all lines less than the RRN() of the first source line or greater than the RRN() of the last source line. You would also DELETE lines WHERE page heading constants were found. Finally, you might CREATE VIEW that only presnted a SUBSTR() of the print lines that included the source itself. You could then copy the VIEW into a source member.</p>
<p>Another alternative might be to use various Qshell or PASE utilities against either a spool file PC copy or the CPYSPLF physical file to clean up the listing.</p>
<p>There are a lot of ways to do it. The way for you will depend on what you feel comfortable doing.</p>
<p>Regardless, step #1 should be to make sure that you work with copies of the spooled file. Always keep track of the steps so you can quickly start from the beginning again.</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 3/10 queries in 0.040 seconds using memcached
Object Caching 267/273 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-19 14:09:39 -->