save outfile

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

save outfile

drfg2008

SPSS 20

Is it possible without using Python to save a file with the current date (ore the current date minus one day) within the file name? With Python it is possible, but without Python?

Example:

SAVE OUTFILE='C:\file_20-07-2013.sav'.

Current date: 21-07-2013. File name: current date minus one day:20-07-2013.

The script running the program and saving the file is started by the Windows schedular.

Thanks
Dr. Frank Gaeth

Reply | Threaded
Open this post in threaded view
|

Re: save outfile

David Marso
Administrator
Hint: http://spssx-discussion.1045642.n5.nabble.com/template/NamlServlet.jtp?macro=search_page&node=1068821&query=Horrible+Hack&n=1068821

drfg2008 wrote
SPSS 20

Is it possible without using Python to save a file with the current date (ore the current date minus one day) within the file name? With Python it is possible, but without Python?

Example:

SAVE OUTFILE='C:\file_20-07-2013.sav'.

Current date: 21-07-2013. File name: current date minus one day:20-07-2013.

The script running the program and saving the file is started by the Windows schedular.

Thanks
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Re: save outfile

drfg2008
?
Dr. Frank Gaeth

Reply | Threaded
Open this post in threaded view
|

Re: save outfile

kwame woei
It's possible.

You need to 1) write the current date to a macro, 2) load the macro in the memory and 3) call the macro in another macro which saves the outfile.

http://spssx-discussion.1045642.n5.nabble.com/OMS-and-current-timestamp-td5717453.html#a5717864


Op 21 jul. 2013 om 20:46 heeft "drfg2008" <[hidden email]> het volgende geschreven:

> ?
>
>
>
> -----
> Dr. Frank Gaeth
> FU-Berlin
>
> --
> View this message in context: http://spssx-discussion.1045642.n5.nabble.com/save-outfile-tp5721289p5721291.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

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