The Use of Number Sign Symbol # ?

Accepted Solution Solved
Reply
New Contributor
Posts: 2
Accepted Solution

The Use of Number Sign Symbol # ?

Hi,

 

Im looking at an old code that uses that seemingly uses the # number sign symbol but I cannot figure out what its function is and it does not seem to exist on the internet.

 

For example, A = X#Y is something close to what I am seeing.

 

Could be be an old language/syntax that is no longer being used? I am relatively new to SAS and not familar if there was even an old syntax.

 

I really need to know as soon as possible, THANKS


Accepted Solutions
Solution
‎10-14-2016 01:24 PM
SAS Super FREQ
Posts: 3,752

Re: The Use of Number Sign Symbol # ?

What is the context? What procedure is being run?   In PROC IML (formerly PROC MATRIX if we are going back to the '80s), the # operator denotes elementwise multiplication. See the article "Ways to multiply in the SAS/IML language."

View solution in original post


All Replies
Super User
Posts: 11,343

Re: The Use of Number Sign Symbol # ?

Without seeing more code or possibly some input / output of the result the following is a complete guess:

Font change

It may be that the original code was stored in a different font, possibly on a mainframe, and when transferred to another system the font encoding didn't quite work.

In a longer shot, if the code is old enough or from some shop then the # could have been an Editor directive which would behave somewhat like a SAS macro but was used in an editor external to SAS.

 

If the place in the code looks like exponentiation was involved then it may have been a ^.

 

If the code with # involves Input or Put statements then the # is used to indicate either the line to read from or column to print to but would not normally occur in calculations.

Solution
‎10-14-2016 01:24 PM
SAS Super FREQ
Posts: 3,752

Re: The Use of Number Sign Symbol # ?

What is the context? What procedure is being run?   In PROC IML (formerly PROC MATRIX if we are going back to the '80s), the # operator denotes elementwise multiplication. See the article "Ways to multiply in the SAS/IML language."

New Contributor
Posts: 2

Re: The Use of Number Sign Symbol # ?

I believe this is what is happening in my program! Thank you so much Rick!

☑ This topic is solved.

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

Discussion stats
  • 3 replies
  • 317 views
  • 0 likes
  • 3 in conversation