Hi,
Just experimenting with very basic raw data reading and I'm getting stumped with this error.
Any insight or help will be appreciated
The error shows the program I am running .. the raw data is 24/12/1856765
The first 8 characters is the date 24/12/18 i am trying to read with the informat ddmmyy8. but its throwing an error
By using the colon modifier you told SAS to read all of the characters up to the next delimiter (or end of line) using the MMDDYY informat.
Note that in list mode the INPUT statement ignores the width on the informat and uses the width of the actual next word of data. SAS cannot make a date value with a year of 1,856,765.
Just remove the : from the INPUT statement.
Can you paste the datalines as well plz?
I can't see the data
data test;
input date ddmmyy8. amount;
format date date9. amount dollar16.2;
cards;
24/12/1856765
;
By using the colon modifier you told SAS to read all of the characters up to the next delimiter (or end of line) using the MMDDYY informat.
Note that in list mode the INPUT statement ignores the width on the informat and uses the width of the actual next word of data. SAS cannot make a date value with a year of 1,856,765.
Just remove the : from the INPUT statement.
Thanks guys ... silly silly mistake ..
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!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.