Exactly which syntax from SPSStools.net are you using? Does your .sav file include filenames? If yes, then you could merge the creation date and time as well as the file sizes into your .sav file with a match files command from an external table including this information. But where do we get such a table? I thought SYSFILE INFO within OMS would do the trick here but it seems to work only on .sav files, not .txt. However, the HOST command below seems to work (for me at least). I pasted the GET DATA command from the GUI with tabs and spaces as delimiters. Well, maybe it's not as nice as the Python solution but I hope you'll find it useful.
Ruben van den Berg
P: +31 20 522 5738
* OMS.OMS /SELECT ALL /IF COMMANDS = ["Host"] /DESTINATION FORMAT = TABTEXT OUTFILE = "textfiles.txt" /TAG = "textfiles".
host command=['dir c:\temp\*.txt'].
GET DATA /TYPE = TXT /FILE = 'C:\Temp\textfiles.txt' /DELCASE = LINE /DELIMITERS = "\t " /ARRANGEMENT = DELIMITED /FIRSTCASE = 1 /IMPORTCASE = ALL /VARIABLES = V1 A10 V2 A12 V3 A14 V4 A20 V5 A17 V6 A5 V7 A4 V8 A5 .CACHE.EXECUTE.DATASET NAME D1 WINDOW=FRONT.
sel if ind(v2,":")>0.exe.
> Date: Sat, 20 Feb 2010 10:35:41 +0100
> From: email@example.com
> Subject: file date stamp as a variable
> To: SPSSX-L@LISTSERV.UGA.EDU
> dear list members
> I have about 1400 small text files that need to be converted to one
> single system file (sav). I found a way to do this on the
> spsstools.net site. However, I also want to include the time stamp of
> these text files (time and date the file was created on disc) as a
> variable in the system file. Is there a way to do this in an automated
> Maurice Vergeer
> Maurice Vergeer
> Department of communication
> Radboud University (www.ru.nl)
> PO Box 9104
> NL-6500 HE Nijmegen
> The Netherlands
> Visiting Professor Yeungnam University, Gyeongsan, South Korea
> E: firstname.lastname@example.org
> T: +31 24 3612297 (direct)/ 3612372 (secretary) / maurice.vergeer (skype)
> personal webpage: www.mauricevergeer.nl
> blog: http://blog.mauricevergeer.nl/
> Journalism: www.journalisteninhetdigitaletijdperk.nl
> CENMEP New Media and European Parliament Elections 2009
> Recent publications:
> - Vergeer, M. & Pelzer, B. (2009). Consequences of media and Internet
> use for offline and online network capital and well-being. A causal
> model approach. Journal of Computer-Mediated Communication, 15,
> -Vergeer, M., Coenders, M. & Scheepers, P. (2009). Time spent on
> television in European countries. In R.P. Konig, P.W.M. Nelissen, &
> F.J.M. Huysmans (Eds.), Meaningful media: Communication Research on
> the Social Construction of Reality (54-73). Nijmegen, The Netherlands:
> Tandem Felix.
> - Hermans, L., Vergeer, M., & d’Haenens, L. (2009). Internet in the
> daily life of journalists. Explaining the use of the Internet through
> work-related characteristics and professional opinions. Journal of
> Computer-Mediated Communication, 15, 138-157.
> - Hermans, L., Vergeer, M., & Pleijter, A. (2009). Internet Adoption
> in the Newsroom: Journalists’ use of the Internet explained by
> Attitudes and Perceived Functions. Communications. The European
> Journal of Communication, 34(1), 55-71.
> - Vergeer, M., & Hermans, L. (2008). Analyzing online political
> discussions: Methodological considerations. Javnost/The Public, 15(2),
> To manage your subscription to SPSSX-L, send a message to
> LISTSERV@LISTSERV.UGA.EDU (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
New Windows 7: Find the right PC for you. Learn more.