Hello
What is the reason and meaning of using @ symbol?
I see that:
date1 is in location1-6
date2 is i location8-15
date3 is i location17-26
DATA inputdates1;
INPUT @6 date1 mmddyy6. @13 date2 mmddyy8. @22 date3 mmddyy10.;
FORMAT date1 date9. date2 date9. date3 date9.;
DATALINES;
042708 04-27-08 04 27 2008
;
RUN;
Read up on formatted input with the INPUT statement: https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.3&docsetId=lestmtsref&docsetTarget=p...
Bookmark: https://documentation.sas.com and start exploring for yourself. You will find answers faster that way.
@Ronein wrote:
Hello
What is the reason and meaning of using @ symbol?
I see that:
date1 is in location1-6
Wrong. Position the cursor under the beginning of date1, and the status line of the Enhanced Editor will tell you that you are in column 6.
Datalines ALWAYS start at position 1, not at the indentation deliberately selected by the programmer.
Hint: NEVER indent datalines.
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!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.