Sounds like a bug. If you do:

temporary.

select if(X>1).

freq / x.

freq / X.

My understanding is that the first FREQ should only show X > 1 and the second should show all cases. In fact, the manual entry uses almost this exact syntax:

https://www.gnu.org/software/pspp/manual/html_node/TEMPORARY.html

There's also FILTER, which is (IMO) a more modern way to do this. FILTER is not temporary (in that sense), but can be disabled with "FILTER OFF." and depending on what you are selecting, you might prefer "SPLIT FILE":

https://www.gnu.org/software/pspp/manual/html_node/FILTER.html

https://www.gnu.org/software/pspp/manual/html_node/SPLIT-FILE.html

https://www.garyfisk.com/pspp/30splitFile.html

-Alan


On 5/24/2022 2:52 PM, jhwh...@techwriteinc.com wrote:

Thank you for the response.  I agree with you.  I ran a command after the “TEMPORARY” command – but the entire data set is still missing most of the data due to my “SELECT IF” COMMAND.  The workaround is I am creating separate files for each select if command I use.  Bulky for now. . .

Take care,

John

___________________________

Email: jhwh...@techwriteinc.com

*From:* Pspp-users <pspp-users-bounces+jhwhite=techwriteinc....@gnu.org> *On Behalf Of *ft gmail
*Sent:* Tuesday, May 24, 2022 3:45 PM
*To:* pspp-users@gnu.org
*Subject:* Re: Temporary

If I understand your question you get the data automatically "back" as the filter command only works for the next command or procedure.

If you run

temp.
sel if (vars >=1)
freq varx to vary.
SAVE /OUTFILE={’file_name’,file_handle}

you save the complete data set without the effect of the filter.

HTH

ftr

On 24/05/2022 21:03, jhwh...@techwriteinc.com wrote:

    I am using the PSPP syntax commands:

    TEMPORARY

    SELECT IF (VAR1 >=1)

    Here is the question, I have several PSPP books. The “TEMPORARY”
    filter gets me the data I desired, but how do I get the data file
    back to the complete data set before I ran the PSPP syntax? I
    could not find the resolution in my PSPP books.

    Take care,

    John

    ___________________________

    Email: jhwh...@techwriteinc.com

--

Alan D. Mead, Ph.D.
President, Talent Algorithms Inc.

science + technology = better workers

https://talalg.com


Tsai Yu used to sleep during the day.

The Master said: "Rotten wood cannot be carved, walls made of dirt and
mud cannot be plastered: what is the good of reprimanding Yu?"

"At first," he continued, "my way of dealing with others was to listen
to their words and to take their actions upon trust. Now, my way is to
listen to what they say and then to watch what they do. This change in
me is owing to Yu."

-- Confucius, Confucian Analects

Reply via email to