BookmarkSubscribeRSS Feed
jplarios
Quartz | Level 8
Hi:
I have a stp that outputs in Excel. One type of character value that it outputs is MAR2011. Eventhough this is character , Excel transforms this into a date of Mar/20/2011. Is there a way to output an STP in text ? Or someway for the character value not to be converted into this Excel date?
Thanks,
jp
6 REPLIES 6
Vince_SAS
Rhodochrosite | Level 12
What technique are you using to output the SAS output to Excel? Can you post a simplified code sample?

Vince
SAS R&D
jplarios
Quartz | Level 8
Hi Vince,
example :

proc sql;

select column_name label ='00'x
/* label '00'x because need no column headers*/

from tableA

quit;
Vince_SAS
Rhodochrosite | Level 12
That code creates output in the Output window/lst file. How does it get to Excel? As HTML, CSV or other?

Vince
SAS R&D
jplarios
Quartz | Level 8
Vince,
I use the Add-in to output in CSV-result type.
Vince_SAS
Rhodochrosite | Level 12
You might want to try posting to the Integration with Microsoft Office Forum:
http://support.sas.com/forums/forum.jspa?forumID=7

Be sure to indicate in your subject that you are using the SAS Add-In for Microsoft Office.

Vince
SAS R&D
jplarios
Quartz | Level 8
Thanks Vince,
will do,
jp

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 6 replies
  • 899 views
  • 0 likes
  • 2 in conversation