BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
fri0
Quartz | Level 8

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:

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

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

2 REPLIES 2
Reeza
Super User

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;

fri0
Quartz | Level 8

Thank your very much!

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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