But _this_ I suspect will:

dcl-ds PSDS ext PSDS extname('PSDS') prefix('GV_') end-ds;

Maybe without quotes you are letting RPG's normal casing rules work. With quotes you are saying "use this" and the lower case v is not valid ?

I think the changes in the differences between when quotes are usable or not comes about with those cases (such as EXTNAME) where a named field or a literal can be used. Take the quotes off 'PSSR' and you'll see a different failure. Type 'ppsr' and you'll see that will fail too. Hmmm perhaps pops is an exception but without and without quotes on EXTNAME are very different things.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

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


This thread ...

Follow-Ups:
Replies:

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

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