LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (February 2010)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Sun, 21 Feb 2010 10:57:11 +0000
Reply-To:   Ruben van den Berg <ruben_van_den_berg@hotmail.com>
Sender:   "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:   Ruben van den Berg <ruben_van_den_berg@hotmail.com>
Subject:   Re: file date stamp as a variable
Comments:   To: m.vergeer@maw.ru.nl
In-Reply-To:   <4c2416b1002200135p86ee577r2618057675c00482@mail.gmail.com>
Content-Type:   multipart/alternative;

Dear Maurice, 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.

Best regards, Ruben van den Berg Methodologist TNS NIPO E: ruben_van_den_berg@hotmail.com P: +31 20 522 5738 I: www.tns-nipo.com cd 'c:\temp'. * OMS.OMS /SELECT ALL /IF COMMANDS = ["Host"] /DESTINATION FORMAT = TABTEXT OUTFILE = "textfiles.txt" /TAG = "textfiles". host command=['dir c:\temp\*.txt']. omsend tag=['textfiles']. 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: m.vergeer@maw.ru.nl > 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 > way? > > thanks > 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 > > contact: > E: m.vergeer@maw.ru.nl > 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 > http://mauricevergeer.ruhosting.nl/cenmep > > 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, > 189-210. > -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), > 37-56. > ___________________________________________________________________ > > ===================== > 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. http://windows.microsoft.com/shop


[text/html]


Back to: Top of message | Previous page | Main SPSSX-L page