DATA Step, Macro, Functions and more

How to generate out put with double quotes in sas

Reply
Contributor
Posts: 31

How to generate out put with double quotes in sas

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.

Super User
Super User
Posts: 7,955

Re: How to generate out put with double quotes in sas

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.

Super User
Posts: 7,782

Re: How to generate out put with double quotes in sas

Define "output".

Output to an external file, or printing a report?

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Contributor
Posts: 31

Re: How to generate out put with double quotes in sas

Posted in reply to KurtBremser

printing report

Super User
Super User
Posts: 7,955

Re: How to generate out put with double quotes in sas

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

Ask a Question
Discussion stats
  • 4 replies
  • 206 views
  • 0 likes
  • 3 in conversation