Help using Base SAS procedures

How to add a carriage return in a data step

Reply
Regular Contributor
Posts: 186

How to add a carriage return in a data step

Hi,

What is the proper way to add a carriage return to a string variable in a data step.

Thank you.

Super User
Posts: 10,490

Re: How to add a carriage return in a data step

Newvar = var||byte(n);

where N is the order in the collating sequence you use. IIRC in ASCII it is 13.

Ask a Question
Discussion stats
  • 1 reply
  • 690 views
  • 0 likes
  • 2 in conversation