Help using Base SAS procedures

Cat result type

Reply
N/A
Posts: 0

Cat result type

Hi,

Can anybody explain me why variable b become numeric??

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

Thnx.
Trusted Advisor
Posts: 2,113

Re: Cat result type

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.
Ask a Question
Discussion stats
  • 1 reply
  • 105 views
  • 0 likes
  • 2 in conversation