Desktop productivity for business analysts and programmers

Display all characters after concatenating

Accepted Solution Solved
Reply
Contributor
Posts: 58
Accepted Solution

Display all characters after concatenating

Hi, I'm concatenating 5 variables in only one string variable that has a lenght of 40-50 characters, but SAS displays only the 2 first variables. How could I do to see all the lenght?

This is my code:

data work.cf_vcv2;

set work.cf_vcv1;

cross=cats(tiporden,isin,tim,dat,precioneg);

run;

the output only show tiporden and isin concatenated.:smileyconfused:


Accepted Solutions
Solution
‎11-20-2014 03:10 PM
Super User
Posts: 19,170

Re: Display all characters after concatenating

Set the length of the variable before creation.

data work.cf_vcv2;

set work.cf_vcv1;

length cross $50.;

format cross $50.;

cross=cats(tiporden,isin,tim,dat,precioneg);

run;

View solution in original post


All Replies
Solution
‎11-20-2014 03:10 PM
Super User
Posts: 19,170

Re: Display all characters after concatenating

Set the length of the variable before creation.

data work.cf_vcv2;

set work.cf_vcv1;

length cross $50.;

format cross $50.;

cross=cats(tiporden,isin,tim,dat,precioneg);

run;

Contributor
Posts: 58

Re: Display all characters after concatenating

Thank your very much!

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 256 views
  • 1 like
  • 2 in conversation