 




<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Answers &#187; ODSRCL</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/odsrcl/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Sat, 18 May 2013 21:33:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>How do I find out how many lines of source code are on the system?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-do-i-find-out-how-many-lines-of-source-code-are-on-the-system/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/how-do-i-find-out-how-many-lines-of-source-code-are-on-the-system/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 13:52:28 +0000</pubDate>
		<dc:creator>Eric Witham</dc:creator>
				<category><![CDATA[CL]]></category>
		<category><![CDATA[iSeries development]]></category>
		<category><![CDATA[ODCRTS]]></category>
		<category><![CDATA[ODSRCF]]></category>
		<category><![CDATA[ODSRCL]]></category>
		<category><![CDATA[ODSRCM]]></category>
		<category><![CDATA[QRPGLESRC]]></category>
		<category><![CDATA[QSYS.LIB]]></category>
		<category><![CDATA[RPGLE]]></category>
		<category><![CDATA[RTVNETA]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hello. I&#8217;m trying to write a program that will tell me how many lines of source code reside on our system. I figured out the first couple of steps, but it just gets more and more confusing along the way, and I really think there&#8217;s gotta be a better way to get the information i [...]]]></description>
				<content:encoded><![CDATA[<p>Hello.  I&#8217;m trying to write a program that will tell me how many lines of source code reside on our system.  I figured out the first couple of steps, but it just gets more and more confusing along the way, and I really think there&#8217;s gotta be a better way to get the information i need.  So far, this is what I have come up with:</p>
<p>1.  Get a list of all libraries in QSYS and put in an outfile.<br />
2.  Using the above output file, create a new one holding those records where the ODCRTS, Created on system, matches the system name from RTVNETA.<br />
3.  Read the output file from step 2 and for each library name value held in ODOBNM, Object name, do a DSPOBJD to get all *FILEs. Output to yet another file.<br />
4.  Once all library names are processed and the 3rd file is created, do a CPYF over the new one from step 3 and select records where the source file, source lib, and source member, (ODSRCF, ODSRCL, ODSRCM), are blank.<br />
5.  That should hold the source physical file names in all libraries.</p>
<p>From there, since I never was able to write the process of step 4 because of mass confusion, I thought that i&#8217;d have to read that file, and for every record, take the value in the object name which would be QRPGLESRC, and the library name, ERIC01, and copy the data into 1 main output file, and keep adding records.  I could break on the library name which seems like a good idea, and call an RPGLE.  There I&#8217;d read each record in that file and count the number of records, outputting the count amount, library name, and source pf name to a main output file that will eventually get reported off of.</p>
<p>QUESTIONS<br />
==============================================<br />
1.  Is there an easier way to retrieve a list of all Source Physical Files held in the system?<br />
2.  Is there any easier way to do what i need to do without creating a TON of output files, without getting confused so that i don&#8217;t pull every hair out of my head?</p>
<p>Please help me.<br />
Eric</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/how-do-i-find-out-how-many-lines-of-source-code-are-on-the-system/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</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/12 queries in 0.018 seconds using memcached
Object Caching 339/348 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-18 22:27:54 -->