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 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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
  • 1122 views
  • 0 likes
  • 2 in conversation