MVS Appendix 4: Alternate Data Browsing Method | |
You can use any of the data presentation tools available in the SAS System to examine your data. The example in this appendix describes how to use the PRINT procedure (which is in base SAS software) to view your data.
CLEAR
and
press ENTER or RETURN. If your OUTPUT window has
pull-down menus, select Edit and
Clear text. Note: For more about the SAS OUTPUT window and command lines and pull-down menus, see Shared Appendix 2: Navigating SAS Windows.
proc print data=level.table; run;
where level is detail
,
day
, week
, month
,
or year
, and table is the
name of the table whose data you want to view.
SUBMIT
and
press ENTER or RETURN. If your PROGRAM EDITOR
window has pull-down menus, select Locals
nd Submit. IT Service Vision displays the output in the OUTPUT WINDOW.
COMMAND
and then press ENTER or RETURN to get
pull-down menus.) In the Enter
external file to store text
field, type in the fully qualified name
(in single quotes) of the file to which you want
to direct the report, and then select OK.
If the volume of output is too much, you can revise the program to limit the amount of data shown.
CLEAR
and press ENTER or RETURN. If your
OUTPUT window has pull-down menus, select Edit
and Clear text. RECALL
and
press ENTER or RETURN. If your PROGRAM EDITOR
window has pull-down menus, select Locals
and Recall Text. i
and press ENTER or
RETURN. (If you do not have a line number, you
can turn line numbers on with the NUMS ON
command.) IT Service Vision inserts a line after
the first line. var variable1 variable2 ... variableN;
where variables 1-N are the names of variables whose data you want to see.
For example, the modified program might look like this:
proc print data=detail.xty70; var machine datetime inavg inmax inmin ; run;
Or, if you want to limit the listing to, say, twenty observations' worth of data, use this:
proc print data=detail.xty70 obs=20; var machine datetime inavg inmax inmin ; run;
where machine in ('machine1' 'machine2' ... 'machineN');
where machines 1-N are the names of machines whose data you want to see.
For example, the modified program might look like this:
proc print data=detail.xty70; where machine in ('AR40'); run;
Or, if you want to limit the listing to, say, twenty observations' worth of data, use this:
proc print data=detail.xty70 obs=20; where machine in ('AR40'); run;
where 'ddmmmyy:hh:mm:ss.cc'dt < datetime < 'ddmmmyy:hh:mm:ss.cc'dt;
where ddmmmyy:hh:mm:ss.cc represents the date (day, month, year) and time (hour, minute, second, and centisecond) of an endpoint of the range of data that you want to see.
For example, the modified program might look like this:
proc print data=detail.xty70; where '26nov95:00:00:00.00'dt < datetime < '26nov95:23:59:59.99'dt ; run;
Or, if you want to limit the listing to, say, twenty observations' worth of data, use this:
proc print data=detail.xty70 obs=20; where '26nov95:00:00:00.00'dt < datetime < '26nov95:23:59:59.99'dt ; run;
You can combine these methods, too. For example, you could use a program that looks like this:
proc print data=detail.xty70 obs=20; var machine datetime inavg inmax inmin ; where '26nov95:00:00:00.00'dt < datetime < '26nov95:23:59:59.99'dt and machine in ('AR40'); run;
COMMAND
and then press ENTER or RETURN to get
pull-down menus.) In the Enter
external file name to store text
field, type in the fully qualified name
of the file (in single quotes) to which you want
to direct the report, and then select OK.
For more about the PRINT procedure and some of the statements that you can use in the PRINT procedure, see "The PRINT Procedure" in the SAS Procedures Guide in the documentation for your current SAS release.
For a list of the other statements that you can use in the PRINT procedure, see "SAS Statements Used with Procedures" in the SAS Procedures Guide in the documentation for your current SAS release.
For details on the statements, see SAS Language Statements in the SAS Language Reference documentation for your current SAS release.