The SAS Output Delivery System and reporting techniques

Need to change the Length of Character Variable

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 88
Accepted Solution

Need to change the Length of Character Variable


Hi,

I have one dataset called Cust_demo whci saved all the customer demographic information such as Cust_name, cust_Address and zip code..etc.. Now initially we have defined address variable as a character with length 8, now since the length of address field started increasing we have to make some more space for address variable suppose 10, so can i change this length of address variable?

Also this dataset is quite big almost18-20 gb so i can't take risk to recreate it with new length so any Efficient way without creating new dataset appreciated.

Regards,

Tushar Jagtap.


Accepted Solutions
Solution
‎05-20-2013 08:30 AM
Super Contributor
Posts: 578

Re: Need to change the Length of Character Variable

you can use proc sql;

proc sql;

alter table have

modify colname char(xxx) format=$xxx.;

quit;

View solution in original post


All Replies
Solution
‎05-20-2013 08:30 AM
Super Contributor
Posts: 578

Re: Need to change the Length of Character Variable

you can use proc sql;

proc sql;

alter table have

modify colname char(xxx) format=$xxx.;

quit;

Frequent Contributor
Posts: 88

Re: Need to change the Length of Character Variable

Thanks DBailey..

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 228 views
  • 0 likes
  • 2 in conversation