BookmarkSubscribeRSS Feed
Cherry
Obsidian | Level 7

Hi,

In my input record there is a field with email id, I want to read and generate out put with double quotation marks... Please find the below example how am I expecting the output record.

example: "adcde@yahoo.com"

Can any one advise and provide me the code.

Thanks,

Cherry.

4 REPLIES 4
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Sorry, where is the data?  Post some code.  If its just creating a variable with that data then:

var='"abcde@yahoo.com"';

I.e. put single quote then double quote, and end with double quote then single quote.  Or use the quote() function.

Cherry
Obsidian | Level 7

printing report

RW9
Diamond | Level 26 RW9
Diamond | Level 26

Yes, so single quotes around double, or use quote().

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
  • 2356 views
  • 0 likes
  • 3 in conversation