I use the RCDFMT option when I create each table.  If your table is new,
it will be the easiest.

On 2/6/19 10:58 AM, Justin Taylor wrote:
By default, DDL-defined tables use the table name as the record name, which RPG doesn't like. The work-around now is the RENAME keyword on your F-spec.

iACS New Table has a box for "Record format name". You can specify the record name there in the future to avoid this issue.

-----Original Message-----
From: Booth Martin [mailto:booth@xxxxxxxxxxxx]
Sent: Tuesday, February 05, 2019 8:39 PM
To: RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
Subject: SQLRPGLE Format name for records

I created a file using SQL.  Looks right to me.  I then compiled a program with that file in an F-spec and got this:

     41   dcl-f CUSPI usage(*update: *output) usropn;
 ======> aaaaa
 ======> bbbbb
 *RNF2121 30 a      004100  Record format CUSPI in file CUSPI already defined; record
                            format is ignored.
 *RNF2109 40 b      004100  All Record Formats for externally-described file CUSPI
                            ignored or dropped due to error; file ignored.

-- Este e-mail fue enviado desde el Mail Server del diario ABC Color --
-- Verificado por Anti-Virus Corporativo Symantec --

This thread ...


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

This mailing list archive is Copyright 1997-2020 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].