|
----- Message from Thomas Raddatz <thomas.raddatz@xxxxxx> on Tue, 16
Aug 2016 04:56:08 +0000 -----
To:
"Rational Developer for IBM i / Websphere Development Studio Client
for System i & iSeries" <wdsci-l@xxxxxxxxxxxx>
Subject:
Re: [WDSCI-L] A new RFE for retrieving a data area description
Michael,
Have you seen the QWCRDTAA API? It might be what you are looking
for. The TYPE, LENGTH and DECPOS attributes of the receiver data
structure contain information about the type, length and number of
decimal positions:
* Retrieve Data Area (QWCRDTAA) API
d QWCRDTAA...
d pr extpgm('QWCRDTAA')
d o_rcvVar 65535a options(*varsize)
d i_lenRcvVar 10i 0 const
d i_qDtaAra 20A const
d i_start 10i 0 const
d i_length 10i 0 const
d io_errCode 65535a options(*varsize)
*
* Format of Data Returned (attributes and value)
d rtvDtaAra_t ds qualified template
d bytRet 10i 0
d bytAvl 10i 0
d type 10a
d lib 10a
d length 10i 0
d decPos 10i 0
d value 2000A
You may remove the "value" field of the " rtvDtaAra_t" data
structure if you are not interested in the value of the data area.
Thomas.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.