data list_modified;
input name $ & +3 lastname & $16. team $;
datalines;
Joseph Joergensen White Red
Mitchel Mc Allister blue
Su Ellen Fischer Simon green
;
run;
what does '+3' mean? without '+' only letter at position 3 is loaded for the name.
Change the +3 to, say, +6, and look at the result for lastname.
@anming wrote:
it works from without, +0 to +3. but from +4 the last name will be truncated.
Truncated on which side?
What does that tell you about the function of prefixing a number with a "+"?
Without the + the 3 means you want to read the variable NAME using COLUMN input instead of LIST MODE (modified or not).
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.