Thursday 25 July 2013

Setting Trace for an Application Engine

Application Engine Trace
  • Navigate to PeopleTools >> Process Scheduler >> Processes.

  • Click "Override Options" tab. Select "Parameter List" drop down and select "Append". We can select the Trace values based on requirement. Few trace options are as below.
    • -TRACE 7
    • -TOOLSTRACEPC 4044
    • -TOOLSTRACESQL 31
    • -TRACE 135






Save the Definition and this program will be traced each time it is run, until trace setting is removed and set parameter list back to None.  For normal program tracing use following trace settings:

-TRACE 7 -TOOLSTRACEPC 4044 

 
The above settings have equivelent settings in psprcs.cfg:

TraceAE=    -TRACE  output goes into Application Engine Trace (.AET)
TracePC=    -TOOLSTRACEPC  output goes into the PeopleTools trace file (.trc)
TraceSQL=  -TOOLSTRACESQL output ALSO goes into the PeopleTools trace file (.trc)

Again, depending on what the program is doing, most commonly we'd use the -TRACE & -TOOLSTRACEPC together. The only time I use the -TOOLSTRACESQL is when we're looking for a problem with the psae program itself.

NOTE: Using Both the -TOOLSTRACEPC & -TOOLSTRACESQL together should only be done when required, as the output from both go into the same file, making it very large and difficult to read.


No comments:

Post a Comment