data list_modified;input name $ & +3 lastname & $16. team $;datalines;Joseph Joergensen White RedMitchel Mc Allister blueSu 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 "+"?
https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=lestmtsref&docsetTarget=n...
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
Register now to lock in early bird pricing through February 25!
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.