BookmarkSubscribeRSS Feed
Ps8813
Fluorite | Level 6

we are creating a sas library of an excel file using "Libname PCFILES". Then we are deleting few sheets. Then we are deassigning the libref. But now when iam opening the excel i can see that, there was a column having superscript in it , now that is gone and simple letters are written. What to do?

previously data was :- abcd(1)   and (1) as a superscript

now data is :- abcd(1)  and (1) is coming simple plan letter.

3 REPLIES 3
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Can you clarify what the issue is exactly.  SAS has a structure where variables have a name, which can only be alphabetic, numeric or underscore and maximum of 32 characters.  The variable can also have a label which can handle most standard characters.  Looking at what you have posted, abcd(1) must be the label of the variable as () are not allowed in variable names, so your variable name would be abcd1 or abcd_1 (something like that).  This is perfectly standard procedure for Any structured environment - superscript/subscript, wingdings, pictures and anything other than standard a-z, 1-0 characters will not be available.  

If you want them to be superscript in your outputs then this is something you need to apply at report time, using escape codes. 

Ps8813
Fluorite | Level 6

Actually in my excel file , one cell has  data with superscript. But after assigning libref using PCFILES and deleting other sheets, that superscript is gone.

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!

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
  • 3 replies
  • 646 views
  • 0 likes
  • 3 in conversation