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

Hi,

 

Within mapping part I need to introduce new column and to set its value for all rows (for example set it to string "test").

 

I presume I set it in "expression" part when defining that new column, but I didn't find the right way to do that.

 

Can someone give me a hint how to do that?

 

Thanks!

--
Mario
1 ACCEPTED SOLUTION

Accepted Solutions
strsljen
Obsidian | Level 7

So ... My bad. 🙂

I tried to set string with single quotes and needed double quotes (in "expression" field when I defined new column).

 

--
Mario

View solution in original post

4 REPLIES 4
LinusH
Tourmaline | Level 20

That is the "right" way, or what do you mean?

Data never sleeps
strsljen
Obsidian | Level 7

Hi,

 

The one that will give me the result I need.

 

 

--
Mario
LinusH
Tourmaline | Level 20
DI Studio generates SAS code.
In SAS programming (and most other languages) character constants should be within single or double quotes.
What have you tried?
Data never sleeps
strsljen
Obsidian | Level 7

So ... My bad. 🙂

I tried to set string with single quotes and needed double quotes (in "expression" field when I defined new column).

 

--
Mario

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 852 views
  • 0 likes
  • 2 in conversation