BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Akshaya_1397
Obsidian | Level 7
Proc SQL;
Create table duerw as
Select
Monotonic() as I'd,
Case
When missing('Reputational count'n) then ' '
Else put('Reputational count'n,mmddyy10.)
End as dtdate length10
From processdata;
Quit;

In this above code the reputational code doesnot have value in the input file even thought the case statement doesnot stops at the first case and moves to the second step and gives the error as

Error:Numeric format MMDDYY in put function requires a numeric argument.
Can anyone help me on this error?
1 ACCEPTED SOLUTION
3 REPLIES 3
Tom
Super User Tom
Super User

The variable is character and the code expected it to be numeric.

Run a PROC CONTENTS on the input dataset, processdataand check what type of variable you actually have.

What process created the input dataset?

Akshaya_1397
Obsidian | Level 7
Thankyou sir it helped me

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1068 views
  • 0 likes
  • 3 in conversation