|
Hi All, Could someone give me some advice regarding using ILE RPG and list API's via user spaces. As you know you can manipulate data in user spaces via pointers in ILE RPG. If I going to be retrieving data via an API into a user space and I have no idea how much data is going to be returned, what do I set the Data Structure/Array Size to? If I set it 'Really Big' this will obviously have a negative impact on the amount of storage that the pgm uses. You can't use dynamic allocation because I don't know how items are going to be returned via the API. The pointer method seems to be at a disadvantage when compared with using the QUSRTVUS and incrementing the offset Please someone tell me I got it wrong and that the pointer method is the way to go. Nigel Percy _______________________________________________________________ Please note that the e-mail address for P&O Cruises has changed to @pocruises.com
{\rtf1\ansi \deff0\deflang1024{\fonttbl{\f0\froman Tms Rmn;}{\f1\froman Symbol;}{\f2\fswiss Helv;}} {\colortbl;\red0\green0\blue127;\red0\green127\blue0;\red0\green127\blue127;\red127\green0\blue0; \red127\green0\blue127;\red127\green127\blue0;\red127\green127\blue127;;\red0\green0\blue255; \red0\green255\blue0;\red0\green255\blue255;\red255\green0\blue0;\red255\green0\blue255; \red255\green255\blue0;\red255\green255\blue255;}\paperw12240\paperh15840\margl1800\margr1800\margt1440\margb1440 \gutter0 \defformat\sectd \pard\plain {\plain \f0 \cb7 \cf0 \cb7 \cf0 \cb7 \cf0 Hi All,\ \cb7 \cf0 \ \cb7 \cf0 \ \cb7 \cf0 \cb7 \cf0 Could someone give me some advice regarding using ILE RPG and list \ \cb7 \cf0 \cb7 \cf0 API's via user spaces. As you know you can manipulate data in user\ \cb7 \cf0 \cb7 \cf0 spaces via pointers in ILE RPG. If I going to be retrieving data via \ \cb7 \cf0 \cb7 \cf0 an API into a user space and I have no idea how much data is going to \ \cb7 \cf0 \cb7 \cf0 be returned, what do I set the Data Structure/Array Size to?\ \cb7 \cf0 \ \cb7 \cf0 \cb7 \cf0 If I set it 'Really Big' this will obviously have a negative impact on\ \cb7 \cf0 \cb7 \cf0 the amount of storage that the pgm uses.\ \cb7 \cf0 \ \cb7 \cf0 \cb7 \cf0 You can't use dynamic allocation because I don't know how items are \ \cb7 \cf0 \cb7 \cf0 going to be returned via the API.\ \cb7 \cf0 \ \cb7 \cf0 \cb7 \cf0 The pointer method seems to be at a disadvantage when compared with \ \cb7 \cf0 \cb7 \cf0 using the QUSRTVUS and incrementing the offset\ \cb7 \cf0 \ \cb7 \cf0 \cb7 \cf0 Please someone tell me I got it wrong and that the pointer method is \ \cb7 \cf0 \cb7 \cf0 the way to go.\ \cb7 \cf0 \ \cb7 \cf0 \ \cb7 \cf0 \cb7 \cf0 Nigel Percy\ \cb7 \cf0 \ \par }}
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.