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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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