Statistical programming, matrix languages, and more

Testing if a matrix is null in v9.3

Accepted Solution Solved
Reply
Contributor
Posts: 59
Accepted Solution

Testing if a matrix is null in v9.3

I've read that for SAS v12.1, there is a new null matrix operator, {}.  The challenge is that I am running SAS v9.3M1. So, in this earlier version, is there a way to test whether or not a matrix is null in v9.3M1?


Accepted Solutions
Solution
‎10-24-2015 07:38 PM
SAS Super FREQ
Posts: 3,615

Re: Testing if a matrix is null in v9.3

This article provides several ways to test for empty matrices in 9.3: "How to create and detect an empty matrix"

My favorite is

if type(X) = 'U' then...

 

 

View solution in original post


All Replies
Solution
‎10-24-2015 07:38 PM
SAS Super FREQ
Posts: 3,615

Re: Testing if a matrix is null in v9.3

This article provides several ways to test for empty matrices in 9.3: "How to create and detect an empty matrix"

My favorite is

if type(X) = 'U' then...

 

 

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 310 views
  • 1 like
  • 2 in conversation