× 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.


  • Subject: Sources for External Data Structures
  • From: John Carr <74711.77@xxxxxxxxxxxxxx>
  • Date: 24 Jun 97 22:36:44 EDT



RE:     Sources for External Data Structures
Roger Vicker, CCP wrote:
> Greetings,
>
> I would like to drum up some support for a change in how the RPG
> (III/IV/ILE) compilers handle external data structure definitions.
> Currently, you can only effectively reference a *PF or *LF. If you
> reference a *PRTF it will compile but tell you:

<SNIP>

> Please let IBM (Hans are you still following the list?) know that RPG
> <SHOULD> accept any type of externally described file and pull in the
> field definitions. I know this is not a major item but is in the same
> line as being to rename fields for an *OUTPUT only file. It would make
> some things much easier or clearer.
>
> TIA

Roger
I don't think the problem is so much that it won't recognize *PRTF files
much as it is the fact that it only sees fields defined with a type of INPUT
or BOTH in the DDS.  Try and use a Display file(Single format) as a test
 which has all three types (Input, Output, & Both) of fields and see which
ones show up.  

Personally
Before we get *PRTF's implemented in RPG, I would rather see (for 10 years 
now)  getting my externally defined data structures Initialized from the 
values from the DDS  DFT (Default value)of each field implemented!!!!

TORONTO are you listening?  IBM has been talking of pushing the business
definitions out of the language and into the data base where they belong
(Triggers, RI, ETC) However they have forced us to HARD CODE initial values
for variables(data base entities) in our programs.

And while I'm on the subject,  Why can't we "override" some of the
characteristics of variables which are defined using the LIKE keyword.
DDS lets you change Length, Type, ETC. while using the REF or REFFLD
keywords!!!  Why can't I use the LIKE keyword (referring to a Packed
Numeric) and say in this Instance I want it to be Zoned Decimal ?! ETC.
Hans???? (ya know we should be able to)

John Carr CDP
EdgeTech
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the Midrange System Mailing List!  To submit a new message,   *
* send your mail to "MIDRANGE-L@midrange.com".  To unsubscribe from     *
* this list send email to MAJORDOMO@midrange.com and specify            *
* 'unsubscribe MIDRANGE-L' in the body of your message.  Questions      *
* should be directed to the list owner / operator: david@midrange.com   *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.