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. 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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