Newsletters Subscriptions Media Kit About Us Contact Search Home

mgo
OS/400 Edition
Volume 3, Number 59 -- September 5, 2003

Reader Feedback and Insights: No Field Reference File, No Problem


Hey, Ted:

At my company we are using SQL data-definition language (DDL) to define new databases and are supposed to be converting all tables to DDL. We have come across problems that are irritating but not insurmountable.

The biggest problem is renaming file formats in RPG IV: When a table is created with DDL, its format name is the same as the file name. We also have major problems with mirroring constraints to our other boxes. According to our mirroring software vendor, other vendors have the same restrictions because of the way IBM implements constraints in DB2/400. We have to promote the table creation DDL to the source box, and promote the constraints to the source and mirror boxes. The least of our problems is the lack of a field reference file. Many of our DDS files were created with field reference files, but the design and implementation were so poorly thought out that you can't rely on the benefits of field reference files.

I prefer table creation with SQL, but DDS has several advantages over SQL that should cause everyone to investigate the ramifications of "migrating" their databases to SQL. I hate pronouncements like, "Use SQL to create all files," "Use SQL for all I/O," or "Use Java instead of C, RPG, or COBOL." You must determine which tool is best for the job at hand. Using a hammer to cut a hole will work, but if you want it done right you will use a saw.

 

--Duane


One way to get around your biggest issue is to create the table with the record name, then rename it to the table name. The record format will have the original name, not the new name.

I know. It's a kludge.

--Ted


Sponsored By
ADVANCED SYSTEMS CONCEPTS

Quoted from an experienced programmer
new to the iSeries (AS/400):

"The best thing about working on the AS/400 is using ASC's SEQUEL product."

If you're tired of the limitations imposed by Query/400 or ODBC-based query and reporting tools, you need SEQUEL. Discover how thousands of sites around the world have improved access to iSeries data using SEQUEL's Windows- and Web-interfaces. It's the one tool you can rely on for virtually all your iSeries data access needs.
FREE trial available.

Read More about SEQUEL


THIS ISSUE
SPONSORED BY:

Advanced Systems Concepts
GST


BACK ISSUES

TABLE OF
CONTENTS

Not All Outer Joins Are Equal

Retrieve Command Source

Reader Feedback and Insights: No Field Reference File, No Problem


Editors
Howard Arner
Joe Hertvik
Ted Holt
David Morris
Shannon O'Donnell

Managing Editor
Shannon Pastore

Publisher and
Advertising Director:

Jenny Thomas

Advertising Sales Representative
Kim Reed

Contact the Editors
Do you have a gripe, inside dope or an opinion?
Email the editors:
editors@itjungle.com

Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved.