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).
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.