Hi all,
I would like to hide "ALTER TYPES" output. I mean that if I conver string to numeric or vice versa, I don want it to be displayed in my output/viewer. So how can we hide it. I tried a lot in EDIT------->Options...but couldnt get it. can anyone help me to hide this using syntax....thanks in advance..
Regards, Rajesh M S |
Administrator
|
Have you looked at using OMS to suppress output?
--
Bruce Weaver bweaver@lakeheadu.ca http://sites.google.com/a/lakeheadu.ca/bweaver/ "When all else fails, RTFM." PLEASE NOTE THE FOLLOWING: 1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above. 2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/). |
Administrator
|
Or the ancient undocumented evil hack. ;-)
*---------------------------------------------------. PRESERVE. SET ERRORS OFF RESULTS OFF PRINTBACK OFF. ALTER TYPE blah blah blah. RESTORE. That one actually has my name written all over it (long story). --
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?" |
These SET commands are documented in the
CSR, but note
"ERRORS, MESSAGES, and RESULTS apply only to text output" which means that the pivot table generated by ALTER TYPE is not affected by them. OMS is the way to go for full control. Jon Peck (no "h") aka Kim Senior Software Engineer, IBM [hidden email] phone: 720-342-5621 From: David Marso <[hidden email]> To: [hidden email], Date: 03/19/2013 04:16 PM Subject: Re: [SPSSX-L] Hide "Altered Type" output from viewer Sent by: "SPSSX(r) Discussion" <[hidden email]> Or the ancient undocumented evil hack. ;-) *---------------------------------------------------. PRESERVE. SET ERRORS OFF RESULTS OFF PRINTBACK OFF. ALTER TYPE blah blah blah. RESTORE. That one actually has my name written all over it (long story). -- Bruce Weaver wrote > Have you looked at using OMS to suppress output? > > Rajeshms wrote >> Hi all, >> >> I would like to hide "ALTER TYPES" output. I mean that if I conver string >> to numeric or vice versa, I don want it to be displayed in my >> output/viewer. So how can we hide it. I tried a lot in >> EDIT------->Options...but couldnt get it. can anyone help me to hide this >> using syntax....thanks in advance.. >> >> >> >> -- >> Regards, >> >> Rajesh M S ----- 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" -- View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Hide-Altered-Type-output-from-viewer-tp5718873p5718893.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 |
Administrator
|
Hi Jon,
However ERRORS and RESULTS together suppress ALL output ;-) That was a very special gift from Tex around 1997 . I was on a customer project and needed a way to suppress a huge correlation matrix. Tex came to the rescue and saved our butts (it was a 30K contract and the huge output was a showstopper). eg: *----*. GET FILE='C:\Program Files\SPSS\1991 U.S. General Social Survey.sav'. DATASET NAME DataSet1 WINDOW=FRONT. SHOW RESULTS ERRORS. PRESERVE. SET RESULTS OFF ERRORS OFF PRINTBACK OFF. CORR ALL /MATRIX OUT(*). RESTORE. ** One of those things one gets by being nice to Tex!!! David On Tue, Mar 19, 2013 at 8:55 PM, Jon K Peck [via SPSSX Discussion] <[hidden email]> wrote: > These SET commands are documented in the CSR, but note > "ERRORS, MESSAGES, and RESULTS apply only to text output" > which means that the pivot table generated by ALTER TYPE is not affected by > them. > > OMS is the way to go for full control. > > > Jon Peck (no "h") aka Kim > Senior Software Engineer, IBM > [hidden email] > phone: 720-342-5621 > > > > > From: David Marso <[hidden email]> > To: [hidden email], > Date: 03/19/2013 04:16 PM > Subject: Re: [SPSSX-L] Hide "Altered Type" output from viewer > Sent by: "SPSSX(r) Discussion" <[hidden email]> > ________________________________ > > > > Or the ancient undocumented evil hack. ;-) > *---------------------------------------------------. > PRESERVE. > SET ERRORS OFF RESULTS OFF PRINTBACK OFF. > ALTER TYPE blah blah blah. > RESTORE. > > That one actually has my name written all over it (long story). > -- > > > Bruce Weaver wrote >> Have you looked at using OMS to suppress output? >> >> Rajeshms wrote >>> Hi all, >>> >>> I would like to hide "ALTER TYPES" output. I mean that if I conver string >>> to numeric or vice versa, I don want it to be displayed in my >>> output/viewer. So how can we hide it. I tried a lot in >>> EDIT------->Options...but couldnt get it. can anyone help me to hide this >>> using syntax....thanks in advance.. >>> >>> >>> >>> -- >>> Regards, >>> >>> Rajesh M S > > > > > > ----- > 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" > -- > View this message in context: > http://spssx-discussion.1045642.n5.nabble.com/Hide-Altered-Type-output-from-viewer-tp5718873p5718893.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 > > > > > ________________________________ > If you reply to this email, your message will be added to the discussion > below: > http://spssx-discussion.1045642.n5.nabble.com/Hide-Altered-Type-output-from-viewer-tp5718873p5718896.html > To unsubscribe from Hide "Altered Type" output from viewer, click here. > NAML
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?" |
Administrator
|
In reply to this post by Jon K Peck
In fact, one of the places where I used this method was my rebuilding of the
"Canonical Correlation.sps" code back in the mid 90's. See line 54. If you dare to meander down towards line 347-397 you will see what you have frequently referred to as a 'horrible hack' (using WRITE to generate SPSS syntax). Well yeah, these days inexcusable but back then (pre SAX) it was really the only way. Maybe that approach isn't even necessary any more since the original revision was to deal with all too frequent MEMORY limitations. Just translate that crap back into the matrix language and be done with it. It has quite obviously been altered since (DATASET DECLARE, long macro arguments (back then 8 was the limit), INCLUDE rather than INSERT etc, Yeah, someone has been poking that thing with a stick but obviously didn't put on the hazmat suit get to the core nastiness and purge the horrible hackiness). I am doubtful whether IBM would bother to bring that code further into compliance with what sane people would call 'best practices'. Moving forward, I would probably NUKE the 'horrible hack' between 347-397 and just handle it in MATRIX (probably will do just fine since memory issues are no longer a huge issue) and then have it dump a model file for good measure (see the hideous gunk between 403-431). Similar considerations apply to Ridge Regression around line 41. That was a simple intervention. CanCorr was more or less a full front on lobotomy. TMI, don't think so. Maybe turn those anachronisms into EXTENSIONS? My Legacy lives on (for better or worse). And it shall be noted I don't just rip on other people's code. I would give that ornery old CanCorr code a bon fire roasting if I had the time. ;-))) David ----
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?" |
Free forum by Nabble | Edit this page |