Making an RTF file Out of a Text File, With a Single Datastep

When converting a text file to an RTF file there are many solutions -- these usually involve either running SAS ODS RTF or a Microsoft Office VBA macro. This paper brings yet another solution in the form of a SAS macro where the text file is read in and output in a single SAS datastep, with relevant RTF codes added, the advantage being that the solution is often quicker than other methods.