BookmarkSubscribeRSS Feed
Swapnil_21
Obsidian | Level 7

Hi,

Below is input table 

 

Account_ID,Credit_Balance,Debit_Balance
8834,100,200
7456,200,500
7896,600,800
6543,700,900

 

Below is what I want 

 

TABLE_NAME,COLUMN_NAME,ORIGINAL_VALUE,CHANGED_RANDOM_VALUE,DATE
HAVE,Account_ID,8834,1213,03-Nov-2021
HAVE,Account_ID,7456,4567,03-Nov-2021
HAVE,Account_ID,7896,6789,03-Nov-2021
HAVE,Account_ID,6543,9867,03-Nov-2021
HAVE,Credit_Balance,100,432,03-Nov-2021
HAVE,Credit_Balance,200,567,03-Nov-2021
HAVE,Credit_Balance,600,898,03-Nov-2021
HAVE,Credit_Balance,700,156,03-Nov-2021
HAVE,Debit_Balance,200,323,03-Nov-2021
HAVE,Debit_Balance,500,556,03-Nov-2021
HAVE,Debit_Balance,800,901,03-Nov-2021
HAVE,Debit_Balance,900,384,03-Nov-2021

 

 

How do I get this, changed value is actually a random number so values may differ. I am trying everything but somehow not getting the correct output. Any help is really appreciated

1 REPLY 1
SASKiwi
PROC Star

Please post your program attempt. It's hard to help if we don't know what you have tried. 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

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
  • 1 reply
  • 274 views
  • 0 likes
  • 2 in conversation