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.
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_')
On 06/02/2019 23:06, Burrows, Thomas 1001 wrote:
Dcl-ds dspgms EXT PSDS
// d dsPgms EsDS EXTNAME(SYSAPGPF) PREFIX(Gv)
Note the PREFIX cannot have quotes, but the EXTNAME needs them.