If you use GET FILE you have to use the full file pathway and name, e.g: GET FILE= 'C:\Users\John Hall\Desktop\BSAS_Merge_files\bsa2017_for_ukda.sav'. SPSS doesn't assign dataset numbers to use in APPLY DICTIONARY: all you get is <filename> [ ] However, if the files are opened with a double click, SPSS assigns dataset numbers. Why? John F Hall MA (Cantab) Dip Ed (Dunelm) [Retired academic survey researcher] Email: [hidden email] Website: Journeys in Survey Research Course: Survey Analysis Workshop (SPSS) Research: Subjective Social Indicators (Quality of Life) |
Syntax commands never automatically assign dataset names (except DATASET NAME, of course). A file with a dataset name stays open when another file/dataset is activated. If names were automatically assigned, preexisting syntax with a lot of GET and similar commands would have been a problem. And if you were building a syntax job, you would probably want to assign meaningful names, anyway, so automatic assignment wouldn't be very helpful. APPLY DICTIONARY and similar commands can use either file names or dataset names, of course, so a dataset name is not necessary to use it. Dataset names are automatically assigned when working interactively, including double clicking a file as the syntax considerations don't apply. Note that you can prevent this as far as the menus go as a preference setting. I don't know whether that setting affects double-click launching. On Fri, Mar 22, 2019 at 9:46 AM John F Hall <[hidden email]> wrote:
|
Free forum by Nabble | Edit this page |