Usage Note 9460: Tips for downloading and saving a CSV file when running the Intrnet
Application Server
When running the SAS/IntrNet Application Server and downloading a CSV
file, here are some tips if you have difficulty saving the file to disk.
These tips also apply when downloading and saving other files such as
Excel or PDF files.
Generally, when downloading a file, a "File Download" dialog box will be
displayed by your Web browser. If you select "Save", you should be able
to save the file to your disk. However, in some cases, the file may be
opened automatically (and the "File Download" dialog box does not
appear).
Here is another approach that you can use to submit a request to the
SAS/IntrNet Application Server and save the resulting CSV file to disk.
1. Create a HTML file that contains a link that will
submit a request to the Application Server to create
the CSV file. For example (this link should be on ONE LINE):
<a href="/scripts/broker.exe/test.csv?_service=default
&_program=sample.csv_download.sas">Download CSV File</a>
Note the "/test.csv" specification after the "broker.exe".
In this example, the file will be saved as "test.csv".
2. When this HTML file is displayed in your Web browser,
position your cursor on the "Download CSV File" link and
right-click your (right-hand) mouse button. Then, select
"Save Target As" and save the file. If you are running
Netscape Navigator, select "Save Link As" and save the file.
The following example SAS code indicates an approach for creating a CSV
file using the IntrNet Application Dispatcher.
data _null_;
file _webout;
put "Content-type: application/vnd.ms-excel";
put "Content-disposition: attachment; filename=temp.csv";
put;
run;
ods listing close;
ods csv file=_webout;
proc print data=sashelp.class;
run;
ods csv close;
Operating System and Release Information
| SAS System | SAS/IntrNet | Microsoft Windows XP Professional | 8.2 TS2M0 | |
| Microsoft Windows NT Workstation | 8.2 TS2M0 | |
| Microsoft Windows 2000 Server | 8.2 TS2M0 | |
| Microsoft Windows 95/98 | 8.2 TS2M0 | |
| Windows Millennium Edition (Me) | 8.2 TS2M0 | |
| Microsoft Windows 2000 Professional | 8.2 TS2M0 | |
| Microsoft Windows 2000 Datacenter Server | 8.2 TS2M0 | |
| Microsoft Windows 2000 Advanced Server | 8.2 TS2M0 | |
| Solaris | 8.2 TS2M0 | |
| z/OS | 8.2 TS2M0 | |
| 64-bit Enabled Solaris | 8.2 TS2M0 | |
| 64-bit Enabled HP-UX | 8.2 TS2M0 | |
| HP-UX | 8.2 TS2M0 | |
| Linux | 8.2 TS2M0 | |
| OpenVMS Alpha | 8.2 TS2M0 | |
| 64-bit Enabled AIX | 8.2 TS2M0 | |
| Tru64 UNIX | 8.2 TS2M0 | |
| AIX | 8.2 TS2M0 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Usage Note |
| Priority: | |
| Topic: | System Administration ==> Servers
|
| Date Modified: | 2003-02-24 08:51:03 |
| Date Created: | 2003-02-20 11:43:48 |