AS/400-DDL: Create table command

1,215 pts.
Tags:
Data Definition Language
DDL
DDL Create Table
I have created table using CREATE TABLE command. I want to see the source of table. Is there a possibility to view the table's source in AS/400
ASKED: September 4, 2008  3:40 AM
UPDATED: June 14, 2013  5:06 PM

Answer Wiki

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

<ul>
For generating SQL source:</ul>

If you have the iseries navigator, go to <machine> Databases <machine> Schemas <library> Tables. Right click on the required table and select ‘Generate SQL’. Do remember to click checkbox ‘include object short names’, in case the table has column/field names more than 10 chars long.

<ul>
For DDS source:</ul>

On AS/400, you will need an advanced file editor like Filescope platinum (shwfc), which can generate DDS from a database file.
You can use DSPFFD to see field attributes, short names, etc.

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