BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Babloo
Rhodochrosite | Level 12
 
1 ACCEPTED SOLUTION

Accepted Solutions
RW9
Diamond | Level 26 RW9
Diamond | Level 26

And what information are you missing?

This is the error:

ERROR: Character format $ in PUT function requires a character argument.

 

This is one of the places it refers to:

put(20180630,$10.)

20180630 is a number, therefore you need to put() it into a numeric format:

put(20180630,8.) as KNDTOPD length = 10,

View solution in original post

1 REPLY 1
RW9
Diamond | Level 26 RW9
Diamond | Level 26

And what information are you missing?

This is the error:

ERROR: Character format $ in PUT function requires a character argument.

 

This is one of the places it refers to:

put(20180630,$10.)

20180630 is a number, therefore you need to put() it into a numeric format:

put(20180630,8.) as KNDTOPD length = 10,
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
  • 1 reply
  • 11457 views
  • 0 likes
  • 2 in conversation