# S898XSMP.def: Samples User Defined Data # $Id: S898XSMP.def,v 1.13 2009/01/14 07:53:42 ldens Exp $ # ARCS: $Header: /u02/webapps/workbench/cvs/RDA_4/src/scripting/lib/modules/S898XSMP.def,v 1.13 2009/01/14 07:53:42 ldens Exp $ # # Change History # 20090114 LDE Change the copyright notice. =head1 NAME S898XSMP - Samples User Specified Data =head1 DESCRIPTION This module performs the extra user-defined samplings. Sample files are created only when the command produces output. You can add extra commands for collecting data. The report name is specified as the first argument. It must start with a letter. -X RDA::Extra add_smpl name command ... The list of extra collection requests can be obtained as follows: -X RDA::Extra list You can remove extra elements selectively from the list as follows: -X RDA::Extra del_extra pos ... C represents the position of the element in the list. Alternatively, the list can also be cleared completely by re-running the setup for the corresponding module. For example: -S XTRA =cut # Only execute the module in sampling mode if !getSetting('SMPL_CURRENT') return # Initialization var $FACTOR = getSetting('XSMP_FACTOR',1) # Execute user defined commands report extra loop $key (grepSetting('^EXTRA_SMPL')) {if getSetting($key,undef,true) {var ($ttl,@cmd) = split('\n',last) report $ttl call writeCommand(join(' ',@cmd),$FACTOR) } } =head1 SEE ALSO L =head1 COPYRIGHT NOTICE Copyright (c) 2002-2009, Oracle. All rights reserved. =head1 TRADEMARK NOTICE Oracle, JD Edwards, PeopleSoft, and Siebel are registered trademarks of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. =cut