How to hide few rows in syntax editor?

classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

How to hide few rows in syntax editor?

88videos
Is it possible to hide rows in syntax editor?Just like in Notepad++.



--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: How to hide few rows in syntax editor?

Maguin, Eugene
Why would you want to hide rows? And, if you could hide rows (I don't know if you can or not), would the rows be hidden from any person that opened the file, from all procedure commands, e.g., the frequencies command, from all transformation commands, some combination?

Gene Maguin

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of 88videos
Sent: Tuesday, September 26, 2017 11:31 AM
To: [hidden email]
Subject: How to hide few rows in syntax editor?

Is it possible to hide rows in syntax editor?Just like in Notepad++.



--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: How to hide few rows in syntax editor?

88videos
I don't want to hide rows from anyone.

I only want to have clear view. Let's say I have commands, which execute
couple of graph (35 lines for each graph) and I don 't want to see it for a
while. It easier to scroll and find something what i need to modify
(transformation/analysis), what is somewhere under/over this graph commands.



--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: How to hide few rows in syntax editor?

Art Kendall
put blocks of text that are at later stages of drafting in other files and
use the INSERT command.



-----
Art Kendall
Social Research Consultants
--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Art Kendall
Social Research Consultants
Reply | Threaded
Open this post in threaded view
|

Re: How to hide few rows in syntax editor?

Jon Peck
In reply to this post by 88videos
Version 25 has a bunch of enhancements to the Syntax Editor, but collapsing or hiding commands did not come up as a suggestion AFAIK.  Collapsing would be a great feature and would fit in with the command span indicator and the autoindent.  In lieu of that feature, you might make use of the window split feature that lets you look at two different sections of the syntax at the same time.  Its the toolbar icon that looks like ----.

On Tue, Sep 26, 2017 at 9:30 AM, 88videos <[hidden email]> wrote:
Is it possible to hide rows in syntax editor?Just like in Notepad++.



--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD



--
Jon K Peck
[hidden email]

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: How to hide few rows in syntax editor?

88videos
Thanks for answers. I have never used this ------ option, this might be
useful.

But I got another related to the insert command question. Sometimes I have
something in dataset, what I want to move into syntax automatically and
execute. To do this I save translate (for example couple of first records
from chosen column) into text file and use Insert to execute this
automatically. Is there a way to do this without saving text file into
memory????


Thanks in advance.



--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: How to hide few rows in syntax editor?

88videos
... memory... I meant on disk space :)



--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: How to hide few rows in syntax editor?

Jon Peck
It's hard to answer without more details.  Macros and programmability may be relevant.

On Sun, Oct 1, 2017 at 6:13 PM, 88videos <[hidden email]> wrote:
... memory... I meant on disk space :)



--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD



--
Jon K Peck
[hidden email]

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: How to hide few rows in syntax editor?

88videos
Generally I wonder is it possible to put inside macro text(1 column) from
active dataset without saving file translate into .csv and using Insert
command to execute it automatically ?

Let's say I got 2 datasets, 1 with data, 2 with result of some aggregations
or calculations statistics with OMS option.
After some changes(simple transform) in second base I get column with basic
transforming command, for example second dataset might loook like this:

I want to move column 'text' from active dataset into syntax editor(macro)


id, text
1, recode v1
2, (lo thru 5=1
3, (lo thru 12=1
4, (lo thru hi=4)





--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: How to hide few rows in syntax editor?

David Marso
Administrator
Could you provide a specific example of when/where such a capability would be
useful?
--

88videos wrote

> Generally I wonder is it possible to put inside macro text(1 column) from
> active dataset without saving file translate into .csv and using Insert
> command to execute it automatically ?
>
> Let's say I got 2 datasets, 1 with data, 2 with result of some
> aggregations
> or calculations statistics with OMS option.
> After some changes(simple transform) in second base I get column with
> basic
> transforming command, for example second dataset might loook like this:
>
> I want to move column 'text' from active dataset into syntax editor(macro)
>
>
> id, text
> 1, recode v1
> 2, (lo thru 5=1
> 3, (lo thru 12=1
> 4, (lo thru hi=4)
>
>
>
>
>
> --
> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





-----
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Re: How to hide few rows in syntax editor?

88videos
According to your question I am pretty sure that there is no way to do this
:)

But I  wonder whether that could be useful when I want to do some
transformations base on statistics, which are not available in aggregate
commands (e.g. percentiles in subgroup)?


 



--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: How to hide few rows in syntax editor?

David Marso
Administrator
If by "percentiles in subgroup" you refer to basic percentiles from
frequencies/RANK etc, FREQ supports SPLIT FILE, RANK has a BY clause.  You
can also build cumulative stuff via LAG... If you really want to go for it
look at MATRIX command.  You can do just about anything that you can write a
formula to compute.
OTOH there is always python.


88videos wrote

> According to your question I am pretty sure that there is no way to do
> this
> :)
>
> But I  wonder whether that could be useful when I want to do some
> transformations base on statistics, which are not available in aggregate
> commands (e.g. percentiles in subgroup)?
>
>
>  
>
>
>
> --
> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





-----
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Re: How to hide few rows in syntax editor?

Jon Peck
In reply to this post by 88videos
The way to do this is to use programmability to define a function that can build the macro.  It might have a signature like  
def datamacro(macrotext, variable, nrows)

You might call it like
begin program.
datamacro("!somename (%s).", "text", 4)
end program.

In this example the values of the first four rows of a variable named text would be defined as a macro named !somename.

If this fits your use case, I can flesh this out.  This example just defines a macro symbol with those values, but more complicated things could be done.  



On Mon, Oct 2, 2017 at 12:07 PM, 88videos <[hidden email]> wrote:
Generally I wonder is it possible to put inside macro text(1 column) from
active dataset without saving file translate into .csv and using Insert
command to execute it automatically ?

Let's say I got 2 datasets, 1 with data, 2 with result of some aggregations
or calculations statistics with OMS option.
After some changes(simple transform) in second base I get column with basic
transforming command, for example second dataset might loook like this:

I want to move column 'text' from active dataset into syntax editor(macro)


id, text
1, recode v1
2, (lo thru 5=1
3, (lo thru 12=1
4, (lo thru hi=4)





--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD



--
Jon K Peck
[hidden email]

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: How to hide few rows in syntax editor?

88videos
David, I absolutely agree that calculating statistics with splitting and feq
etc. is the best solution. But I can image that in some situation
faster/easier will be using method I described. That why I wanted do know is
it possible.

Jon, I got error with this commands. What did I wrong?  



INPUT PROGRAM.
LOOP #i = 1 to 50.
Compute v1=trunc(RV.UNIFORM(1, 70)).
end case.
end loop.
end file.
END INPUT PROGRAM.
execute.
dataset name a1.

data list FREE
/text(a19).
begin data.
'recode v1'
'(lo thru 10=1)'
'(lo thru 20=2)'
'(lo thru hi=3)'
end data.
execute.
dataset name c1.
dataset activate c1.

begin program.
datamacro("!somename (%s).", "text", 4)
end program.

dataset activate a1.

!somename .




--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: How to hide few rows in syntax editor?

Jon Peck
The function isn't written yet.  I was just suggesting what it might look like.  I can write it if you want to go this way.

On Tue, Oct 3, 2017 at 5:44 AM, 88videos <[hidden email]> wrote:
David, I absolutely agree that calculating statistics with splitting and feq
etc. is the best solution. But I can image that in some situation
faster/easier will be using method I described. That why I wanted do know is
it possible.

Jon, I got error with this commands. What did I wrong?



INPUT PROGRAM.
LOOP #i = 1 to 50.
Compute v1=trunc(RV.UNIFORM(1, 70)).
end case.
end loop.
end file.
END INPUT PROGRAM.
execute.
dataset name a1.

data list FREE
/text(a19).
begin data.
'recode v1'
'(lo thru 10=1)'
'(lo thru 20=2)'
'(lo thru hi=3)'
end data.
execute.
dataset name c1.
dataset activate c1.

begin program.
datamacro("!somename (%s).", "text", 4)
end program.

dataset activate a1.

!somename .




--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD



--
Jon K Peck
[hidden email]

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: How to hide few rows in syntax editor?

88videos
This post was updated on .
now I get it...:)

datamacro is function, which need to be write in python. I thought that it
is some default function, which already exists (sth like split string
trans).

I would be obliged, but I don't know whether it is too much do ask.












--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: How to hide few rows in syntax editor?

David Marso
Administrator
In reply to this post by Jon Peck
I have a question:  How are these lines of to be executed code generated in
the first place?
Perhaps provide an actual use case/process flow to instill some sense that
this is actually a problem which doesn't already have a solution using basic
syntax.
--

Jon Peck wrote

> The way to do this is to use programmability to define a function that can
> build the macro.  It might have a signature like
> def datamacro(macrotext, variable, nrows)
>
> You might call it like
> begin program.
> datamacro("!somename (%s).", "text", 4)
> end program.
>
> In this example the values of the first four rows of a variable named text
> would be defined as a macro named !somename.
>
> If this fits your use case, I can flesh this out.  This example just
> defines a macro symbol with those values, but more complicated things
> could
> be done.
>
>
>
> On Mon, Oct 2, 2017 at 12:07 PM, 88videos <

> 88videos@

>> wrote:
>
>> Generally I wonder is it possible to put inside macro text(1 column) from
>> active dataset without saving file translate into .csv and using Insert
>> command to execute it automatically ?
>>
>> Let's say I got 2 datasets, 1 with data, 2 with result of some
>> aggregations
>> or calculations statistics with OMS option.
>> After some changes(simple transform) in second base I get column with
>> basic
>> transforming command, for example second dataset might loook like this:
>>
>> I want to move column 'text' from active dataset into syntax
>> editor(macro)
>>
>>
>> id, text
>> 1, recode v1
>> 2, (lo thru 5=1
>> 3, (lo thru 12=1
>> 4, (lo thru hi=4)
>>
>>
>>
>>
>>
>> --
>> Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>>
>> =====================
>> To manage your subscription to SPSSX-L, send a message to
>>

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
>> command. To leave the list, send the command
>> SIGNOFF SPSSX-L
>> For a list of commands to manage subscriptions, send the command
>> INFO REFCARD
>>
>
>
>
> --
> Jon K Peck

> jkpeck@

>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





-----
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"