Login  Register

Declared dataset as input for MATRIX

Posted by Jignesh Sutar-3 on Sep 26, 2014; 10:49am
URL: http://spssx-discussion.165.s1.nabble.com/Declared-dataset-as-input-for-MATRIX-tp5727423.html

Is it not possible to specificy a dataset anme as an input file for MATRIX? No limitations suggested in the CSR.
 

DATA LIST FREE / v1.
BEGIN DATA
1
END DATA.
DATASET NAME ds.

matrix.
get ds / file="ds" /variables v1.
print ds.
end matrix.




FILE Specification
FILEdesignates the IBM SPSS Statistics data file to be read. Use an asterisk, or simply omit theFILE
specification, to designate the current active dataset.
v The file reference can be either a filename enclosed in quotes, a previously declared dataset in the
current session, or a file handle defined on aFILE HANDLEcommand that precedes the matrix program.
v If you omit theFILEspecification, the active dataset is used.
v In a matrix program executed with the INCLUDEcommand, if aSPLIT FILEcommand is in effect, aGET
statement that references the active dataset will read a single split-file group of cases. (A matrix
program cannot be executed from a syntax window if aSPLIT FILEcommand is in effect.)
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD