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.
Help in initializing variable with spaces in SAS.
- Robert Sample
- Global Moderator
- Posts: 1903
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Help in initializing variable with spaces in SAS.
You could use (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.
Code: Select all
SE1 = ' ';
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute