Sample 31960: Displaying tab-delimited text files within a SAS/AF® Frame
The SAS/AF environment has several controls that can be used to display data. One of these controls, the External File Viewer, can be used to show the contents of an ASCII file. However, the External File Viewer control will not render the ASCII tab character due to portability issues between operating systems.
As an alternative, you can use the Text Pad control within your Frame. The Text Pad control functions as a text-entry object that supports multiple lines of information. Combining this support with the file functions that are available in SCL, we can use the Text Pad control in order to display the content of any external text file.
The sample application that is available from the Download tab demonstrates how the Text Pad control can be used within a Frame in order to display a user-specified text file.
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
The sample application is stored within a SAS transport file. You must use PROC CIMPORT to extract the application before use.
proc cimport lib=work infile='<path to the transport file>';
run;
|
The External File Viewer control within a SAS/AF Frame will not render the ASCII tab character. This sample
demonstrates how the Text Pad control can be used within a Frame in order to display the contents of a text file.
Type: | Sample |
Topic: | SAS Reference ==> SCL (SAS Component Language)
|
Date Modified: | 2008-05-08 15:15:15 |
Date Created: | 2008-05-01 12:41:05 |
Operating System and Release Information
SAS System | SAS/AF | AIX | 8.1 TS1M0 | |
HP-UX | 8.1 TS1M0 | |
IRIX | 8.1 TS1M0 | |
OpenVMS Alpha | 8.1 TS1M0 | |
Solaris | 8.1 TS1M0 | |
Tru64 UNIX | 8.1 TS1M0 | |
ABI+ for Intel Architecture | 8.1 TS1M0 | |
Windows Millennium Edition (Me) | 8.1 TS1M0 | |
Microsoft Windows XP Professional | 8.1 TS1M0 | |
Microsoft Windows NT Workstation | 8.1 TS1M0 | |
Microsoft Windows 2000 Professional | 8.1 TS1M0 | |
Microsoft Windows 2000 Server | 8.1 TS1M0 | |
Microsoft Windows 2000 Datacenter Server | 8.1 TS1M0 | |
Microsoft Windows 2000 Advanced Server | 8.1 TS1M0 | |
Microsoft Windows 95/98 | 8.1 TS1M0 | |
OS/2 | 8.1 TS1M0 | |