BookmarkSubscribeRSS Feed
TzufRaifMia
Fluorite | Level 6

Hey All!

I am training an Image classification model in SAS.
For that, I uploaded images from  S3 (Amazon Bucket) into CAS Table.

The problem is- two out of 5 columns (_path_, _image_) are 'varbinary' type,  which makes issues.
I am looking for a way to overcome it and being able working with 'path' value (I need to extract the label from it).

 

Attached are

1. The code I used for uploading from S3,

2. The error I get while trying to work with '_path_' column.

3. _Path_ column props

 

 

Will be  happy to here your thoughts,

Thanks,

T

S3 extractS3 extractcolumn propcolumn propErrorError

4 REPLIES 4
Mazi
Pyrite | Level 9
Hey, T -

Not sure if you’ve solved this problem?

Have you tried using CASL with the computedVars parameter in some CAS action?
TzufRaifMia
Fluorite | Level 6

Hey,

Problem solved.

Thanks,

T

Mazi
Pyrite | Level 9
Hey T,

I’m curious to know how you solved it, if you don’t mind.

Thanks
Patrick
Opal | Level 21

The CAS Libname Engine doesn't support Varbinary but you can use the Caslib with FedSQL or DS2 syntax instead which both support this data type.

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
  • 4 replies
  • 1573 views
  • 1 like
  • 3 in conversation