Duplicated Files

440 pts.
Tags:
AS/400
AS/400 Duplicate Files
AS/400 Query
Hi friends, I have a System (AS/400) and on this server i have many and many files with the same name , example: I have the file FILEX on LIB1, FILEX on LIB2, FILEX on LIB3 , etc ..... I Run the command DSPOBJD OBJ(*ALL/*ALL) OBJTYPE(*ALL) OUTPUT(*OUTFILE) OUTFILE(LIBTEST/FILETEST). Now, How can I run a Query and generate a report only this duplicated files ? Thanks, SILVARB
ASKED: December 2, 2008  7:21 PM
UPDATED: December 2, 2008  7:37 PM

Answer Wiki

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

In query 400 it will take two steps
1. Use query to create an outfile with two columns
– filename and the summary function count
2. The second query will use your original file joined to the file created in step 1on file name
select records where count > 1

Discuss This Question:  

 
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

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