BookmarkSubscribeRSS Feed
nayab_shaik
Calcite | Level 5

Hi Team,

i have two tables like 

table1

 

id  name  trasactioncode

1  ss       1223432

2  ac        3382168

3 aa        3456729

3 gf        0998755

 

 

table 2 column like

barcode coloumn 

 

how to assign  each customer wise unique barcode to table a

 

Advance thanks

 

3 REPLIES 3
PeterClemmensen
Tourmaline | Level 20

I don't understand this. Please sketch how your desired result looks

PaigeMiller
Diamond | Level 26

Please give a fuller explanation of your problem and the logic needed to create the output.

 

Also — DO NOT SKIP THIS STEP — please go back and change the subject line to a meaningful subject line for your post. Every post here is about SAS, we need a post that briefly describes the problem.

--
Paige Miller
ballardw
Super User

@nayab_shaik wrote:

Hi Team,

i have two tables like 

table1

 

id  name  trasactioncode

1  ss       1223432

2  ac        3382168

3 aa        3456729

3 gf        0998755

 

 

table 2 column like

barcode coloumn 

 

how to assign  each customer wise unique barcode to table a

 

Advance thanks

 


Do you have a value in common between the two tables? If so tell us which it is. If not you will need to find another table that has  values in common with both tables that can provide the linkage information.

 

I suspect you need to the additional table that would have the Transactioncode and all of the items affected during that specific transaction.

 

You should also provide exactly how you expect the result to look for a given set of example data as I suspect that you have a varying numbers of barcodes related to each transaction.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 3 replies
  • 960 views
  • 0 likes
  • 4 in conversation