<?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>Mon, 07 Jun 2010 20:06:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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&#160; 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 on Parameter List of Process [...]]]></description>
			<content:encoded><![CDATA[<p>I would like to briefly describe some of the PeopleSoft&#160; debugging techniques that I have used and found invaluable during development batch and online programs. </p>
<p><font size="4"><strong>SQR Debugging </strong></font></p>
<table cellspacing="0" cellpadding="2" width="431" border="1">
<tbody>
<tr>
<td valign="top" width="97">
<p align="center"><strong>Flag</strong></p>
</td>
<td valign="top" width="332">
<p align="center"><strong>Description</strong></p>
</td>
</tr>
<tr>
<td valign="top" width="97"><strong>-S</strong></td>
<td valign="top" width="332">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 valign="top" width="97"><strong>–debug(flag)</strong></td>
<td valign="top" width="332">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            </p>
<p></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><font size="4"><strong></strong></font></p>
<p><font size="4"><strong>COBOL Debugging </strong></font></p>
<table cellspacing="0" cellpadding="2" width="451" border="1">
<tbody>
<tr>
<td valign="top" width="253">
<p align="center"><strong>Flag</strong></p>
</td>
<td valign="top" width="196">
<p align="center"><strong>Description</strong></p>
</td>
</tr>
<tr>
<td valign="top" width="253">
<pre><strong><code>%%PRCSNAME%% %%DBTYPE%%/</code><code>%%DBNAME%%/</code></strong></pre>
<pre><strong><code>%%OPRID%%/</code></strong></pre>
<pre><code><strong>%%OPRPSWD%%/%%RUNCNTLID%%/</strong></code></pre>
<pre><code><strong>%%INSTANCE%%//%%DBFLAG%%</strong></code></pre>
</td>
<td valign="top" width="196">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>&#160;</p>
<p><font size="4"><strong>App Engine Debugging </strong></font></p>
<table cellspacing="0" cellpadding="2" width="400" border="1">
<tbody>
<tr>
<td valign="top" width="165">
<p align="center"><strong>Flag</strong></p>
</td>
<td valign="top" width="235">
<p align="center"><strong>Description</strong></p>
</td>
</tr>
<tr>
<td valign="top" width="165">
<p><strong>-TRACE 131 </strong></p>
<pre><code><strong></strong></code></pre>
</td>
<td valign="top" width="235">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>
</tbody>
</table>
<table cellspacing="0" cellpadding="2" width="402" border="1">
<tbody>
<tr>
<td valign="top" width="165">
<p><strong>-TRACE 131</strong></p>
<p><strong>-TOOLSTRACEPC 2048</strong></p>
<pre><code><strong></strong></code></pre>
</td>
<td valign="top" width="235">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>
</tbody>
</table>
<table cellspacing="0" cellpadding="2" width="402" border="1">
<tbody>
<tr>
<td valign="top" width="165">
<p><strong>-TRACE 131 </strong></p>
<p><strong>-TOOLSTRACESQL 31</strong></p>
<pre><code><strong></strong></code></pre>
</td>
<td valign="top" width="235">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>&#160;</p>
<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 title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="322" alt="image" src="http://workingscripts.com/wp-content/uploads/2009/05/image-thumb.png" width="425" border="0" /></a> </p>
<p>&#160;</p>
<p>Open App Engine program&#160; 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>&#160;</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>
</p>
<div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:08ec926f-3712-44f8-ad43-0a7f0419b519" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">del.icio.us Tags: <a href="http://del.icio.us/popular/Peoplesoft" rel="tag">Peoplesoft</a>,<a href="http://del.icio.us/popular/Debugging" rel="tag">Debugging</a>,<a href="http://del.icio.us/popular/AppEngine" rel="tag">AppEngine</a>,<a href="http://del.icio.us/popular/SQR" rel="tag">SQR</a>,<a href="http://del.icio.us/popular/PeopleCode" rel="tag">PeopleCode</a></div>
</p>
<p>Tags: <a href="http://technorati.com/tag/Peoplesoft" rel="tag">Peoplesoft</a> <a href="http://technorati.com/tag/Debugging" rel="tag">Debugging</a> <a href="http://technorati.com/tag/AppEngine" rel="tag">AppEngine</a> <a href="http://technorati.com/tag/SQR" rel="tag">SQR</a> <a href="http://technorati.com/tag/PeopleCode" rel="tag">PeopleCode</a></p>
]]></content:encoded>
			<wfw:commentRss>http://workingscripts.com/2009/05/peoplesoft-debugging-techniques/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
