remove Notes and Active Datset from output with OMS

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

remove Notes and Active Datset from output with OMS

mdg1972
Hello,

I want to hide 'Notes' and 'Active Dataset' from my output when running tables.

With this syntax it is hiding the 'Notes'

OMS
   /SELECT TABLES
   /IF SUBTYPES=['Notes']
   /DESTINATION VIEWER = NO
***commands
OMSEND.

With this syntax it is hiding the 'Active Dataset'

OMS
   /SELECT TEXTS
   /IF LABELS=['Active Dataset']
   /DESTINATION VIEWER = NO
***commands
OMSEND.

But I want to combine these actions, I tried this but that is not working because then 'Notes' AND 'Active Dataset' are NOT hidden.


OMS
   /SELECT TEXTS
   /IF LABELS=['Active Dataset']
   /SELECT TABLES
   /IF SUBTYPES=['Notes']
   /DESTINATION VIEWER = NO
**commands
OMSEND.


Does anyone has a solution how to do this with OMS command?

Reply | Threaded
Open this post in threaded view
|

Re: remove Notes and Active Datset from output with OMS

Jignesh Sutar
You would do something like this i.e. you can concurrently have multiple OMS commands defined:

OMS
   /SELECT TABLES
   /IF SUBTYPES=['Notes']
   /DESTINATION VIEWER = NO.

OMS
   /SELECT TEXTS
   /IF LABELS=['Active Dataset']
   /DESTINATION VIEWER = NO

***commands

OMSEND.


Or alternatively, you could combine the two OMS commands into one (untested):


OMS
   /SELECT TABLES TEXTS
   /IF LABELS=['Notes' 'Active Dataset']
   /DESTINATION VIEWER = NO


***commands

OMSEND.



When working with multiple OMS commands concurrently I often opt for using the TAG subcommand to have absolute control over each OMS command i.e. when exactly to trigger it to end.

Reply | Threaded
Open this post in threaded view
|

Re: remove Notes and Active Datset from output with OMS

Jon Peck
You can actually list multiple table types in the IF subcommand as Jignesh said, but I would use SUBTYPES='[Notes' 'Active Dataset'], because that is language invariant.

You can also suppress these items via Edit > Options > Output.  That makes them hidden but still present if you need to look at them.

On Wed, Jan 6, 2016 at 6:01 AM, Jignesh Sutar <[hidden email]> wrote:
You would do something like this i.e. you can concurrently have multiple OMS
commands defined:

OMS
   /SELECT TABLES
   /IF SUBTYPES=['Notes']
   /DESTINATION VIEWER = NO.

OMS
   /SELECT TEXTS
   /IF LABELS=['Active Dataset']
   /DESTINATION VIEWER = NO

***commands

OMSEND.


Or alternatively, you could combine the two OMS commands into one
(untested):


OMS
   /SELECT TABLES TEXTS
   /IF LABELS=['Notes' 'Active Dataset']
   /DESTINATION VIEWER = NO


***commands

OMSEND.



When working with multiple OMS commands concurrently I often opt for using
the TAG subcommand to have absolute control over each OMS command i.e. when
exactly to trigger it to end.





--
View this message in context: http://spssx-discussion.1045642.n5.nabble.com/remove-Notes-and-Active-Datset-from-output-with-OMS-tp5731210p5731211.html
Sent from the SPSSX Discussion mailing list archive at 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: remove Notes and Active Datset from output with OMS

mdg1972
Jignesh and Jon,

Thank you very much!
Did solved my problem.