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



Bob,

From the message text for RNQ0121: 'If file &7 is an externally-described file, a record is read with a format unknown to the RPG program.'

Query creates the file with record name equal to the file name. That's your problem.

Joep Beckeringh


Bob Anderson wrote:
Mike,
        It says Undefined record type is found in file.  The query
builds the file as PRHSTD and the library is QTEMP and the member is
PRHRSDPH that is from the output of the query. These are the same names
as the actual physical file I am overriding in the CL that calls it
Thanks

Bob IT Guy
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Mike Cunningham
Sent: Thursday, February 22, 2007 2:18 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: Reading a file created by Query

Does it say record type or record format? When you create a PF you get
to define the name of the file and the name of the record format and
they are usually different since RPG does not like it when they match.
When qry creates a file the file name and record format at the same. The
RPG will not like reading a file that has a different record format name
that what it found at compile time. You might have the query output a
file that is named PRHSTD and then rename the file to match the F spec
file name

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Bob Anderson
Sent: Thursday, February 22, 2007 2:02 PM
To: RPG programming on the AS400 / iSeries
Subject: Reading a file created by Query

Good Afternoon,
        I am creating a file from query that is read into an RPGIV
program.
In the RPG program I am using an Externally defined file as the file
definition and it has an EXTMBR value.

The query creates the file as a subset of the master file.
When the read occurs I am getting an
"Undefined record type is found in file PRHSTD"
I am stumped anybody have any ideas.

Thanks in advance

Bob Anderson
IT Guy
Kent Sporting Goods
433 Park Ave. S
New London OH 44851
419-929-7021 x315
email: banderson@xxxxxxxxxxxxxxxxxxx
--
This is the RPG programming on the AS400 / 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.