BookmarkSubscribeRSS Feed
thanikondharish
Calcite | Level 5

data gggggggggggggggggggggggggg_yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy ;
set sashelp.class ;
run;

if i run above program i am getting error so how keep 32 characters length.

 

kindly help me.

4 REPLIES 4
LinusH
Tourmaline | Level 20
Say what now?
I mean, just reduce the name to 32 chars...?
Data never sleeps
FreelanceReinh
Jade | Level 19

Put the intended long names into labels and keep the actual names <=32 characters long.

 

data test(label='This dataset label could be up to 256 characters long!');
a=1;
label a='This variable label could be up to 256 characters long!';
run;

proc contents data=test;
run;
VDD
Ammonite | Level 13 VDD
Ammonite | Level 13

think about it before you make the file names, make that mean something rather than tell a story.

In the years past you only got a length of 8.

 

what are you going to do when  256 length is not enough

Sloppy kids.

 

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 4 replies
  • 1019 views
  • 4 likes
  • 5 in conversation