Help in initializing variable with spaces in SAS.

Statistical Analysis System and Cloud Computing.
Previous topicNext topic

Topic Author
vkpani
New Member
Posts: 2
Joined: Tue Nov 25, 2014 5:18 pm

Help in initializing variable with spaces in SAS.

Post by vkpani » Tue Jun 09, 2015 11:04 am

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.



User avatar

Robert Sample
Global Moderator
Global Moderator
Posts: 1353
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
Zodiac: Virgo

Re: Help in initializing variable with spaces in SAS.

Post by Robert Sample » Tue Jun 09, 2015 6:26 pm

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.



Previous topicNext topic

Return to “SAS & Cloud Computing.”