<?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>WorkingScripts &#187; Debugging</title>
	<atom:link href="http://workingscripts.com/tag/debugging/feed/" rel="self" type="application/rss+xml" />
	<link>http://workingscripts.com</link>
	<description>The Stuff that Just Works</description>
	<lastBuildDate>Thu, 27 Oct 2011 17:03:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>PeopleSoft Debugging Techniques &#8211; Part I (Batch)</title>
		<link>http://workingscripts.com/2009/05/peoplesoft-debugging-techniques/</link>
		<comments>http://workingscripts.com/2009/05/peoplesoft-debugging-techniques/#comments</comments>
		<pubDate>Sat, 23 May 2009 21:36:34 +0000</pubDate>
		<dc:creator>Iouri Chadour</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PeopleSoft]]></category>
		<category><![CDATA[Debugging]]></category>

		<guid isPermaLink="false">http://workingscripts.com/?p=19</guid>
		<description><![CDATA[I would like to briefly describe some of the PeopleSoft  debugging techniques that I have used and found invaluable during development batch and online programs. SQR Debugging Flag Description -S Choose Append Option on Parameter List of Process Definition. All of your SQL statements – simple and clear + execution counts –debug(flag) Choose Append Option <a href='http://workingscripts.com/2009/05/peoplesoft-debugging-techniques/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>I would like to briefly describe some of the PeopleSoft  debugging techniques that I have used and found invaluable during development batch and online programs.</p>
<p><span style="font-size: medium;"><strong>SQR Debugging </strong></span></p>
<table border="1" cellspacing="0" cellpadding="2" width="431">
<tbody>
<tr>
<td width="97" valign="top"><strong>Flag</strong></td>
<td width="332" valign="top"><strong>Description</strong></td>
</tr>
<tr>
<td width="97" valign="top"><strong>-S</strong></td>
<td width="332" valign="top">Choose <strong>Append</strong> Option on <strong>Parameter List </strong>of Process Definition. All of your SQL statements – simple and clear + execution counts</td>
</tr>
<tr>
<td width="97" valign="top"><strong>–debug(flag)</strong></td>
<td width="332" valign="top">Choose <strong>Append</strong> Option on <strong>Parameter List </strong>of Process Definition. Put the following statements in your code</p>
<p><strong>#debug(flag) show<br />
#debug(flag) display </strong></p>
<p><strong> </strong>this will allow you to display definitions in your log. What is most useful this allows you to specify different levels of tracing using the <strong>flag – </strong>which can be letters A-Z. Specifying –<strong>debug(A-Z) </strong>on process definition it allows you to selectively display your debug statements.</td>
</tr>
</tbody>
</table>
<p><span style="font-size: medium;"><strong> </strong></span></p>
<p><span style="font-size: medium;"><strong>COBOL Debugging </strong></span></p>
<table style="height: 122px;" border="1" cellspacing="0" cellpadding="0" width="662">
<tbody>
<tr>
<td width="287" valign="top"><strong>Flag</strong></td>
<td width="381" valign="top"><strong>Description</strong></td>
</tr>
<tr>
<td width="287" valign="top">
<pre><code><strong>%%PRCSNAME%% %%DBTYPE%%/%%DBNAME%%/%%OPRID%%/
%%OPRPSWD%%/%%RUNCNTLID%%/%%INSTANCE%%//%%DBFLAG%%</strong></code></pre>
</td>
<td width="381" valign="top">Choose   <strong>Override</strong> Option on <strong>Parameter List </strong>of Process Definition. Copy   and paste Flags and run your process normally. You will see the trace file in   the Process Monitor</td>
</tr>
</tbody>
</table>
<p><span style="font-size: medium;"><strong>App Engine Debugging</strong></span></p>
<table border="1" cellspacing="0" cellpadding="0" width="668">
<tbody>
<tr>
<td width="203" valign="top"><strong>Flag</strong></td>
<td width="465" valign="top"><strong>Description</strong></td>
</tr>
<tr>
<td width="203" valign="top"><strong>-TRACE 131 </strong></td>
<td width="465" valign="top">Choose <strong>Append</strong> Option on <strong>Parameter List </strong>of   Process Definition.</p>
<p><strong>Required</strong> to start the app engine trace. Does not display much more than message log</td>
</tr>
<tr>
<td width="203" valign="top"><strong>-TRACE 131</strong></p>
<p><strong>-TOOLSTRACEPC 2048</strong></td>
<td width="465" valign="top">Choose <strong>Append</strong> Option on <strong>Parameter List </strong>of   Process Definition.</p>
<p>Adding <strong>TOOLSTRACEPC </strong>with a number causes detailed   PeopleCode code trace – be careful those can get very large and significantly   impact performance.</td>
</tr>
<tr>
<td width="203" valign="top"><strong>-TRACE 131 </strong></p>
<p><strong>-TOOLSTRACESQL 31</strong></td>
<td width="465" valign="top">Choose <strong>Append</strong> Option on <strong>Parameter List </strong>of   Process Definition.</p>
<p>Adding</p>
<p><strong>TOOLSTRACESQL </strong></p>
<p>with a number causes detailed SQL trace. This option   should always be used when tracing – app engine are all about SQL.</td>
</tr>
</tbody>
</table>
<p>App engine can also be debugged on the client. In order to do this you need to configure trace setting in the configuration manager:</p>
<p><a href="http://workingscripts.com/wp-content/uploads/2009/05/image.png"><img style="display: inline; border: 0px;" title="image" src="http://workingscripts.com/wp-content/uploads/2009/05/image-thumb.png" border="0" alt="image" width="425" height="322" /></a></p>
<p>Open App Engine program  in the Application Designer, press the Run Program icon and enter the Run Control ID and Process Instance Number (You should have an existing process instance and run control id defined online). Click ‘OK’ to run the App Engine process in two-tier mode.</p>
<p>If you would like to read about debugging in more details here is an excellent overview presentation by Kai Markowitz from CSU:</p>
<p><a title="http://www.scribd.com/doc/15756180/Tracing-Debugging-in-People-Tools-84x-CMS411" href="http://www.scribd.com/doc/15756180/Tracing-Debugging-in-People-Tools-84x-CMS411">http://www.scribd.com/doc/15756180/Tracing-Debugging-in-People-Tools-84x-CMS411</a></p>
<div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:08ec926f-3712-44f8-ad43-0a7f0419b519" class="wlWriterEditableSmartContent" style="display: inline; float: none; margin: 0px; padding: 0px;">del.icio.us Tags: <a rel="tag" href="http://del.icio.us/popular/Peoplesoft">Peoplesoft</a>,<a rel="tag" href="http://del.icio.us/popular/Debugging">Debugging</a>,<a rel="tag" href="http://del.icio.us/popular/AppEngine">AppEngine</a>,<a rel="tag" href="http://del.icio.us/popular/SQR">SQR</a>,<a rel="tag" href="http://del.icio.us/popular/PeopleCode">PeopleCode</a></div>
<p>Tags: <a rel="tag" href="http://technorati.com/tag/Peoplesoft">Peoplesoft</a> <a rel="tag" href="http://technorati.com/tag/Debugging">Debugging</a> <a rel="tag" href="http://technorati.com/tag/AppEngine">AppEngine</a> <a rel="tag" href="http://technorati.com/tag/SQR">SQR</a> <a rel="tag" href="http://technorati.com/tag/PeopleCode">PeopleCode</a></p>
]]></content:encoded>
			<wfw:commentRss>http://workingscripts.com/2009/05/peoplesoft-debugging-techniques/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

