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