BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
YannRC
Obsidian | Level 7

hello, i often use data studio to create Unique ID  but data sudio doesn't work kike a want. I want to know if it's possible to do this in studio. And if it's ok, what is the calculated item?

 

1 ACCEPTED SOLUTION

Accepted Solutions
LinusH
Tourmaline | Level 20

Do you have any special requirements when it comes to the id?

You can use SAS functions to create a UUID (https://documentation.sas.com/doc/en/vdmmlcdc/8.1/lefunctionsref/n0y09yghr5r11cn1b4ocojwqvrqe.htm), or hashing your business key column(s):

MD5 https://documentation.sas.com/doc/en/vdmmlcdc/8.1/lefunctionsref/n0mu81ozw0013yn1kzwve5ola26e.htm

SHA256: https://documentation.sas.com/doc/en/vdmmlcdc/8.1/lefunctionsref/p04sqiymw1a6unn1uvh943eudcv...

If you want to create a sequence no you probably need to program that yourself, or utilize SAS Studio Engineer steps.

Or if you have an external DB, you can often define a column there with these characteristics.

Data never sleeps

View solution in original post

1 REPLY 1
LinusH
Tourmaline | Level 20

Do you have any special requirements when it comes to the id?

You can use SAS functions to create a UUID (https://documentation.sas.com/doc/en/vdmmlcdc/8.1/lefunctionsref/n0y09yghr5r11cn1b4ocojwqvrqe.htm), or hashing your business key column(s):

MD5 https://documentation.sas.com/doc/en/vdmmlcdc/8.1/lefunctionsref/n0mu81ozw0013yn1kzwve5ola26e.htm

SHA256: https://documentation.sas.com/doc/en/vdmmlcdc/8.1/lefunctionsref/p04sqiymw1a6unn1uvh943eudcv...

If you want to create a sequence no you probably need to program that yourself, or utilize SAS Studio Engineer steps.

Or if you have an external DB, you can often define a column there with these characteristics.

Data never sleeps

sas-innovate-white.png

🚨 Early Bird Rate Extended!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Lock in the best rate now before the price increases on April 1.

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
  • 738 views
  • 0 likes
  • 2 in conversation