|
From: | Ricardo Mejias |
Subject: | Re: PROBLEM CREATING A DATE VARIABLE |
Date: | Sun, 7 Mar 2021 12:51:52 +0000 |
My version of PSPP is GNU pspp 1.4.1-g79ad47 and I am on Windows 10. BirthDate
is Date and ResidenceZipcode is String.
I used this code and I still got the total number of records of 15,782,637.
GET /FILE = "E:\GNU_PSPP\FloridaTotalsFiles\SelectedAndAddedFields_20210209.sav".
N 100.
I reran the code up to the line where it crashes and it crashed again.
GET /FILE = "E:\GNU_PSPP\FloridaTotalsFiles\SelectedAndAddedFields_20210209.sav".
FILTER OFF.
USE ALL.
SELECT IF(NOT MISSING(BirthDate)).
STRING ResidenceZipcodes (A5).
COMPUTE ResidenceZipcodes=SUBSTR(ResidenceZipcode,1,5).
DELETE VARIABLES ResidenceZipcode.
NUMERIC EndDate (F10). /*Worked up to here. Crashes after that*/
COMPUTE EndDate = YRMODA(2021, 01, 31).
EXECUTE.
From: Alan Mead <amead@alanmead.org>
Sent: Saturday, March 6, 2021 11:31 PM To: Ricardo Mejias <ricardomejias@hotmail.com> Subject: Re: PROBLEM CREATING A DATE VARIABLE This page describes selecting cases:
https://www.ibm.com/support/knowledgecenter/SSLVMB_sub/statistics_reference_project_ddita/spss/base/syn_n_of_cases_overview.html . Suposedly, this will only read 100 cases:
GET FILE='/data/city.sav'. N 100. What version of PSPP are you using? YOu can see it if you select Help > About: What types are BirthDate and ResidenceZipcode? I ran your script and it ran fine, but it had errors that prevented some of the lines from executing. But the lines that you think are causing trouble seemed to execute correctly: -Alan On 3/6/2021 8:33 PM, Ricardo Mejias wrote:
-- Alan D. Mead, Ph.D. President, Talent Algorithms Inc. science + technology = better workers https://talalg.com Ginsberg's Theorem: 0. There is a game. 1. You can't win. 2. You can't break even. 3. You can't even get out of the game. |
[Prev in Thread] | Current Thread | [Next in Thread] |