My excel file has a column named "SUB" with numbers from 1 -30. When I run SAS, it keeps showing an error "Sub must use a numeric format". I've checked the excel and confirmed that SUB is in numerical format.
Any time you get an error best practice is to include the code with all messages from the LOG. Copy the text from the log, on the forum open a text box using the </> and paste the copied text. The text box is important to preserve the formatting of the diagnostic characters that SAS often provides with errors. It also makes it easier to see where the discussion starts/ends separated from the actual log text.
Also may be a good idea to show us the result of running proc contents on your data set.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.