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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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