i need help??
example my value is:
state
kula lumpur
puterajaya
labuan
but i want it will be like this:
state
kula lumpur
puterajaya
labuan
What is the logic here?
Why? You just want to put for example two spaces before kula lumpur and four spaces before puterajaya.
THAT IS EXAMPLE THE REAL DATA LIKE THIS:
BATU PAHAT
M.P. Batu Pahat
Bandar Penggaram
to show result at word like that..
What do you mean by "real data"? SAS datasets or external files from which SAS data needs to be created?
Also keep in mind that in many cases, SAS will not display leading blanks per default.
Then please post (copy/paste) a few lines of your input file into a window opened with the {i} button.
If that data is already in a SAS data set, you need to take two steps.
First, add leading blanks. For example:
varname = ' ' || varname;
Secondly, you need to preserve the leading blanks when displaying the variable. For example:
format varname $char20.;
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!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.