bug-gnu-pspp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PSPP-BUG: corrupted portable file


From: John Darrington
Subject: Re: PSPP-BUG: corrupted portable file
Date: Sun, 10 May 2009 21:14:46 +0800
User-agent: Mutt/1.5.18 (2008-05-17)

This bug has already been fixed in the stable git repostitory.

See
http://git.savannah.gnu.org/cgit/pspp.git/commit/?h=stable&id=92f9121c49de9f91d9d743b5dc854cf701713dc5


On Sun, May 10, 2009 at 02:33:45PM +0200, pascal barbedor wrote:
     
     below is a program that writes a corrupted portable file because of missing
     values in numeric fields.
     
     
     ------------------------------------------------------------------------
     
     INPUT PROGRAM.
     
         STRING dtrav (A2).
         NUMERIC ppartiel (F5.2).
     
         DATA LIST FREE TABLE / rubrique  (A2) value (A4).
     
         DO IF (rubrique='r1').
            COMPUTE dtrav = value.
            COMPUTE ppartiel = $SYSMIS.
            leave dtrav.
     
         ELSE IF (rubrique = 'r2').
            COMPUTE ppartiel = NUMBER(value, F4.0) / 100.
            leave ppartiel.
     
         ELSE IF (rubrique ='--').
            END CASE.
     
         END IF.
     
     END INPUT PROGRAM.
     
     BEGIN DATA.
     r1,'01'
     --, ''
     r1,'02'
     r2,'8555'
     --, ''
     r1,'02'
     r2,'    '
     --, ''
     END DATA.
     
     LIST.
     
     EXPORT / OUTFILE = 'test.por'.
     EXECUTE.
     
     
     
     the error message after GET / file = 'test.por' .  is :
     
     PSPP error: portable file test.por corrupt at offset 0x282: Number 
expected.
     
     Regards,
     
     PB

     _______________________________________________
     Bug-gnu-pspp mailing list
     address@hidden
     http://lists.gnu.org/mailman/listinfo/bug-gnu-pspp


-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.


Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]