BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,

Can anybody explain me why variable b become numeric??

data bbb;
b=cat(b,'1');
run;

Thnx.
1 REPLY 1
Doc_Duke
Rhodochrosite | Level 12
Since you did not provide a type for b in it's first use [cat(b,'1')], SAS assumed it was numeric. Numeric variables are legitimate arguments to the CAT function. The documentation states that it does not provide an error or warning on conversion.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 834 views
  • 0 likes
  • 2 in conversation