SPSS scratch variable - GET FILE -


i'd use scratch variable get file command. start file more row , i'd open file syntax. should write filepath directly in get file command, i'm wondering how same using scratch variable well.

this example - not working...

temporary. string #temp  (a100). select if ($casenum =1). compute #temp= concat("'", 'c:\syntax\trance2\test.sav', "'"). print / #temp. file = #temp. 

how have approached make sense if had dataset stored file names , path locations in variable subsequently needed processing (which possible using python).

however don't reference variable in code , explicitly write out single file location. not entirely clear whether want do, i'm going assume not, , shall provide alternative solutions think maybe wanting do:

/* example1: using macro string substitution */. define  !file1 () "c:\program files\ibm\spss\statistics\23\samples\english\employee data.sav" !enddefine. file=!file1.  /* example2: using file handle */. file handle file2 /name="c:\program files\ibm\spss\statistics\23\samples\english\demo.sav". file=file2. 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -