There is a code which:
//STEP020 EXEC SAS,SASAUTO='RSM.SAS.MACLIB'
//SASLIST DD SYSOUT=(,),OUTPUT=(*.RPT1)
//ALRTLOG DD DSN=RSM.POOLALRT.LOG,DISP=MOD
//EMAIL DD DSN=&&EMAIL,DISP=(,PASS),STORCLAS=DATA,
// SPACE=(TRK,(1,1)),RECFM=FB,LRECL=80
//TSOSE DD DSN=&&TSOE,DISP=(,PASS),STORCLAS=DATA,
// SPACE=(TRK,(1,1)),RECFM=FB,LRECL=80
//DCOLLECT DD DSN=&&DCOLLECT,DISP=(OLD,DELETE)
//SYSIN DD DSN=ACSRXG.STORAGE.CNTL(POOLIMS),DISP=SHR
Here POOLIMS is
Options NOSource;
Data VRECS;
Infile DCOLLECT;
%VRECS;
If use eq 'SMS'; /* only keep sms volumes */
Proc Sort; By Storgrp;
Proc Summary;
Class Storgrp;
Var Aloc_GB Capa_Gb Pct_Util Free_Cyl LExt_Cyl;
Id date time;
Output Out=VOLSUM
N=Num_Vols
Max(LExt_Cyl) = Larg_Ext
Mean(Pct_Util Free_Cyl)= MeanPct MeanFree
Sum(Capa_GB Aloc_Gb) = Sum_Capa Sum_Aloc;
/*---------------------------------------------------------------*/
Data Storgrp;
Set VOLSUM;
File ALRTLOG;
%VOLSLAI; /* SLA_Util for storage group set in macro */
If MeanPct < SLA_Util Then Delete;
Put @01 Date date9.0
@11 Time time5.0
@18 Storgrp $8.0
@27 SLA_Util 3.0
@32 MeanPct 3.0
@38 '/'
@41 Num_Vols 3.0
@48 Sum_Capa 4.0
@54 Sum_Aloc 4.0
@60 MeanFree 4.0
@67 Larg_Ext 4.0 ;
.....................
and you can see VOLSLAI in the previous post where I made the change in SLA_UTIL but the code i think is not taking it because I am not getting an alert
If MeanPct < SLA_Util Then Delete;
The remaning part of POOLIMS is to shoot an email but the input is not there so it doesnt shoot...i.e. I think it doesn'ttake the SLA_UTIL properly...