|
On Feb 7, 2019, at 12:41 AM, Roger Harman <roger.harman@xxxxxxxxxxx> wrote:
I added prefix to an existing program and this worked fine.
dcl-ds PSDS ext PSDS extname('PSDS') prefix(Gv_) end-ds;
This DID NOT.
dcl-ds PSDS ext PSDS extname('PSDS') prefix('Gv_') end-ds;
RNF3534: The parameter for keyword PREFIX is not valid; keyword is ignored.
Roger Harman
COMMON Certified Application Developer - ILE RPG on IBM i on Power
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> on behalf of Brian Parkins <goodprophet.bp@xxxxxxxxx>
Sent: Wednesday, February 6, 2019 3:33 PM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: More D spec questions VERY PICKY
Beg to differ, PREFIX _can_ have quotes. From the RPG IV manual:
The PREFIX keyword allows the specification of a character string or
character literal which is to be prefixed to the subfield names of the
externally described data structure being defined.
So, PREFIX(Gv) and PREFIX('GV') are no different - note uppercase in the
latter. The use of quotes is essential in this situation, PREFIX('GV_')
or PREFIX('GV.').
HTH,
Brian.
On 06/02/2019 23:06, Burrows, Thomas 1001 wrote:
Dcl-ds dspgms EXT PSDS
EXTNAME('SYSAPGPF')
PREFIX(Gv);
End-ds;
// d dsPgms EsDS EXTNAME(SYSAPGPF) PREFIX(Gv)
Note the PREFIX cannot have quotes, but the EXTNAME needs them.
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.