On Thu, 5 Oct 2023 08:22:26 -0700 (PDT), Luca Hartman
<
[email protected]> wrote:
Hi... could you be of help?
I am having the same issue, here is my syntax:
write out="Data Outfiles/Temp/OutcomesFileName baseline.sps"
/" save outfile='Data Outfiles\Outcomes 22-23 baseline. Generated ", Years, ".", Months, ".", Days, ".sav' ".
write out="Data Outfiles\Temp\OutcomesFileName baseline.sps"
/ "/KEEP ID Date OQSymptomDistress OQInterpersonalRel OQSocialRole OQTotal ".
Error # 1. Command name: /KEEP
The first word in the line is not recognized as an SPSS command.
This command not executed.
Any clue what the issue may be?
First: The Subject line does not fit the question, if you are
intending to write those lines to a file - which is what your WRITE
does.
https://www.ibm.com/docs/en/spss-statistics/29.0.0?topic=write-overview-command
Second: I have used < Write out = ... > a lot, but I think
that I have never tried to give the same file name for
two "Write" commands. I suspect that it tried to open
the file as a separate file from the first one, which would
not be useful. And should generate some error message.
(If I'm wrong ... then it is a mystery.)
So. I guess the message that you see is not apt, but I suspect
that two Write's with the same out= is what leads to it.
In any case, you do not NEED a second Write command. You
can write two lines by putting in a "/" to ask for a new line.
So. Replace the "." at the end of the first written-out line
with a blank and delete the second "write out=" line . Your
"/KEEP line already starts with a "/".
--
Rich Ulrich
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)