From SAS to SPSS

Moderators: statman, Analyst Techy, andris, Fierce, GerineL, Smash

Posts: 6
Joined: Thu Nov 20, 2014 4:38 pm

From SAS to SPSS

Postby wiibtr » Mon Jan 12, 2015 4:44 pm

Hello everyone,

How can I translate the equivalente of a "call symput" SAS in SPSS?
For example I have the following SAS PROGRAM: "data _NULL_; set TAB;
Call Symput(compress("proba_"||_N_),proba);

That puts into the macro variable "proba" the value of the variable "proba", followed by its line's number.

Thus, if I call the macro variable !proba_3 , this will return the value of the variable proba at line 3.

THANK you.
Posts: 1477
Joined: Tue Jun 10, 2008 4:50 pm

Re: From SAS to SPSS

Postby GerineL » Mon Jan 12, 2015 5:32 pm

don't know, don't know if people in this forum would know either (really spss oriented)
try statmodel instead.

Who is online

Users browsing this forum: No registered users and 3 guests