-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot open file in SPSS with 2 variables #12
Comments
Hi! Have you tried without compression ? |
without compression still does not work, any more idea? |
Probably it's something wrong with writer. When i open saved (with writer) file, there are difference in array of variables - precisely in "print" and "write". Can You check that? I would be very grateful :) |
I have released new version 2.1.0, try to update and check. |
Unfortunately don't work. Have you try save .sav with example of my first post? |
@pcholewa try again, I have updated the code. |
It works! Thank You very much! |
reopen, after last changes you apply this issue not working. Can You check that? |
sorry, my fault, Your current 2.1.0 version not working, last changes from dev-master#cc710d53358f5b1f4ad9626cb21608c78ab09336 works fine! Can You merge that? |
done |
Hi!
When save file with below config, i cannot open saved file in SPSS - application hangs.
BUT, saved file opens success when:
-remove all variable 1 or 2
OR
-remove "width" from first variable
OR
-remove "values" from second variable
Anyone can help me? What i do wrong?
My code:
$writer = new \SPSS\Sav\Writer([
'header' => [
'prodName' => '@(#) ' . $this->analysis->getName(),
'layoutCode' => 2,
'compression' => 1,
'weightIndex' => 0,
'creationDate' => date('Y-m-d'),
'creationTime' => date('H:i:s'),
],
'variables' => [
[
'name' => 'aaa',
'width' => 16,
'format' => 1,
],
[
'name' => 'cc',
'format' => 5,
'values' => [
1 => 'Panel',
]
],
]
]);
$pathFile = 'spss.sav';
$writer->save($pathFile);
The text was updated successfully, but these errors were encountered: