Help using Base SAS procedures

PROC Export not working on UNIX because of terminal option

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 8
Accepted Solution

PROC Export not working on UNIX because of terminal option

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?


Accepted Solutions
Solution
‎09-11-2013 11:26 AM
Super User
Super User
Posts: 6,499

Re: PROC Export not working on UNIX because of terminal option

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_) (Smiley Happy ;

run;

View solution in original post


All Replies
Solution
‎09-11-2013 11:26 AM
Super User
Super User
Posts: 6,499

Re: PROC Export not working on UNIX because of terminal option

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_) (Smiley Happy ;

run;

Occasional Contributor
Posts: 8

Re: PROC Export not working on UNIX because of terminal option

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

Thanks for your help!

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 480 views
  • 0 likes
  • 2 in conversation