Help using Base SAS procedures

Adding a pipe symbol to the end of a row

Reply
Contributor
Posts: 65

Adding a pipe symbol to the end of a row

I'm trying to add a pipe symbol to the end of each row.

data _null_;
SET WORK.LeaveData;
FILE OUT_FILE dlm=',';
put (_all_) (+0) ('|') ;
run;
Frequent Contributor
Posts: 91

Re: Adding a pipe symbol to the end of a row

Try this:
data _null_;
SET sashelp.class;
FILE OUT_FILE dlm=',';
put (_all_) (+0) +(-1) '|' ;
run;
Contributor
Posts: 65

Re: Adding a pipe symbol to the end of a row

Great. Thanks.
Ask a Question
Discussion stats
  • 2 replies
  • 164 views
  • 0 likes
  • 2 in conversation