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

How to permanently delete specific cases with unique ID codes?

5019XVCACU gravatar image
Question by kgebhard  (1) | Jul 11, 2016 at 01:35 PM deleteselect

I have a dataset with 468 cases. I need to delete 144 of them, because they are bad cases. I have one variable, an ID code, through which each case is uniquely identified; thus, I have 144 unique ID codes identifying the cases I need to delete. I am wondering if there is a way to accomplish this with syntax. I'd like to permanently delete these cases. I read somewhere that I could use SELECT IF NOT to de-select the cases for analysis, but am not sure how to use it to permanently delete cases. I've tried running to following syntax, which I got from point-and-click and altered to use SELECT IF NOT instead of SELECT IF (hoping maybe the double negative would fool SPSS?), and it did nothing. (MTurkID is the name of the variable). Any idea what I should do?

FILTER OFF. USE ALL. SELECT IF NOT (MTurkID = 295434) OR (MTurkID = 309993) OR (MTurkID = 383555) OR (MTurkID = 545144) OR (MTurkID = 621608).. etc. [lists all the IDs] Execute.

People who like this

  0   Show 1
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
5019XVCACU gravatar image kgebhard (1)   Jul 10, 2016 at 09:10 AM 0
Share

Since posting this, I've made a list of the IDs I wish to keep, and tried FILTER OFF. USE ALL. SELECT IF (MTurkID = 398789) OR etc. I did a trial run of 20 ID codes, to see if the syntax was right before I spent the time writing in all of the (MTurkID = between numbers. When I ran the syntax, SPSS deleted all of my cases. The variables are still there, but the when I click on Data View, there's not a single case there. Obviously I closed the file w/out saving it, so I still have my data. Am wondering if anyone knows what I need to change in my syntax to get this to work!

1 reply

  • Sort: 
550002MY3T gravatar image

Answer by Pramod Bhatt (1) | Mar 18 at 01:32 AM

Am also looking for syntax to delete undesired cases

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

Follow this question

65 people are following this question.

Answers

Answers & comments

Related questions

imam - how to delete an import area from repository when gui delete failed/not updated' 0 Answers

Is there a command to will delete a WMBv7 message flowa and all associated adapters and message sets? 1 Answer

What expression should I use when wanting to discard account numbers (field 1) that have "AEP" diary codes (field 2)? 8 Answers

How to delete an agent using udeploy cli command? 2 Answers

Trouble deleting a domain 3 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