BookmarkSubscribeRSS Feed
Cynthia_sas
SAS Super FREQ


Hi:

  In addition to all of the other suggestions, I have a different one. When you are using %stpbegin, you do NOT need to repeat your ODS invocation statements:

%let _ODSDEST=TAGSETS.csvall;

%stpbegin;

ods tagsets.csvall options(sheet_name="Report1");

Proc Print data=Report1 noobs width=full style(data)={background=white};

      format COL1 COL2 yymmd9.;

   var COL1 COL2 COL3 COL4;

run;

ods tagsets.csvall close;

%stpend;

In addition, your invocation statement is unnecessary because there is no "sheet_name" suboption for ODS CSV or ODS CSVALL, so your "extra" statement will have no impact on your output.  So, aside from all the other issues, you are doing something that is not possible with the CSV destination.

cynthia

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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
  • 15 replies
  • 8928 views
  • 1 like
  • 9 in conversation