SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
Tom
Super User Tom
Super User

Try it.

I think that it does add the prefix to the name that it takes from the ID variable, so that the extra step is not needed.

turcay
Lapis Lazuli | Level 10

Hello Tom,

 

Thanks a lot, i tried many things but i couldn't solve how i can create output of all score columns. I get error related to score columns name i need a dynamic code. I can feel i'm so close to solve problem but i think i need a help in this situation. I attached my code.

 

Thanks a lot @Tomand @RW9 .

RW9
Diamond | Level 26 RW9
Diamond | Level 26

Hi,


Rather than making me trawl through that long program, can you post a small amount of test data in the form of a datastep and example of the output you want.

turcay
Lapis Lazuli | Level 10

Hello @RW9,

 

Thank you for your interest.

Actually, i've already posted example of my output.This time i attached my code becasue as you said there are many data step on my program. I've also already posted my datastep.

If you copy and try the code on EG you can see small amount of the error.

I just want some information about the codes i'm trying to create the output which i want, at my odd moments.

 

Thanks a lot.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

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
  • 18 replies
  • 6671 views
  • 6 likes
  • 4 in conversation