Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6087103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:49:56+00:00 2026-05-23T11:49:56+00:00

I am writing an application in C++ that interfaces with SPSS 15 using their

  • 0

I am writing an application in C++ that interfaces with SPSS 15 using their I/O DLL.

Our SPSS database is made of a number of cases, each with their unique “ID” field.

What I need to do is open the database in read/write, find the case with the matching ID and modify some of the variables according to CSV files that my program parses.

There are 2 obvious cases from the start:

  • The matching case does not exist (In which case, I can easily use spssOpenAppend() to add the case.

  • The matching case exists. (And this is the problematic case)

In the latter, I need to use spssOpenWriteCopy() to get a write Handle and spssOpenRead() to have a read handle. While I’m not too keen on that, it seems it’s the only way to do it with their DLL. The problem is that I cannot move the case pointer on the write file (Apparently, moving the case pointer is a read-only operation)

That means I am stuck trying to figure out how to modify a case without having to iterate over all the file and copy all the data, case by case, until I find the case I’m interested in.

I’d like to add that upgrading SPSS is not an option.

I’d also like to avoid having to manually iterate case-by-case and build a new file from scratch.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:49:56+00:00Added an answer on May 23, 2026 at 11:49 am

    I figure no one is going to bother answering now that it’s solved.

    Anyway, it is not possible to insert a case in the middle of a database. You could potentially write wrappers around the API to simulate it, but otherwise there is no way to do what I am trying to do without manually iterating through each case and copying it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing an email application that interfaces with a MySQL database. I have
I am writing an application that needs to interfaces with different backend systems. I
I'm writing an application that uses a SQL Server 2005 database. In the connection
I'm writing an application that uses a SQL Server 2005 database. In the connection
I'm writing a web application that will have plugins. The plugins will be .DLL
I am writing an ASP.NET class that interfaces with an external application. The flow
I am writing an Android application that interfaces with a RESTful service. This web
I'm writing an application that uses GDB to access information through java. Using Runtime.getRuntime.exec,
I'm writing an application that interacts with other processes on a x64 Vista machine.
im writing an application that downloads and installs addons for programs which needs to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.