Chapter Contents |
Previous |
Next |
SAS/ACCESS Software for PC File Formats: Reference |
Note: Only DBF files can be edited.
If you try to edit other PC file formats, SAS defaults to browse mode.
Using the FSVIEW Procedure to Browse PC File Data |
All of the SAS/FSP procedures work in a similar way and therefore only the FSVIEW procedure is shown. The FSVIEW procedure enables you to browse or edit data from a view descriptor or other SAS data set. The data are displayed in a tabular format similar to the format of the PRINT procedure output. You specify the PROC FSVIEW statement in the PROGRAM EDITOR window. Browsing Data in an FSVIEW Window creates a view descriptor, VLIB.ORDSHIPD, and specifies it in a PROC FSVIEW statement:
proc access dbms=dbf; create adlib.orders.access; path='c:\sasdemo\orders.dbf'; assign=yes; drop delete_flg specinstr; format shipped=date9.; list all; create vlib.ordshipd.view; select ordernum stocknum fabcharges shipto shipped processby; run; proc fsview data=vlib.ordshipd; run;
Browsing Data in an FSVIEW Window
Using the FSVIEW Procedure to Update PC File Data |
There are two ways to use the FSVIEW procedure to open
a window in editing mode. The most direct is to specify the
edit
command in the PROC FSVIEW statement:
proc fsview data=vlib.ordshipd edit; run;
If you open an FSVIEW window in browse mode and then decide to edit the DBF data, you can follow these steps to change to edit mode:
You can now edit the DBF data. For information about using PROC FSVIEW, select the Using this Window item from the Help menu.
Using the SAS Viewer on PC File Data |
When your file is saved, you can go to the SAS Explorer window and double-click on the libref.name of your new file, in this case, VLIB.ORDSHP. Doing so opens the VIEWTABLE window, as shown in Browsing or Editing Data through the VIEWTABLE Window:
You can browse or edit the PC file data from the VIEWTABLE window. For information about using this window, select the Using this Window item from the Help menu.
Browsing or Editing Data through the VIEWTABLE Window
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.