BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Kaladhan
Fluorite | Level 6

Hi everyone,

I'm attempting to export a SAS dataset in CSV format in UNIX. It hangs because the session doesn't have the -noterminal option.

More infomation on the issue that I have :

http://pages.stern.nyu.edu/~adesouza/sasfinphd/index/node15.html

I do not have access to how my program is launched, so I can't simply add the -noterminal option.

Is there any way I could circumvent the problem within my code?

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

CSV files are trivial to write without PROC EXPORT.

If you don't need column headers this trivial data step will do it.

data _null_;

  set have ;

  file 'want.csv' dsd lrecl=300000 ;

  put (_all_) (:) ;

run;

View solution in original post

2 REPLIES 2
Tom
Super User Tom
Super User

CSV files are trivial to write without PROC EXPORT.

If you don't need column headers this trivial data step will do it.

data _null_;

  set have ;

  file 'want.csv' dsd lrecl=300000 ;

  put (_all_) (:) ;

run;

Kaladhan
Fluorite | Level 6

I didn't think of making my own csv file. It makes sense.

Thanks for your help!

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1458 views
  • 0 likes
  • 2 in conversation