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.;
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.