Assigning dataset numbers

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Assigning dataset numbers

John F Hall

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)

 

===================== 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
Reply | Threaded
Open this post in threaded view
|

Re: Assigning dataset numbers

Jon Peck
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:

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)

 

===================== 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


--
Jon K Peck
[hidden email]

===================== 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