{"action":"created","issue":{"url":"https://api.github.com/repos/BioStatMatt/sas7bdat.parso/issues/5","labels_url":"https://api.github.com/repos/BioStatMatt/sas7bdat.parso/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/BioStatMatt/sas7bdat.parso/issues/5/comments","events_url":"https://api.github.com/repos/BioStatMatt/sas7bdat.parso/issues/5/events","html_url":"https://github.com/BioStatMatt/sas7bdat.parso/issues/5","id":59735424,"number":5,"title":"example file where import is getting corrupted despite no error or warning","user":{"login":"ajdamico","id":216807,"avatar_url":"https://avatars.githubusercontent.com/u/216807?v=3","gravatar_id":"","url":"https://api.github.com/users/ajdamico","html_url":"https://github.com/ajdamico","followers_url":"https://api.github.com/users/ajdamico/followers","following_url":"https://api.github.com/users/ajdamico/following{/other_user}","gists_url":"https://api.github.com/users/ajdamico/gists{/gist_id}","starred_url":"https://api.github.com/users/ajdamico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajdamico/subscriptions","organizations_url":"https://api.github.com/users/ajdamico/orgs","repos_url":"https://api.github.com/users/ajdamico/repos","events_url":"https://api.github.com/users/ajdamico/events{/privacy}","received_events_url":"https://api.github.com/users/ajdamico/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-04T01:15:55Z","updated_at":"2015-07-07T12:47:02Z","closed_at":null,"body":"hi Matthew, loading this sas7bdat file into SPSS, this field should have eight distinct values.\r\n\r\n![phf_seq unique values](https://cloud.githubusercontent.com/assets/216807/6476271/bda1883e-c1e1-11e4-8cf3-1c9e60566fa4.png)\r\n\r\nsas7bdat.parso reads them in without any apparent problem -- but the result is wrong.  reproducible script below.  thanks!\r\n\r\n\r\n\t# import this census research file\r\n\tlibrary(sas7bdat.parso)\r\n\ttf <- tempfile()\r\n\tdownload.file( \"http://www.census.gov/housing/extract_files/data%20extracts/cpsasec14/pppub14_redes.sas7bdat\" , tf , mode = 'wb' )\r\n\r\n\t# this file is compressed, so use `parso`\r\n\tx <- read.sas7bdat.parso( tf )\r\n\r\n\t# about 60k records\r\n\tnrow( x )\r\n\r\n\t# look at the first fifty records..lots of different results here\r\n\thead( x$PHF_SEQ , 50 )\r\n\r\n\t# integer class\r\n\tclass( x$PHF_SEQ )\r\n\r\n\t# there are lots of unique values\r\n\tlength( unique( x$PHF_SEQ ) )\r\n\t# there should only be eight.\r\n"},"comment":{"url":"https://api.github.com/repos/BioStatMatt/sas7bdat.parso/issues/comments/119193322","html_url":"https://github.com/BioStatMatt/sas7bdat.parso/issues/5#issuecomment-119193322","issue_url":"https://api.github.com/repos/BioStatMatt/sas7bdat.parso/issues/5","id":119193322,"user":{"login":"printsev","id":13214727,"avatar_url":"https://avatars.githubusercontent.com/u/13214727?v=3","gravatar_id":"","url":"https://api.github.com/users/printsev","html_url":"https://github.com/printsev","followers_url":"https://api.github.com/users/printsev/followers","following_url":"https://api.github.com/users/printsev/following{/other_user}","gists_url":"https://api.github.com/users/printsev/gists{/gist_id}","starred_url":"https://api.github.com/users/printsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/printsev/subscriptions","organizations_url":"https://api.github.com/users/printsev/orgs","repos_url":"https://api.github.com/users/printsev/repos","events_url":"https://api.github.com/users/printsev/events{/privacy}","received_events_url":"https://api.github.com/users/printsev/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T12:47:02Z","updated_at":"2015-07-07T12:47:02Z","body":"@harrysouthworth glad you were able to fix this, and we are working on the other issue. We do not really use the csv writer in java, but it looks like it's the only way for now to get this working in R. Sure, we will fix it.\r\n\r\n@ajdamico we were able to reproduce this issue and we will fix it in the new release. The reason is that the number is bigger than Long.MAX_VALUE."}}