Multiple IMputation with SPSS 17.0

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

Multiple IMputation with SPSS 17.0

legentst
Hi,
I am a newcomer on this list, but hope that somebody is able to help me
with the follwoing issue:

I am doing a study on weight loss maintenance and followed my sample over
4 years. There is a lot of missing data and I performed the multiple
imputation command with SPSS 17.0.

Now I have 5 data sets with different means and the regressions I
performed show me a) a pooled model with no estimates for ß and b) no
pooled result, because the significant predictors from the five sets vary
greatly for this second regression.

I dont know how I can judge now which is the best of the imputed data sets
and subsequently choose a model which I can describe in my research for
the second regression. Furthermore, I would like to now if it is allowed
to pool the regression coefficients of the single regressions performed on
each data set and how I can do this with SPSS?

I would be more than happy if there is anybody who can tell me.

=====================
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: Multiple IMputation with SPSS 17.0

Joost van Ginkel
Dear Tanja,

I don't know if I understand correctly, but from what you're telling it seems that you're doing some kind of stepwise regression (forward, backward), since you were talking about a "second regression"? If so, the reason why SPSS does not give any pooled results is that it may have some trouble performing a stepwise regression for a multiply imputed dataset. For one imputed dataset, the regression may follow another path and may end up with another final model than for the other imputed dataset. So it's difficult to pool the results for the final solutions of each imputed dataset because they are all different. What you should do is perform the steps of the forward/backward regression manually and use the pooled results as a starting point. For example, you start with only predictor1 (using method Enter in regression). If the POOLED results of this regression show that this predictor is significant, perform a second regression (also using method Enter) with predictor 2 added. If the pooled results of this regression show that this predictor is significant, add a third one. If not, skip this one, and go to the next, and so on. What you definitely shouldn't do is arbitrarily pick the results of one dataset, especially if the results vary greatly among imputed dataset. If the results vary greatly, this means that there is a lot of uncertainty surrounding the missing data so that means that one single imputed dataset tells you very little, if anything at all. I hope this answers your question.

Best regards,

Joost van Ginkel


Joost R. Van Ginkel, PhD
Leiden University
Faculty of Social and Behavioural Sciences
Data Theory Group
PO Box 9555
2300 RB Leiden
The Netherlands
Tel: +31-(0)71-527 3620
Fax: +31-(0)71-527 1721


-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Tanja
Sent: 25 August 2009 14:52
To: [hidden email]
Subject: Multiple IMputation with SPSS 17.0

Hi,
I am a newcomer on this list, but hope that somebody is able to help me with the follwoing issue:

I am doing a study on weight loss maintenance and followed my sample over
4 years. There is a lot of missing data and I performed the multiple imputation command with SPSS 17.0.

Now I have 5 data sets with different means and the regressions I performed show me a) a pooled model with no estimates for ß and b) no pooled result, because the significant predictors from the five sets vary greatly for this second regression.

I dont know how I can judge now which is the best of the imputed data sets and subsequently choose a model which I can describe in my research for the second regression. Furthermore, I would like to now if it is allowed to pool the regression coefficients of the single regressions performed on each data set and how I can do this with SPSS?

I would be more than happy if there is anybody who can tell me.

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

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************

=====================
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: Multiple IMputation with SPSS 17.0

Chipulu M.
Hi all,

Simple question: Does anyone know the code for a survey logistic regression similar to the one in SAS or STATA, including the calculation of predicted probabilities for the ordered categories?

Thanks in advance,

Max Chipulu
Southampton University

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

Changing file property

Thien Hop
Hi all,

I want to update a certain syntax file but its current properties are:
hidden, read-only & system file (r s h). May I know how to write a SPSS
syntax that can change the property of a file. I don't want to change it in
DOS or windows explorer

Thank you very much and appreciate any input.

Robert
----- Original Message -----
From: "Chipulu M." <[hidden email]>
To: <[hidden email]>
Sent: Wednesday, August 26, 2009 4:37 PM
Subject: Re: Multiple IMputation with SPSS 17.0


> Hi all,
>
> Simple question: Does anyone know the code for a survey logistic
> regression similar to the one in SAS or STATA, including the calculation
> of predicted probabilities for the ordered categories?
>
> Thanks in advance,
>
> Max Chipulu
> Southampton University
>
> =====================
> 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

=====================
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: Changing file property

Marta Garcia-Granero
Thien Hop wrote:
> I want to update a certain syntax file but its current properties are:
> hidden, read-only & system file (r s h). May I know how to write a SPSS
> syntax that can change the property of a file. I don't want to change
> it in
> DOS or windows explorer
The following syntax uses SPSS to go to a certain folder and change the
attributes of 'Macros.sps' to read only (+R) and hidden (+H). if you
want to remove those properties, uses -R and -H.

* Set 'Macros.sps' attributes to hidden and read only *.
HOST COMMAND=['CD C:\Documents and
Settings\MartaGG\Escritorio\TEXTOS\EFIG\Prácticas' 'ATTRIB Macros.sps +R
+H'].

* Remove hidden and read only attributes  *.
HOST COMMAND=['CD C:\Documents and
Settings\MartaGG\Escritorio\TEXTOS\EFIG\Prácticas' 'ATTRIB Macros.sps -R
-H'].

HTH,
MartaGG

--
For miscellaneous SPSS related statistical stuff, visit:
http://gjyp.nl/marta/

=====================
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: Changing file property

Thien Hop
Hi MartaGG,

Thanks a lot for your scripts. It seems to run with Python installed right?
Unfortunately I'm using SPSS12 and do not have Python also.

Is there any work around solution for normal syntax/ script in v12

Thank you very much,

Robert
----- Original Message -----
From: "Marta García-Granero" <[hidden email]>
To: <[hidden email]>
Sent: Wednesday, August 26, 2009 6:40 PM
Subject: Re: Changing file property


> Thien Hop wrote:
>> I want to update a certain syntax file but its current properties are:
>> hidden, read-only & system file (r s h). May I know how to write a SPSS
>> syntax that can change the property of a file. I don't want to change
>> it in
>> DOS or windows explorer
> The following syntax uses SPSS to go to a certain folder and change the
> attributes of 'Macros.sps' to read only (+R) and hidden (+H). if you
> want to remove those properties, uses -R and -H.
>
> * Set 'Macros.sps' attributes to hidden and read only *.
> HOST COMMAND=['CD C:\Documents and
> Settings\MartaGG\Escritorio\TEXTOS\EFIG\Prácticas' 'ATTRIB Macros.sps +R
> +H'].
>
> * Remove hidden and read only attributes  *.
> HOST COMMAND=['CD C:\Documents and
> Settings\MartaGG\Escritorio\TEXTOS\EFIG\Prácticas' 'ATTRIB Macros.sps -R
> -H'].
>
> HTH,
> MartaGG
>
> --
> For miscellaneous SPSS related statistical stuff, visit:
> http://gjyp.nl/marta/
>
> =====================
> 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

=====================
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: Changing file property

Marta Garcia-Granero
Thien Hop wrote:
> Hi MartaGG,
>
> Thanks a lot for your scripts. It seems to run with Python installed
> right? Unfortunately I'm using SPSS12 and do not have Python also.

HOST command doesn't require Python, as a matter of fact, I don't use
Python (yet), nor have it installed (yet).
>
> Is there any work around solution for normal syntax/ script in v12

To my knowledge, it should work OK with SPSS 12, unless the HOST command
was implemented later.

Have you tried it already? Do you get any error message?

Marta García-Granero



--
For miscellaneous SPSS related statistical stuff, visit:
http://gjyp.nl/marta/

=====================
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: Multiple IMputation with SPSS 17.0

Bruce Weaver
Administrator
In reply to this post by Joost van Ginkel
Ginkel, Joost van wrote
Dear Tanja,

I don't know if I understand correctly, but from what you're telling it seems that you're doing some kind of stepwise regression (forward, backward), since you were talking about a "second regression"? If so, the reason why SPSS does not give any pooled results is that it may have some trouble performing a stepwise regression for a multiply imputed dataset. For one imputed dataset, the regression may follow another path and may end up with another final model than for the other imputed dataset. So it's difficult to pool the results for the final solutions of each imputed dataset because they are all different. What you should do is perform the steps of the forward/backward regression manually and use the pooled results as a starting point. For example, you start with only predictor1 (using method Enter in regression). If the POOLED results of this regression show that this predictor is significant, perform a second regression (also using method Enter) with predictor 2 added. If the pooled results of this regression show that this predictor is significant, add a third one. If not, skip this one, and go to the next, and so on. What you definitely shouldn't do is arbitrarily pick the results of one dataset, especially if the results vary greatly among imputed dataset. If the results vary greatly, this means that there is a lot of uncertainty surrounding the missing data so that means that one single imputed dataset tells you very little, if anything at all. I hope this answers your question.

Best regards,

Joost van Ginkel
Or better yet, you decide on the basis of your knowledge of the area, and in keeping with any hypotheses you wish to test, which variables should be in the model.  Here is a list of problems with any kind of stepwise selection procedure:

   http://www.cmh.edu/stats/faq/faq12.asp

See also Mike Babyak's nice article on overfitting regression models:

   http://www.psychosomaticmedicine.org/cgi/content/full/66/3/411

Bruce
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

PLEASE NOTE THE FOLLOWING: 
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/).
Reply | Threaded
Open this post in threaded view
|

Re: Changing file property

Marta Garcia-Granero
In reply to this post by Marta Garcia-Granero
I wrote

> Thien Hop wrote:
>> Hi MartaGG,
>>
>> Thanks a lot for your scripts. It seems to run with Python installed
>> right? Unfortunately I'm using SPSS12 and do not have Python also.
>
> HOST command doesn't require Python, as a matter of fact, I don't use
> Python (yet), nor have it installed (yet).
>>
>> Is there any work around solution for normal syntax/ script in v12
>
> To my knowledge, it should work OK with SPSS 12, unless the HOST
> command was implemented later.
>
>
I have googled a bit and it looks like the HOST command was first
implemented in SPSS 13. Therefore, you will not be able to use it with
SPSS 12, and I don't think there's a workaround for it. Sorry, perhaps
it is time to update to a newer version? (15 is still my favorite flavor)

MGG

--
For miscellaneous SPSS related statistical stuff, visit:
http://gjyp.nl/marta/

=====================
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: Changing file property

John McConnell-2
Hi Thien

I think an alternative to Marta's suggestion in that case is to run a script (a .sbs file) to change the attributes.

For example...

--------------------------------------
Option Explicit


Sub Main

        Dim strFile As String
        Dim iAttrib As Integer

        strFile = "c:\temp\test.txt"

        'optionally check the current attributes
    iAttrib = GetAttr(strFile)

        'Set them to normal
    SetAttr strFile,0 'Normal

End Sub
--------------------------------------

If you want this to happen from a syntax (.sps) file then you can save the script with a name e.g. setFileAtt.sbs and run it from syntax using the SCRIPT command

e.g.
SCRIPT 'c:\temp\setFileAtt.sbs'.

The setattr options are:

VB Constant     Value   Explanation
vbNormal        0       Normal (default) - as above
vbReadOnly      1       Read-only
vbHidden        2       Hidden
vbSystem        4       System file
vbArchive       32      File has been changed since last backup
vbAlias 64      File name is an alias (Macintosh only)

Cheers

John


-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Marta García-Granero
Sent: 26 August 2009 15:11
To: [hidden email]
Subject: Re: Changing file property

I wrote

> Thien Hop wrote:
>> Hi MartaGG,
>>
>> Thanks a lot for your scripts. It seems to run with Python installed
>> right? Unfortunately I'm using SPSS12 and do not have Python also.
>
> HOST command doesn't require Python, as a matter of fact, I don't use
> Python (yet), nor have it installed (yet).
>>
>> Is there any work around solution for normal syntax/ script in v12
>
> To my knowledge, it should work OK with SPSS 12, unless the HOST
> command was implemented later.
>
>
I have googled a bit and it looks like the HOST command was first
implemented in SPSS 13. Therefore, you will not be able to use it with
SPSS 12, and I don't think there's a workaround for it. Sorry, perhaps
it is time to update to a newer version? (15 is still my favorite flavor)

MGG

--
For miscellaneous SPSS related statistical stuff, visit:
http://gjyp.nl/marta/

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

=====================
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: Multiple IMputation with SPSS 17.0

Bruce Weaver
Administrator
In reply to this post by Chipulu M.
Chipulu M. wrote
Hi all,

Simple question: Does anyone know the code for a survey logistic regression similar to the one in SAS or STATA, including the calculation of predicted probabilities for the ordered categories?

Thanks in advance,

Max Chipulu
Southampton University
I've never heard of a "survey" logistic regression.  Is it any different than plain ordinary (garden-variety) logistic regression?  In any case, it seems to me that the answer to your question is...

    "When all else fails, RTFM."

In SPSS, click on Help - Index, then type "logistic regression" (without the quotes).

--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

PLEASE NOTE THE FOLLOWING: 
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/).
Reply | Threaded
Open this post in threaded view
|

Re: Changing file property

Thien Hop
In reply to this post by Marta Garcia-Granero
Thank you Marta!, yes I think v12 does not support this command

----- Original Message -----
From: "Marta García-Granero" <[hidden email]>
To: <[hidden email]>
Sent: Wednesday, August 26, 2009 9:35 PM
Subject: Re: Changing file property


> Thien Hop wrote:
>> Hi MartaGG,
>>
>> Thanks a lot for your scripts. It seems to run with Python installed
>> right? Unfortunately I'm using SPSS12 and do not have Python also.
>
> HOST command doesn't require Python, as a matter of fact, I don't use
> Python (yet), nor have it installed (yet).
>>
>> Is there any work around solution for normal syntax/ script in v12
>
> To my knowledge, it should work OK with SPSS 12, unless the HOST command
> was implemented later.
>
> Have you tried it already? Do you get any error message?
>
> Marta García-Granero
>
>
>
> --
> For miscellaneous SPSS related statistical stuff, visit:
> http://gjyp.nl/marta/
>
> =====================
> 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

=====================
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: Changing file property

Thien Hop
In reply to this post by John McConnell-2
Hi John,

Thank you so much! your script is great it!. I wonder if there is any syntax
(**.sps) that can call a script to run without going to Utilities and click
"run script..."

Big appreciation,

Robert
----- Original Message -----
From: "John McConnell" <[hidden email]>
To: <[hidden email]>
Sent: Wednesday, August 26, 2009 10:37 PM
Subject: Re: Changing file property


> Hi Thien
>
> I think an alternative to Marta's suggestion in that case is to run a
> script (a .sbs file) to change the attributes.
>
> For example...
>
> --------------------------------------
> Option Explicit
>
>
> Sub Main
>
>        Dim strFile As String
>        Dim iAttrib As Integer
>
>        strFile = "c:\temp\test.txt"
>
>        'optionally check the current attributes
>    iAttrib = GetAttr(strFile)
>
>        'Set them to normal
>    SetAttr strFile,0 'Normal
>
> End Sub
> --------------------------------------
>
> If you want this to happen from a syntax (.sps) file then you can save the
> script with a name e.g. setFileAtt.sbs and run it from syntax using the
> SCRIPT command
>
> e.g.
> SCRIPT 'c:\temp\setFileAtt.sbs'.
>
> The setattr options are:
>
> VB Constant     Value   Explanation
> vbNormal        0       Normal (default) - as above
> vbReadOnly      1       Read-only
> vbHidden        2       Hidden
> vbSystem        4       System file
> vbArchive       32      File has been changed since last backup
> vbAlias 64      File name is an alias (Macintosh only)
>
> Cheers
>
> John
>
>
> -----Original Message-----
> From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
> Marta García-Granero
> Sent: 26 August 2009 15:11
> To: [hidden email]
> Subject: Re: Changing file property
>
> I wrote
>> Thien Hop wrote:
>>> Hi MartaGG,
>>>
>>> Thanks a lot for your scripts. It seems to run with Python installed
>>> right? Unfortunately I'm using SPSS12 and do not have Python also.
>>
>> HOST command doesn't require Python, as a matter of fact, I don't use
>> Python (yet), nor have it installed (yet).
>>>
>>> Is there any work around solution for normal syntax/ script in v12
>>
>> To my knowledge, it should work OK with SPSS 12, unless the HOST
>> command was implemented later.
>>
>>
> I have googled a bit and it looks like the HOST command was first
> implemented in SPSS 13. Therefore, you will not be able to use it with
> SPSS 12, and I don't think there's a workaround for it. Sorry, perhaps
> it is time to update to a newer version? (15 is still my favorite flavor)
>
> MGG
>
> --
> For miscellaneous SPSS related statistical stuff, visit:
> http://gjyp.nl/marta/
>
> =====================
> 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
>
> =====================
> 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

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

AW: Re: Changing file property

Georg Maubach-2
Hi Robert,

SPSS has the command SCRIPT .

HTH

Best regards

Georg Maubach

-----Ursprüngliche Nachricht-----
Von: SPSSX(r) Discussion [mailto:[hidden email]] Im Auftrag von Thien Hop
Gesendet: Donnerstag, 27. August 2009 13:30
An: [hidden email]
Betreff: Re: Changing file property

Hi John,

Thank you so much! your script is great it!. I wonder if there is any syntax
(**.sps) that can call a script to run without going to Utilities and click "run script..."

Big appreciation,

Robert
----- Original Message -----
From: "John McConnell" <[hidden email]>
To: <[hidden email]>
Sent: Wednesday, August 26, 2009 10:37 PM
Subject: Re: Changing file property


> Hi Thien
>
> I think an alternative to Marta's suggestion in that case is to run a
> script (a .sbs file) to change the attributes.
>
> For example...
>
> --------------------------------------
> Option Explicit
>
>
> Sub Main
>
>        Dim strFile As String
>        Dim iAttrib As Integer
>
>        strFile = "c:\temp\test.txt"
>
>        'optionally check the current attributes
>    iAttrib = GetAttr(strFile)
>
>        'Set them to normal
>    SetAttr strFile,0 'Normal
>
> End Sub
> --------------------------------------
>
> If you want this to happen from a syntax (.sps) file then you can save
> the script with a name e.g. setFileAtt.sbs and run it from syntax
> using the SCRIPT command
>
> e.g.
> SCRIPT 'c:\temp\setFileAtt.sbs'.
>
> The setattr options are:
>
> VB Constant     Value   Explanation
> vbNormal        0       Normal (default) - as above
> vbReadOnly      1       Read-only
> vbHidden        2       Hidden
> vbSystem        4       System file
> vbArchive       32      File has been changed since last backup
> vbAlias 64      File name is an alias (Macintosh only)
>
> Cheers
>
> John
>
>
> -----Original Message-----
> From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf
> Of Marta García-Granero
> Sent: 26 August 2009 15:11
> To: [hidden email]
> Subject: Re: Changing file property
>
> I wrote
>> Thien Hop wrote:
>>> Hi MartaGG,
>>>
>>> Thanks a lot for your scripts. It seems to run with Python installed
>>> right? Unfortunately I'm using SPSS12 and do not have Python also.
>>
>> HOST command doesn't require Python, as a matter of fact, I don't use
>> Python (yet), nor have it installed (yet).
>>>
>>> Is there any work around solution for normal syntax/ script in v12
>>
>> To my knowledge, it should work OK with SPSS 12, unless the HOST
>> command was implemented later.
>>
>>
> I have googled a bit and it looks like the HOST command was first
> implemented in SPSS 13. Therefore, you will not be able to use it with
> SPSS 12, and I don't think there's a workaround for it. Sorry, perhaps
> it is time to update to a newer version? (15 is still my favorite
> flavor)
>
> MGG
>
> --
> For miscellaneous SPSS related statistical stuff, visit:
> http://gjyp.nl/marta/
>
> =====================
> 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
>
> =====================
> 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

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

=====================
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: Changing file property

Thien Hop
Hi John & Georg,

Thank you so much the command SCRIPT in sps is great. It runs very well.

Sorry I have one more question, if there is a way to set execution timing to
such a script? It will be programed to only run on a certain date.

Big thanks!

Robert

----- Original Message -----
From: <[hidden email]>
To: <[hidden email]>; <[hidden email]>
Sent: Thursday, August 27, 2009 8:46 PM
Subject: AW: Re: Changing file property


Hi Robert,

SPSS has the command SCRIPT .

HTH

Best regards

Georg Maubach

-----Ursprüngliche Nachricht-----
Von: SPSSX(r) Discussion [mailto:[hidden email]] Im Auftrag von
Thien Hop
Gesendet: Donnerstag, 27. August 2009 13:30
An: [hidden email]
Betreff: Re: Changing file property

Hi John,

Thank you so much! your script is great it!. I wonder if there is any syntax
(**.sps) that can call a script to run without going to Utilities and click
"run script..."

Big appreciation,

Robert
----- Original Message -----
From: "John McConnell" <[hidden email]>
To: <[hidden email]>
Sent: Wednesday, August 26, 2009 10:37 PM
Subject: Re: Changing file property


> Hi Thien
>
> I think an alternative to Marta's suggestion in that case is to run a
> script (a .sbs file) to change the attributes.
>
> For example...
>
> --------------------------------------
> Option Explicit
>
>
> Sub Main
>
>        Dim strFile As String
>        Dim iAttrib As Integer
>
>        strFile = "c:\temp\test.txt"
>
>        'optionally check the current attributes
>    iAttrib = GetAttr(strFile)
>
>        'Set them to normal
>    SetAttr strFile,0 'Normal
>
> End Sub
> --------------------------------------
>
> If you want this to happen from a syntax (.sps) file then you can save
> the script with a name e.g. setFileAtt.sbs and run it from syntax
> using the SCRIPT command
>
> e.g.
> SCRIPT 'c:\temp\setFileAtt.sbs'.
>
> The setattr options are:
>
> VB Constant     Value   Explanation
> vbNormal        0       Normal (default) - as above
> vbReadOnly      1       Read-only
> vbHidden        2       Hidden
> vbSystem        4       System file
> vbArchive       32      File has been changed since last backup
> vbAlias 64      File name is an alias (Macintosh only)
>
> Cheers
>
> John
>
>
> -----Original Message-----
> From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf
> Of Marta García-Granero
> Sent: 26 August 2009 15:11
> To: [hidden email]
> Subject: Re: Changing file property
>
> I wrote
>> Thien Hop wrote:
>>> Hi MartaGG,
>>>
>>> Thanks a lot for your scripts. It seems to run with Python installed
>>> right? Unfortunately I'm using SPSS12 and do not have Python also.
>>
>> HOST command doesn't require Python, as a matter of fact, I don't use
>> Python (yet), nor have it installed (yet).
>>>
>>> Is there any work around solution for normal syntax/ script in v12
>>
>> To my knowledge, it should work OK with SPSS 12, unless the HOST
>> command was implemented later.
>>
>>
> I have googled a bit and it looks like the HOST command was first
> implemented in SPSS 13. Therefore, you will not be able to use it with
> SPSS 12, and I don't think there's a workaround for it. Sorry, perhaps
> it is time to update to a newer version? (15 is still my favorite
> flavor)
>
> MGG
>
> --
> For miscellaneous SPSS related statistical stuff, visit:
> http://gjyp.nl/marta/
>
> =====================
> 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
>
> =====================
> 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

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

=====================
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: Changing file property

Albert-Jan Roskam
Hi!

I've never tried it, but I'd make an .spp file in the Spss Production Facility, then make a small DOS batch (.bat) with the following: "c:\program files\spss\spssprod.exe"  "c:\data\myjob.spp" -s -r
Finally, you schedule that .bat file in the Windows Task Scheduler. Maybe Linux/Mac also have similar solutions. See the copy-pasted manual fragment below.

Btw, be careful with mixing scripts and spss code because they may not run in sync.

Cheers!!
Albert-Jan

Running Production Jobs from a Command Line
Production Facility,Production Facility,Production Facility
command line switches,command line switches,command line switches
Production Facility,Production Facility,Production Facility
scheduling production jobs,scheduling production jobs,scheduling production jobs
Production Facility,Production Facility,Production Facility
command line switches,command line switches,command line switches
Production Facility,Production Facility,Production Facility
command line switches,command line switches,command line switches
Production Facility,Production Facility,Production Facility
running multiple production jobs,running multiple production jobs,running multiple production jobs
Command line switches enable you to schedule production jobs to run at certain times with scheduling utilities like the one available in Microsoft Plus!. You can run production jobs from a command line with the following switches:
-r. Runs the production job. If the production job contains any user prompts, you must supply the requested information before the production job will run.
-s. Runs the production job and suppresses any user prompts or alerts. The default user prompt values are used automatically.
Distributed analysis. If you have network access to the server version of SPSS, you can also use the following switches to run the Production Facility in distributed analysis mode:
-x. Name or IP address of the remote server.
-n. Port number.
-d. Domain name.
-u. User ID for remote server access.
-p. Password for remote server access.
If you specify any of the command lines switches for distributed analysis, you must specify all of the distributed analysis command line switches (-x, -n, -d, -u, and -p).
You should provide the full path for both the Production Facility (spssprod.exe) and the production job, and both should be enclosed in quotes, as in:
"c:\program files\spss\spssprod.exe"  "c:\spss\datajobs\prodjob.spp" -s -r

For command line switches that require additional specifications, the switch must be followed by an equals sign followed immediately by the specification. If the specification contains spaces (such as a two-word server name), enclose the value in quotes or apostrophes, as in:
-x="HAL 9000" -u="secret word"

Default server. If you have network access to the server version of SPSS, the default server and related information (if not specified in command line switches) is the default server specified in the SPSS Server Login dialog box. If no default is specified there, the job runs in local mode.
If you want to run a production job in local mode but your local computer is not your default server, specify null quoted strings for all of the distributed analysis command line switches, as in:
"c:\program files\spss\spssprod.exe"  "c:\spss\datajobs\prodjob.spp" -x="" -n="" -d="" -u="" -p=""
Running Multiple Production Jobs
If you use a batch (.bat) file or similar facility to run multiple production jobs, use the Windows Start command with the /wait switch to control execution of each job, preventing subsequent jobs from starting before the previous job ends, as in:
cd \program files\spss
start /wait spssprod.exe prodjob1.spp -s
start /wait spssprod.exe prodjob2.spp -s




----- Original Message ----
From: Thien Hop <[hidden email]>
To: [hidden email]
Sent: Friday, August 28, 2009 5:28:17 AM
Subject: Re: [SPSSX-L] Changing file property

Hi John & Georg,

Thank you so much the command SCRIPT in sps is great. It runs very well.

Sorry I have one more question, if there is a way to set execution timing to
such a script? It will be programed to only run on a certain date.

Big thanks!

Robert

----- Original Message -----
From: <[hidden email]>
To: <[hidden email]>; <[hidden email]>
Sent: Thursday, August 27, 2009 8:46 PM
Subject: AW: Re: Changing file property


Hi Robert,

SPSS has the command SCRIPT .

HTH

Best regards

Georg Maubach

-----Ursprüngliche Nachricht-----
Von: SPSSX(r) Discussion [mailto:[hidden email]] Im Auftrag von
Thien Hop
Gesendet: Donnerstag, 27. August 2009 13:30
An: [hidden email]
Betreff: Re: Changing file property

Hi John,

Thank you so much! your script is great it!. I wonder if there is any syntax
(**.sps) that can call a script to run without going to Utilities and click
"run script..."

Big appreciation,

Robert
----- Original Message -----
From: "John McConnell" <[hidden email]>
To: <[hidden email]>
Sent: Wednesday, August 26, 2009 10:37 PM
Subject: Re: Changing file property


> Hi Thien
>
> I think an alternative to Marta's suggestion in that case is to run a
> script (a .sbs file) to change the attributes.
>
> For example...
>
> --------------------------------------
> Option Explicit
>
>
> Sub Main
>
>        Dim strFile As String
>        Dim iAttrib As Integer
>
>        strFile = "c:\temp\test.txt"
>
>        'optionally check the current attributes
>    iAttrib = GetAttr(strFile)
>
>        'Set them to normal
>    SetAttr strFile,0 'Normal
>
> End Sub
> --------------------------------------
>
> If you want this to happen from a syntax (.sps) file then you can save
> the script with a name e.g. setFileAtt.sbs and run it from syntax
> using the SCRIPT command
>
> e.g.
> SCRIPT 'c:\temp\setFileAtt.sbs'.
>
> The setattr options are:
>
> VB Constant    Value  Explanation
> vbNormal        0      Normal (default) - as above
> vbReadOnly      1      Read-only
> vbHidden        2      Hidden
> vbSystem        4      System file
> vbArchive      32      File has been changed since last backup
> vbAlias 64      File name is an alias (Macintosh only)
>
> Cheers
>
> John
>
>
> -----Original Message-----
> From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf
> Of Marta García-Granero
> Sent: 26 August 2009 15:11
> To: [hidden email]
> Subject: Re: Changing file property
>
> I wrote
>> Thien Hop wrote:
>>> Hi MartaGG,
>>>
>>> Thanks a lot for your scripts. It seems to run with Python installed
>>> right? Unfortunately I'm using SPSS12 and do not have Python also.
>>
>> HOST command doesn't require Python, as a matter of fact, I don't use
>> Python (yet), nor have it installed (yet).
>>>
>>> Is there any work around solution for normal syntax/ script in v12
>>
>> To my knowledge, it should work OK with SPSS 12, unless the HOST
>> command was implemented later.
>>
>>
> I have googled a bit and it looks like the HOST command was first
> implemented in SPSS 13. Therefore, you will not be able to use it with
> SPSS 12, and I don't think there's a workaround for it. Sorry, perhaps
> it is time to update to a newer version? (15 is still my favorite
> flavor)
>
> MGG
>
> --
> For miscellaneous SPSS related statistical stuff, visit:
> http://gjyp.nl/marta/
>
> =====================
> 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
>
> =====================
> 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

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

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

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

AW: Re: Changing file property

Georg Maubach-2
In reply to this post by Thien Hop
Hi Robert,

as far as I know there is no scheduler within SPSS. The only possibilty I see is to create an entry in Windows Scheduler (Start/Programs/Accessories/System Programs/Planned Tasks, I am not really sure if this the correct place in an English configured system) or a cronjob on Unix/Linux or a Python Scheduler on any system (run separately from SPSS 15). This Python Module could be a little script that is run every time the system starts.

HTH

Best regards

Georg Maubach




-----Ursprüngliche Nachricht-----
Von: Thien Hop [mailto:[hidden email]]
Gesendet: Freitag, 28. August 2009 05:28
An: Maubach, Georg MRSC; [hidden email]
Betreff: Re: Re: Changing file property

Hi John & Georg,

Thank you so much the command SCRIPT in sps is great. It runs very well.

Sorry I have one more question, if there is a way to set execution timing to such a script? It will be programed to only run on a certain date.

Big thanks!

Robert

----- Original Message -----
From: <[hidden email]>
To: <[hidden email]>; <[hidden email]>
Sent: Thursday, August 27, 2009 8:46 PM
Subject: AW: Re: Changing file property


Hi Robert,

SPSS has the command SCRIPT .

HTH

Best regards

Georg Maubach

-----Ursprüngliche Nachricht-----
Von: SPSSX(r) Discussion [mailto:[hidden email]] Im Auftrag von
Thien Hop
Gesendet: Donnerstag, 27. August 2009 13:30
An: [hidden email]
Betreff: Re: Changing file property

Hi John,

Thank you so much! your script is great it!. I wonder if there is any syntax
(**.sps) that can call a script to run without going to Utilities and click
"run script..."

Big appreciation,

Robert
----- Original Message -----
From: "John McConnell" <[hidden email]>
To: <[hidden email]>
Sent: Wednesday, August 26, 2009 10:37 PM
Subject: Re: Changing file property


> Hi Thien
>
> I think an alternative to Marta's suggestion in that case is to run a
> script (a .sbs file) to change the attributes.
>
> For example...
>
> --------------------------------------
> Option Explicit
>
>
> Sub Main
>
>        Dim strFile As String
>        Dim iAttrib As Integer
>
>        strFile = "c:\temp\test.txt"
>
>        'optionally check the current attributes
>    iAttrib = GetAttr(strFile)
>
>        'Set them to normal
>    SetAttr strFile,0 'Normal
>
> End Sub
> --------------------------------------
>
> If you want this to happen from a syntax (.sps) file then you can save
> the script with a name e.g. setFileAtt.sbs and run it from syntax
> using the SCRIPT command
>
> e.g.
> SCRIPT 'c:\temp\setFileAtt.sbs'.
>
> The setattr options are:
>
> VB Constant     Value   Explanation
> vbNormal        0       Normal (default) - as above
> vbReadOnly      1       Read-only
> vbHidden        2       Hidden
> vbSystem        4       System file
> vbArchive       32      File has been changed since last backup
> vbAlias 64      File name is an alias (Macintosh only)
>
> Cheers
>
> John
>
>
> -----Original Message-----
> From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf
> Of Marta García-Granero
> Sent: 26 August 2009 15:11
> To: [hidden email]
> Subject: Re: Changing file property
>
> I wrote
>> Thien Hop wrote:
>>> Hi MartaGG,
>>>
>>> Thanks a lot for your scripts. It seems to run with Python installed
>>> right? Unfortunately I'm using SPSS12 and do not have Python also.
>>
>> HOST command doesn't require Python, as a matter of fact, I don't use
>> Python (yet), nor have it installed (yet).
>>>
>>> Is there any work around solution for normal syntax/ script in v12
>>
>> To my knowledge, it should work OK with SPSS 12, unless the HOST
>> command was implemented later.
>>
>>
> I have googled a bit and it looks like the HOST command was first
> implemented in SPSS 13. Therefore, you will not be able to use it with
> SPSS 12, and I don't think there's a workaround for it. Sorry, perhaps
> it is time to update to a newer version? (15 is still my favorite
> flavor)
>
> MGG
>
> --
> For miscellaneous SPSS related statistical stuff, visit:
> http://gjyp.nl/marta/
>
> =====================
> 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
>
> =====================
> 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

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

=====================
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: Changing file property

Thien Hop
In reply to this post by Albert-Jan Roskam
Thank you Georg and Albert for your advise. I will try out your suggestion.

Cheers,

Robert
----- Original Message -----
From: "Albert-Jan Roskam" <[hidden email]>
To: "Thien Hop" <[hidden email]>; <[hidden email]>
Sent: Friday, August 28, 2009 5:43 PM
Subject: Re: [SPSSX-L] Changing file property


Hi!

I've never tried it, but I'd make an .spp file in the Spss Production
Facility, then make a small DOS batch (.bat) with the following: "c:\program
files\spss\spssprod.exe" "c:\data\myjob.spp" -s -r
Finally, you schedule that .bat file in the Windows Task Scheduler. Maybe
Linux/Mac also have similar solutions. See the copy-pasted manual fragment
below.

Btw, be careful with mixing scripts and spss code because they may not run
in sync.

Cheers!!
Albert-Jan

Running Production Jobs from a Command Line
Production Facility,Production Facility,Production Facility
command line switches,command line switches,command line switches
Production Facility,Production Facility,Production Facility
scheduling production jobs,scheduling production jobs,scheduling production
jobs
Production Facility,Production Facility,Production Facility
command line switches,command line switches,command line switches
Production Facility,Production Facility,Production Facility
command line switches,command line switches,command line switches
Production Facility,Production Facility,Production Facility
running multiple production jobs,running multiple production jobs,running
multiple production jobs
Command line switches enable you to schedule production jobs to run at
certain times with scheduling utilities like the one available in Microsoft
Plus!. You can run production jobs from a command line with the following
switches:
-r. Runs the production job. If the production job contains any user
prompts, you must supply the requested information before the production job
will run.
-s. Runs the production job and suppresses any user prompts or alerts. The
default user prompt values are used automatically.
Distributed analysis. If you have network access to the server version of
SPSS, you can also use the following switches to run the Production Facility
in distributed analysis mode:
-x. Name or IP address of the remote server.
-n. Port number.
-d. Domain name.
-u. User ID for remote server access.
-p. Password for remote server access.
If you specify any of the command lines switches for distributed analysis,
you must specify all of the distributed analysis command line switches
(-x, -n, -d, -u, and -p).
You should provide the full path for both the Production Facility
(spssprod.exe) and the production job, and both should be enclosed in
quotes, as in:
"c:\program files\spss\spssprod.exe"  "c:\spss\datajobs\prodjob.spp" -s -r

For command line switches that require additional specifications, the switch
must be followed by an equals sign followed immediately by the
specification. If the specification contains spaces (such as a two-word
server name), enclose the value in quotes or apostrophes, as in:
-x="HAL 9000" -u="secret word"

Default server. If you have network access to the server version of SPSS,
the default server and related information (if not specified in command line
switches) is the default server specified in the SPSS Server Login dialog
box. If no default is specified there, the job runs in local mode.
If you want to run a production job in local mode but your local computer is
not your default server, specify null quoted strings for all of the
distributed analysis command line switches, as in:
"c:\program files\spss\spssprod.exe"
 "c:\spss\datajobs\prodjob.spp" -x="" -n="" -d="" -u="" -p=""
Running Multiple Production Jobs
If you use a batch (.bat) file or similar facility to run multiple
production jobs, use the Windows Start command with the /wait switch to
control execution of each job, preventing subsequent jobs from starting
before the previous job ends, as in:
cd \program files\spss
start /wait spssprod.exe prodjob1.spp -s
start /wait spssprod.exe prodjob2.spp -s




----- Original Message ----
From: Thien Hop <[hidden email]>
To: [hidden email]
Sent: Friday, August 28, 2009 5:28:17 AM
Subject: Re: [SPSSX-L] Changing file property

Hi John & Georg,

Thank you so much the command SCRIPT in sps is great. It runs very well.

Sorry I have one more question, if there is a way to set execution timing to
such a script? It will be programed to only run on a certain date.

Big thanks!

Robert

----- Original Message -----
From: <[hidden email]>
To: <[hidden email]>; <[hidden email]>
Sent: Thursday, August 27, 2009 8:46 PM
Subject: AW: Re: Changing file property


Hi Robert,

SPSS has the command SCRIPT .

HTH

Best regards

Georg Maubach

-----Ursprüngliche Nachricht-----
Von: SPSSX(r) Discussion [mailto:[hidden email]] Im Auftrag von
Thien Hop
Gesendet: Donnerstag, 27. August 2009 13:30
An: [hidden email]
Betreff: Re: Changing file property

Hi John,

Thank you so much! your script is great it!. I wonder if there is any syntax
(**.sps) that can call a script to run without going to Utilities and click
"run script..."

Big appreciation,

Robert
----- Original Message -----
From: "John McConnell" <[hidden email]>
To: <[hidden email]>
Sent: Wednesday, August 26, 2009 10:37 PM
Subject: Re: Changing file property


> Hi Thien
>
> I think an alternative to Marta's suggestion in that case is to run a
> script (a .sbs file) to change the attributes.
>
> For example...
>
> --------------------------------------
> Option Explicit
>
>
> Sub Main
>
> Dim strFile As String
> Dim iAttrib As Integer
>
> strFile = "c:\temp\test.txt"
>
> 'optionally check the current attributes
> iAttrib = GetAttr(strFile)
>
> 'Set them to normal
> SetAttr strFile,0 'Normal
>
> End Sub
> --------------------------------------
>
> If you want this to happen from a syntax (.sps) file then you can save
> the script with a name e.g. setFileAtt.sbs and run it from syntax
> using the SCRIPT command
>
> e.g.
> SCRIPT 'c:\temp\setFileAtt.sbs'.
>
> The setattr options are:
>
> VB Constant Value Explanation
> vbNormal 0 Normal (default) - as above
> vbReadOnly 1 Read-only
> vbHidden 2 Hidden
> vbSystem 4 System file
> vbArchive 32 File has been changed since last backup
> vbAlias 64 File name is an alias (Macintosh only)
>
> Cheers
>
> John
>
>
> -----Original Message-----
> From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf
> Of Marta García-Granero
> Sent: 26 August 2009 15:11
> To: [hidden email]
> Subject: Re: Changing file property
>
> I wrote
>> Thien Hop wrote:
>>> Hi MartaGG,
>>>
>>> Thanks a lot for your scripts. It seems to run with Python installed
>>> right? Unfortunately I'm using SPSS12 and do not have Python also.
>>
>> HOST command doesn't require Python, as a matter of fact, I don't use
>> Python (yet), nor have it installed (yet).
>>>
>>> Is there any work around solution for normal syntax/ script in v12
>>
>> To my knowledge, it should work OK with SPSS 12, unless the HOST
>> command was implemented later.
>>
>>
> I have googled a bit and it looks like the HOST command was first
> implemented in SPSS 13. Therefore, you will not be able to use it with
> SPSS 12, and I don't think there's a workaround for it. Sorry, perhaps
> it is time to update to a newer version? (15 is still my favorite
> flavor)
>
> MGG
>
> --
> For miscellaneous SPSS related statistical stuff, visit:
> http://gjyp.nl/marta/
>
> =====================
> 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
>
> =====================
> 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

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

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

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