Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

SPSSINC MERGE TABLES not working

27000420VD gravatar image
Question by YoSee  (0) | Mar 31, 2011 at 03:01 PM spssstatisticsextensibilitypython
 I'm using the "Merge Viewer Tables ..." dialog box to merge 2 simple CTABLES output tables. (Table 1)<br>
  Tried allmost every combination and the result is allways the same: (Table 2)<br>
  The Proportions Table doesn't apear in the result, just it's header and a part of it's footnote.<br>


What am I doing wrong?

People who like this

  0
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

48 answers

  • Sort: 
27000420VD gravatar image

Answer by YoSee (0) | Mar 31, 2011 at 03:18 PM

 This is the Syntax of my last attempt<br>


SPSSINC MERGE TABLES MATCHLABEL="count" ATTACH=ROWS
MODE=MERGE
/OPTIONS HIDE=YES APPENDTITLE=YES APPENDCAPTION=YES ADDLABELLEAF=YES
HALIGN=CENTER SEPARATOR="\n".

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
110000D4XK gravatar image

Answer by SystemAdmin (532) | Mar 31, 2011 at 03:20 PM

 Please post the syntax you are using.
  
             
Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
27000420VD gravatar image

Answer by YoSee (0) | Mar 31, 2011 at 03:47 PM

 This is the CTABLES syntax<br>


MRSETS
/MCGROUP NAME=$v188 LABEL=" 2, "
VARIABLES=V311 v311a.
CTABLES
/FORMAT EMPTY=BLANK MISSING='.' /SMISSING VARIABLE
/TABLE $v188 [C][COLPCT.COUNT PCT40.0, TOTALShttp://COUNT PAREN40.0]
BY edu[c]+ inc[c]+ agex[C]
/SLABELS POSITION=ROW VISIBLE=NO
/CATEGORIES VARIABLES=$v188 ORDER=A KEY=VALUE EMPTY=EXCLUDE TOTAL=YES LABEL='N=' POSITION=AFTER
/COMPARETEST TYPE=PROP ALPHA=0.1 ADJUST=NONE ORIGIN=COLUMN
/TITLES TITLE=" - ".
and This is the pasted Syntax from the Merge dialog box:
DATASET ACTIVATE DataSet1.
SPSSINC MERGE TABLES MATCHLABEL="Count" ATTACH=COLUMNS
MODE=MERGE
/OPTIONS HIDE=YES APPENDTITLE=YES APPENDCAPTION=YES ADDLABELLEAF=YES
HALIGN=RIGHT SEPARATOR="\n".

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
110000D4XK gravatar image

Answer by SystemAdmin (532) | Mar 31, 2011 at 04:35 PM

 This table is deceptively simple. It contains in the rows a hidden statistics label. You need to specify that label as the match point. The default label is Count, but your table just has percentages, so you need to specify that hidden label as MATCHLABEL.<br>


This syntax will do it.

SPSSINC MERGE TABLES ATTACH=ROWS MATCHLABEL="Column N %"
MODE=MERGE
/OPTIONS HIDE=YES APPENDTITLE=YES APPENDCAPTION=YES ADDLABELLEAF=YES
HALIGN=RIGHT SEPARATOR="\n".
HTH,
Jon Peck

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
27000420VD gravatar image

Answer by YoSee (0) | Mar 31, 2011 at 04:40 PM

 worked like a charm!<br>


tank you very much

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
270003ERUW gravatar image

Answer by ZStatman (61) | Aug 29, 2012 at 03:29 PM

 How many times have I been down this "error road" I had to do a reinstall of both V20 &amp; Python<br>


Running the following:

CTABLES
/VLABELS VARIABLES=educ jobcat DISPLAY=LABEL
/TABLE educ [C] BY jobcat [C] http://COUNT F40.0, ROWPCT.COUNT PCT40.1, COLPCT.COUNT PCT40.1
/CATEGORIES VARIABLES=educ ORDER=A KEY=VALUE EMPTY=INCLUDE TOTAL=YES POSITION=AFTER
MISSING=EXCLUDE
/CATEGORIES VARIABLES=jobcat ORDER=A KEY=VALUE EMPTY=INCLUDE MISSING=EXCLUDE.

SPSSINC MODIFY TABLES subtype="Custom Table"
SELECT="%"
DIMENSION= COLUMNS
LEVEL = -1 PROCESS = PRECEDING
/STYLES APPLYTO=DATACELLS
BACKGROUNDCOLOR=255 255 0.

And get this error:\
>Error # 6890. Command name: BEGIN PROGRAM
>Configuration file spssdxcfg.ini is invalid.
>Execution of this command stops.
Configration file spssdxcfg.ini is invalid because the LIB_NAME is NULL.

Tks

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
110000D4XK gravatar image

Answer by SystemAdmin (532) | Aug 29, 2012 at 03:40 PM

 I have no idea why this keeps coming up for you, but it doesn't have to do specifically with MERGE TABLES. The Python plugin is not installed or is not installed correctly. If uninstalling and reinstalling it doesn't clear this up, please contact Technical Support.<br>


Regards,
Jon

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
270003ERUW gravatar image

Answer by ZStatman (61) | Aug 29, 2012 at 04:59 PM

 Thanks Jon, figured it was the Python install so will go that suggested route<br>


BTY, what version is used by V21? I know it should install with the full installation but just in case can it be installed separately and if so, where available?

Tks
W

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
110000D4XK gravatar image

Answer by SystemAdmin (532) | Aug 29, 2012 at 05:09 PM

 Version 21 has a corresponding Python Essentials 21 that is included on the installation media and downloadable with the Statistics product. You no longer go to the SPSS Community site to get it. It is still a separate install. It uses Python 2.7, which is the same Python version as V20. On Windows, Python will be installed as part of the Essentials install if needed.<br>


The V21 Essentials includes some additional extension commands compared with V20 that you used to have to get from the SPSS Community site (but there are still plenty of others up there).

Regards,
Jon

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
270003ERUW gravatar image

Answer by ZStatman (61) | Aug 29, 2012 at 06:02 PM

 Thanks again Jon
  
             
Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • 1
  • 2
  • 3
  • 4
  • 5
  • ›

Follow this question

49 people are following this question.

Answers

Answers & comments

Related questions

Exporting output tables into multiple XL sheets? 3 Answers

output export 11 Answers

Close SPSS database in external mode 2 Answers

Cannot install PLS extension bundle 2 Answers

STATS_ADJUST_WIDTHS 10 Answers

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges