On 05-Apr-2012 01:04 , Dunk, Michael - Bognor wrote:
<<SNIP>> need a simple way to get the job name and user profile from
within the SQL procedure to complete the data to include a standard
record update stamp.
E.g. is there an elegant way of accessing Retrieve Job Attributes
(RTVJOBA) from within SPL?
Consider that details about the current job [as accessed by RTVJOBA]
may not be as informative as some other data could, because the work may
be performed in a generic server job. Also the logging\journaling
already records that information, the server job name, so recording that
again in the row data is redundant.
If any of the CLIENT special registers are set with something
meaningful, e.g. CLIENT_WRKSTNNAME could be set as desired, then just
SET a variable from whichever special register; i.e. just as might be
done with data from either the SESSION_USER or SYSTEM_USER special
This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact