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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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