BookmarkSubscribeRSS Feed
Stephane
Quartz | Level 8
Hi

Using SEG 4.1 thin client and a Zos server, I'd like to export a SAS table from my server to my PC as a .txt file. How do I do that ?
5 REPLIES 5
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
You can use PROC EXPORT to generate a delimited text file. Have a look at the SAS support http://support.sas.com/ website for DOC and supplemental technical papers on the topic of exporting SAS data to a text / delimited (external) file.

Scott Barry
SBBWorks, Inc.
Stephane
Quartz | Level 8
NOTE: The Import/Export facility is not supported on this operating system.

this is the answer...and this is why I ask. 😉
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Explore using ODS CSV to create a comma-delimited file (using FILENAME statement), generated by PROC PRINT.

Scott Barry
SBBWorks, Inc.
artmorlock
Fluorite | Level 6
Bit of a kludge, but you can create a code object and use ods to create a comma separated text file.

ods csv file='stephanie.txt';
run;
proc print data=zos.dataset;
run;
ods csv close;

> Hi
>
> Using SEG 4.1 thin client and a Zos server, I'd like
> to export a SAS table from my server to my PC as a
> .txt file. How do I do that ?
ChrisHemedinger
Community Manager
Sorry for coming late to this party, but have you tried File->Export from SAS EG? You should be able to export the SAS table on MVS to any of several formats on your local PC, including text, Excel, etc.

Chris
SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 2041 views
  • 0 likes
  • 4 in conversation