× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



First off, You can mix and match DDL & DDS. Views over PF and LFs over
Tables...

What you're saying doesn't make sense. Either the new fields are in the
logical or they are not. If they are not, the compiler wcn't and can't see
them.

I use the same technique. If you do it right, you don't have recompile
anything. The Record Format Level ID should be the same from the original
to the new...on DSPFD, look here:

Record Format List
Record Format Level
Format Fields Length Identifier
MYFILER 114 541 2FED88D05AB32 <-- this ID should not change

Charles




On Fri, Dec 19, 2014 at 12:32 PM, Dale Janus <dalejanus@xxxxxxxxxxxxxxxxx>
wrote:

We are slowly modernizing our database and programs as business needs
arise. We would like to leave some of our old RPG III programs alone since
they work and will eventually be replaced. We are trying to do this by
using dds logical files over the newly modernized data base.

We modernize the database with DDL in ops navigator and add new fields
to the end like real dates, identity columns, sometimes a time stamp, and
new stuff with long field names. We keep the original 6 character field
names on the existing fields as system name. Any new fields get both a
long name and a system name that is longer than 6 characters. Then we use
the old physical file name as a logical file.
The new physical, since created with DDL, does not have any DDS specs.
(AROPENSY in the example below)

We then modify this new DDS logical( that used to be a physical) to
include only the old fields with each old field name listed. And of course
the key, which has not changed and is an old field. New fields are not
listed in the dds.
sample:

A* RECORD FORMAT LEVEL
A UNIQUE
A R ARREC PFILE(AROPENSY)
A*
A ARCODE
A ARPRFX
A ARMNTH
A ARSNBR
A ARCMCD
A ARSUPL

The RPGIII programs get compiled for the new logical and some but not all
programs got errors.

we get errors like:External-Field-Name entry longer than 6 or
Message . . . . : The record format contains DATE/TIME/TIMESTAMP fields.
DATE/TIME/TIMESTAMP fields ignored.

When we run DSPFFD on the logical, it shows all the fields, the old with
old names, but also the new fields longer than 6 characters that RPGIII
does not like.


How can I create a logical file with only the old field names yet points
to my new modern database defined by DDL?

Do I have to create views in DDL? Is it not possible to mix DDL with DDS?

I was hoping to ease into some of these new features, without having to
change every program all at once. So far, I am not doing so well. Yes, I
realize I should just change everything, but there is never enough time.

---Dale

I
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.