Duplicate object (PF) using SQL with same attributes

5 pts.
Tags:
CRTDUPOBJ
LVLCHK
PF
Physical File
RPG
RPG/400
SQL
SQL/400
I want to create a duplicate object using SQL. I don't want to use CRTDUPOBJ and also do not want to compile my rpg's pgm because of new file level identifier. Please advice
ASKED: April 5, 2009  6:46 AM
UPDATED: December 15, 2011  10:27 PM

Answer Wiki

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

Hi,

<a href=”http://publib.boulder.ibm.com/infocenter/systems/scope/i5os/index.jsp?topic=/db2/rbafzhctabl.htm&tocNode=toc:rzahg/i5os/4/7/7/7/33/”>You should be able to use the CREATE TABLE with the LIKE clause.</a>

Regards,

Martin Gilbert.

Discuss This Question: 2  Replies

 
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
  • Bosxz
    how to use duplication.?
    10 pointsBadges:
    report
  • TomLiotta
    how to use duplication.? What are you duplicating? And what are you wanting to "use" it in? (In a program? A manual procedure? Something else?) What problem are you having? How is your problem related to this question thread? More information is needed in order to give an answer. Tom
    125,585 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