On Jan 28, 2008, at 4:06 PM, Kelman, Tom wrote:
---------SNIP----------
---------------From Ed Gould ________________________
OK are we talking batch or TSO or ?
If its batch it should be easy to use the type 4(or 3x) SMF record.
The SMF record(s) contain the program name ie SAS or SASFSP or
SASGRAPH
Its just a matter of selecting the program(s) you want and then
listing from the record JOBNAME TIME & DATE and anything else
(including CPU time) just let you fingers do the waking through the
SMF manual it has record layouts for pretty much all IBM cut SMF
records. Some component(s) have their own format like DFSORT and you
*MAY* have to look into that specific product for information, Hint
here: You can use SAS or DFSORT or one of the programs (DAF as an
example off the CBTTAPE).
Ed
---------------------------------------------------------------------
-
Ed,
I may be wrong, but I don't think the SMF Type 3x records will work
here. The program in the SMF type 3x records would be the one
executed
by the "EXEC PGM=" JCL statement, ie the primary entry point. For SAS
that would be one of three programs (I think there are three)
determined
by the way you bundle SAS when it is installed. At my shop the
program
is SASB. So the program ID in the SMF type 3x records will always be
SASB. The SASFSP, SASGRAPH, etc. are determined by the particular SAS
statement that is coded in the SAS program. To get this
information one
needs to install the SVC that comes with SAS and set SAS up to record
its own SMF records for each SAS procedure executed. I think that has
already been mentioned in previous postings.
Tom Kelman
Tom:
I do NOT know a lot about SAS I have used it a few times to create
some reports. There are things you can do in SAS that some other
report writers cannot do so the preference is to do it in SAS.
My *VAGUE* recollection at one time there was a STC that printed
graphs out on an IBM color printer 3287(?). You would run SAS and
invoke SASGRAPH and that would somehow communicate with the STC. I
never did much with sasgraph other than to set up the STC.
If you are talking some components of SAS then I agree that SAS
cutting the SMF record is probably the only way.
If you are talking about SAS itself running as a batch job the type
(4 or 3X) is a reasonable way of catching it. Otherwise you are stuck
with SAS creating the SMF record.
Personally I am *LOATH* to let programs cut their own records. I have
seen (in the past) where they cut records and the layouts are like
say DFSORT records and use the same number and the program that then
processes the records abends because of this discrepancy. If I were
to do it. I would make sure that any records it cuts do *NOT* get
into the weekly or Monthly cumulative tapes.
Also probably you may have to make the SAS library APF authorized in
order to cut SMF records, not a good thing to let loose in the
general population (make sure its write protected).
Ed
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html