5. FILES › 5.3 VAX/VMS Monitor Information Area Files › 5.3.4 VMS MONITOR SCS File (DEMSCS) › 5.3.4.4 DEMSCS Retrieval Examples
5.3.4.4 DEMSCS Retrieval Examples
This section presents typical DEMSCS retrieval examples.
1. Plot the kilobytes sent and received over time for node
DEV1 yesterday during prime time (Zone 1).
DATA;
SET &pDEMX..DEMSCS01;
IF DATEPART(ENDTS)=TODAY()-1;
IF SYSID='DEV1';
IF ZONE=1;
PROC PLOT;
PLOT SCSKBSND*ENDTS='S';
PLOT SCSKBRCV*ENDTS='R';
2. Print the sum of kilobytes sent and received yesterday on
node DEV1.
DATA;
SET &pDEMX..DEMSCS01 END=EOF;
IF DATEPART(ENDTS)=TODAY()-1;
IF SYSID='DEV1';
RETAIN KB 0;
KB=KB+SCSKBSND+SCSKBRCV;
IF EOF THEN DO;
PUT KB;
END;