Statistical programming, matrix languages, and more

what to do with this message: I do not understand this command

Reply
Super Contributor
Posts: 338

what to do with this message: I do not understand this command

157 proc iml;

NOTE: IML Ready

158 /* SLIDE 24 */

159 a={1 2 3, 4 5 6, 7 8 9};

159! * Create matrices A and B as matrix literals;

160 b={2 2 2};

161 show names;

 

There is a note and I cannot understand. Can anybody explain? Thanks.

 

 

Non-portable document will be produced. The current settings of FORMCHAR use nonstandard

line-drawing characters and the resulting output file will not render correctly unless all

readers of the document have the SAS Monospace font installed. To make your document

portable, issue the following command:

OPTIONS FORMCHAR="|----|+|---+=|-/\<>*";

 

Frequent Contributor
Posts: 143

Re: what to do with this message: I do not understand this command

I don't think this is anything to worry about.  The message is telling you that you have an ODS destination like HTML open, and that if you were to send the resulting HTML file to someone who did not have the SAS font installed, then the output would not look as intended - but it's cosmetic details about how borders are drawn around tables.  If you do as the note says and put the OPTIONS statement before PROC IML, then the note should go away.

Super User
Posts: 11,118

Re: what to do with this message: I do not understand this command

This most likely means that somewhere you are sending output to a listing destination and have used characters designed to make pretty boxes using actual line drawing characters instead of using dashes, pipe characters and plus signs. What ever document you created used the SAS Monospace font which many systems will not have available. The result is that whatever viewer is used by others may render your "box" or line characters in a very unpredictable (and on most default Microsoft platforms) ugly results because the Microsoft font "standard" does not include box drawing characters in most font fonts and those that do are not the same ASCII characters from font to font.

 

So either keep your current output with the potential for not nice final appearance OR change the system option using the recommended option and settle for output that looks like

 

+-------+-----+

| 23     |  47  |

+-------+-----+

Note than any viewer of the output not using a monospace font of some sort will have the lines out of alignment (almost) everywhere as the output is designed for monospace.

Or use ODS destinations.

Super Contributor
Posts: 338

Re: what to do with this message: I do not understand this command

Thank you very much. I run it again and cannot find the note. So I do not try two of your options. Would anybody let me know why it does not show the note any more? It seems that I have changed any settings.

SAS Super FREQ
Posts: 3,624

Re: what to do with this message: I do not understand this command

The warning only appears the first time that the issue occurs.  As Ian said, you can safely ignore the WARNING.

Ask a Question
Discussion stats
  • 4 replies
  • 440 views
  • 2 likes
  • 4 in conversation