BookmarkSubscribeRSS Feed
Barbara91
Calcite | Level 5

salve, sto lavorando con un codice SAS in cui compare l'utilizzo di 'matchnum' per la definizione di un parametro:

 

b=j(1,matchnum,0);

 

qualcuno sa come interpretare questa riga?

all'interno del codice non fa riferimento a niente, è a se stante, vorrei sapere se matchnum è una funzione che vi è nota.

Grazie

3 REPLIES 3
Kurt_Bremser
Super User

Given the fact that the number of Italian-writing posters here is very limited (and I don't know if any of the usual "solvers" understand Italian at all), but basically all do read/write English, I suggest you re-post your question in English.

RW9
Diamond | Level 26 RW9
Diamond | Level 26

There is no matchnum function or parameter as far as I know, nor can I find any information on it.  By its use it looks like a dataset variable name, however what the j() function is I don't know, could it be an array?  Maybe post more of the code so we can see it in context.

PeterClemmensen
Tourmaline | Level 20

I'm guessing this line of code is part of an IML Procedure since the J Function is part of the SAS/IML language 🙂 you can read about it at the documentation page

 

http://support.sas.com/documentation/cdl/en/imlug/65547/HTML/default/viewer.htm#imlug_langref_sect20...

 

and in the article 

 

How the J function got its name

 

In your case, you define a matrix with 1 row and matchnum columns of zeros, ie. a row vector of zeros.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 745 views
  • 0 likes
  • 4 in conversation