×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
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.
As an Amazon Associate we earn from qualifying purchases.