Page 1 of 1

Help in initializing variable with spaces in SAS.

Posted: Tue Jun 09, 2015 11:04 am
by vkpani
Hi,

Can anyone of you please help me to initialize the variable with spaces in SAS?

Say, for example, I have a variable declared as SE1 = ' ',

Now SE1 is declared with only one space. But I want to initialise with more spaces. How can I do that?

Thanks in advance.

Re: Help in initializing variable with spaces in SAS.

Posted: Tue Jun 09, 2015 6:26 pm
by Robert Sample
You could use

Code: Select all

SE1 = '     ';
(that is, put more than one space between the quote marks). Or you can use the REPEAT function to specify how many spaces you want SE1 to have.