Why can' t use write_array to write a text matrix to a dataset?

Reply
N/A
Posts: 1

Why can' t use write_array to write a text matrix to a dataset?

I am using the FCMP proc. when I try to write a string matrix to a dataset, I get a message that "can not convert char to numeric. Why can' t use write_array to write a text matrix to a dataset?

thanks.

Super User
Posts: 11,343

Re: Why can' t use write_array to write a text matrix to a dataset?

Posted in reply to andychang325

Code example needed for troubleshooting.
Since FCMP lets you write a custome routine unless we know what it does we can't tell why it gets that error.

Trusted Advisor
Posts: 1,301

Re: Why can' t use write_array to write a text matrix to a dataset?

Posted in reply to andychang325

It is not really in the documentation and prior to 9.3 the error messages are not very good, but the write_array function is only available for numeric arrays, they same for read_array and dynamic_array, as well as the other matrix functions, but since those are arithmetic it is more obvious.  I had SAS created a usage note about it a while ago.

http://support.sas.com/kb/46/487.html

Ask a Question
Discussion stats
  • 2 replies
  • 203 views
  • 0 likes
  • 3 in conversation