DATASETS names confusion?

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

DATASETS names confusion?

drfg2008
We run several SPSS syntax programs automated (started by the windows task scheduler). Since in several different automatically started SPSS programs DATASET names are the same (i.e. the name of the queried database “DB1”) it might happen that two or more DATASETs are open at the same time with the same name (i.e. “DB1”). So for example Syntax A was started at 0:00 and opened/renamed a DATASET with the name “DB1” and Syntax B was started at 0:01 and also opened /renamed a DATASET with “DB1”.  Now Syntax A activates “DB1” and starts computations.
It seems that this does not lead to confusion with SPSS (i.e. computing on or overwriting the wrong DATASET), but since I could only check it manually with some examples, it would be necessary to know if we have to rewrite every automated Syntax program or not.
Dr. Frank Gaeth

Reply | Threaded
Open this post in threaded view
|

Re: DATASETS names confusion?

Jon K Peck
A dataset name is a property of a specific SPSS session.  It is not visible to any other process, including other SPSS sessions running at the same time.  A dataset is backed by a temporary disk file, but the files for a session are in a temporary directory that would not be used by any other session.

No worries.


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
phone: 720-342-5621




From:        drfg2008 <[hidden email]>
To:        [hidden email],
Date:        04/29/2014 02:29 AM
Subject:        [SPSSX-L] DATASETS names confusion?
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




We run several SPSS syntax programs automated (started by the windows task
scheduler). Since in several different automatically started SPSS programs
DATASET names are the same (i.e. the name of the queried database “DB1”) it
might happen that two or more DATASETs are open at the same time with the
same name (i.e. “DB1”). So for example Syntax A was started at 0:00 and
opened/renamed a DATASET with the name “DB1” and Syntax B was started at
0:01 and also opened /renamed a DATASET with “DB1”.  Now Syntax A activates
“DB1” and starts computations.
It seems that this does not lead to confusion with SPSS (i.e. computing on
or overwriting the wrong DATASET), but since I could only check it manually
with some examples, it would be necessary to know if we have to rewrite
every automated Syntax program or not.




-----
Dr. Frank Gaeth
FU-Berlin

--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/DATASETS-names-confusion-tp5725698.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
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: DATASETS names confusion?

drfg2008
thanks a lot!

Dr. Frank Gaeth