Sorting out missing out

pts.
Tags:
Application development
DB2 Universal Database
RPG
I have 2 files. One having 1000 records and the other 1350. I need to sort out the missing records and place them in an excel sheet. Programmatically how to acgieve this???

Answer Wiki

Thanks. We'll let you know when a new response is added.

Here’s the SQL to do the comparison and report the results:

SELECT * FROM bigFile
MINUS
SELECT * FROM smallFile

You’re on your own for the MS Excel part.

Sheldon Linker (sol@linker.com)
Linker Systems, Inc. (www.linkersystems.com)
800-315-1174 (+1-949-552-1904)

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • BigKat
    If this is a process that is done often (i.e. someone downloads a new version every day/week/etc. to work on the exceptions) is to create a view out of the SQL statement (I prefer exception join instead of the MINUS syntax) then on the desktop of users that need to run this, I create a new Data Transfer from AS400 icon that connects to the view and creates a BIFF8 file with the name.xls I want. Excel will open this file (when you double-click it), and depending on version may prompt about saving to a newer format when you go to save any changes.
    8,100 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following