BookmarkSubscribeRSS Feed
vannu
Calcite | Level 5

Hi, Im trying to export mainframe sas dataset to excel output , and my saslog says " The Import/Export facility is not supported on this operating system." is there any solution to solve this? so that i  can easily  export sas data set as excel output.

 

code i used :-

PROC EXPORT DATA=SASHELP.CARS                             
OUTFILE='C:\USERS\DOWNLOADS\EXTRA\SASCARS.XLSX'
DBMS=XLSX                                                 
REPLACE;                                                  
RUN;                                                     

2 REPLIES 2
Kurt_Bremser
Super User

Write your SAS data to a flat file (either fixed columns, or delimited), and use that for the data exchange with external applications.

CSV (comma separated) works best.

andreas_lds
Jade | Level 19

If SAS runs on mainframe it is unlikely that you can access the C-drive of your windows computer. But before that problem can be solved you need to check which SAS version is installed on the mainframe. Have a look at the automatic variables using %put _automatic_;

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 860 views
  • 0 likes
  • 3 in conversation