260 likes | 407 Views
SAS Batch Portal. Data Collection and Monitoring Application for SAS Batch Jobs. Concept, Design & Programming by Bernard Nicoll , CGI ( bernard.nicoll@cgi.com ). Presentation at the Montreal SAS User Group, Sept 28 th , 2004. Are you faced with the classic case of the ‘ W5 ’ ?.
E N D
SAS Batch Portal Data Collection and Monitoring Application for SAS Batch Jobs Concept, Design & Programming by Bernard Nicoll,CGI (bernard.nicoll@cgi.com) Presentation at the Montreal SAS User Group, Sept 28th, 2004
Are you faced with the classic case of the ‘W5’? • What is the Status of my Production cycle ? • Why did my Job(s) fail ? • When did this happen ? • Where can I find the SAS Logs/List & Outputs ? • Who has met their completion commitment ? Well, don’t ask me ! Find out for yourself with … SAS/BP
SAS/BP Features & Benefits • Realtime monitoring of SAS Batch Jobs • Capture #Obs, Vars, Elaps, Lib info, Index, etc. • Retrieval of Process Script, Pgm, Log, List, ODS • Metrics (Elaps, Volume Trend, %Met, etc.) • Browse SAS Tables and Attributes • All features accessible through a Web Browser • Email/Pager Notification when Job fails • Program Step Documentation • Maintenance & Support
Requirements for running SAS/BP SAS/Share SAS/IntrNet (optional) Standardize your Application by defining an Environment, a Component, and a Process Command Script that calls your SAS Process Run Script that defines your SAS Process (Libname, Filename, Options, %Let=… etc.) The main SAS Program The insertion of Macro ‘%STEPLOG’ after each Data Step and Procedure in the source program
Parameters used by the %STEPLOG Macro • Step= give a brief description of the step or procedure * • Libref= + Mem= capture Library & Member information • Col=Y capture Variable Attributes (length, format, Idx, etc.) • Fileref= capture the information of an external file • Ext_Recs=Y capture record counts of an external file • Audit=Y identify this step as part of a critical path • Parm= free format field to be displayed in the Remarks • Bypass_Error=Y ignore warnings/errors in the step • Nobs= store the Row count in a macro variable • Sql_Count=Y extract Row counts from a DBMS ** * Step= is the only required parameter, all others are optional ** Not required if running the default version of SAS/BP
Let’s go Live ! Switching to the Live Demo…
Oh No … !! Email to bernard.nicoll@cgi.com