The code below is applied to a file that already contains several variables, to which I want to add two more that I create (but it is too large to go through email and my attempts to select the first 100 records is not working either). When the code gets to COMPUTE EndDate = YRMODA(2021, 01, 31)., the program crashes with all of its windows disappearing from the screen.
What am I doing wrong and what do I have to do to correct it? 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 on the next line*/ COMPUTE EndDate = YRMODA(2021, 01, 31). FORMAT EndDate (ADATE10). COMPUTE AgeInMonths = DATEDIFF(EndDate,BirthDate,'days') / (365.25*12). ________________________________ From: Pspp-users <pspp-users-bounces+ricardomejias=hotmail....@gnu.org> on behalf of pspp-users-requ...@gnu.org <pspp-users-requ...@gnu.org> Sent: Saturday, March 6, 2021 12:00 PM To: pspp-users@gnu.org <pspp-users@gnu.org> Subject: Pspp-users Digest, Vol 177, Issue 6 Send Pspp-users mailing list submissions to pspp-users@gnu.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.gnu.org/mailman/listinfo/pspp-users or, via email, send a message with subject or body 'help' to pspp-users-requ...@gnu.org You can reach the person managing the list at pspp-users-ow...@gnu.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Pspp-users digest..." Today's Topics: 1. Re: Re: PSPP for windows. (Harry Thijssen) ---------------------------------------------------------------------- Message: 1 Date: Fri, 5 Mar 2021 21:25:20 +0100 From: Harry Thijssen <pspp4wind...@gmail.com> To: pspp-users <pspp-users@gnu.org>, Alan Mead <ame...@alanmead.org> Subject: Re: Re: PSPP for windows. Message-ID: <cammrg9t14argayxsauz_mhymtv9nep6ld-+n9aw7o5xu-ut...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" > > Date: Thu, 4 Mar 2021 19:31:19 -0600 > From: Alan Mead <ame...@alanmead.org> > To: Gunnar Horrigmo <gunnar.horri...@usit.uio.no>, pspp-users@gnu.org > Subject: Re: PSPP for windows. > [...] > Harry Thijssen had set up a process to cross-compile PSPP on Linux to > produce a windows package (and I think he also wrote the nullsoft > installer). Thanks Alan, but I don't earn the credits for the Nullsoft installer. I am just a user of it. :-) Stay safe -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.gnu.org/archive/html/pspp-users/attachments/20210305/896bdab0/attachment.html> ------------------------------ Subject: Digest Footer _______________________________________________ Pspp-users mailing list Pspp-users@gnu.org https://lists.gnu.org/mailman/listinfo/pspp-users ------------------------------ End of Pspp-users Digest, Vol 177, Issue 6 ******************************************