You are correct. It is a limitation of RPG. It used to be 32K before V5.
Faizulla Khan
Information Services
Grand Circle Travels
617-346-6058
San Su
<sansu@xxxxxxxxxx
> To
Sent by: Websphere Development Studio Client
wdsci-l-bounces@m for iSeries <wdsci-l@xxxxxxxxxxxx>
idrange.com cc
Websphere Development Studio Client
for iSeries <wdsci-l@xxxxxxxxxxxx>,
01/07/2008 02:05 wdsci-l-bounces@xxxxxxxxxxxx
PM Subject
Re: [WDSCI-L] Web Services wizard
and SRVPGM prototypes.
Please respond to
Websphere
Development
Studio Client for
iSeries
<wdsci-l@midrange
.com>
I believe 65535 is a language limitation of RPG. Other language such as
COBOL do not appear to have this limitation. In COBOL, the maximum length
of a character field is 16711568.
_________________________________________
San Su
IBM Toronto Labs
Faizulla Khan
<fkhan@xxxxxxx>
Sent by: To
wdsci-l-bounces@m Websphere Development Studio Client
idrange.com for iSeries <wdsci-l@xxxxxxxxxxxx>
cc
"'Websphere Development Studio
01/07/2008 01:44 Client for iSeries'"
PM <wdsci-l@xxxxxxxxxxxx>,
wdsci-l-bounces@xxxxxxxxxxxx
Subject
Please respond to Re: [WDSCI-L] Web Services wizard
Websphere and SRVPGM prototypes.
Development
Studio Client for
iSeries
<wdsci-l@midrange
.com>
65535 is the max limit in V5R4 for the size of a qualified data structure
-- it is truly inadequate. I hit it all the time since my rpg application
is sending several rows of structured data. A good example is an order
inquiry structure which may contain other structures which in turn may
contain other structures. The total size of these structures is limited to
64K. To get around it I typically separate the repeated rows into a
structure by itself and let the Java application combine them into a single
xml return envelope.
CustomerDs DS Qualified
Number 10A
Name 20A total size 30
ItemDS DS Qualified
Status 10A
Type 10A
Quantity 3 0Z
Description 80A
DateOrdered 10L total size 113
addressDS DS Qualified
Street 32A
State 2A
City 20A
Zip 5A total size 59
CarrierDS DS Qualified
Carrier 30A
Charges 7.2Z
Confirmation 30A total size 67
OrderDS DS Qualified
Customer likeDS(customerDS) 30
Shiped likedS(addressDS) 59
Carrier likeDS(CarrierDS) 67
items likeDs(itemDS) dim(50) 5650
OrdersDs DS Qualified
customerNumber 10A const
order likeDS(OrderDS) dim(12) Will not compile - total
size 69672
In the above example my RPG application will take the customer number and
return all the orders back for that customer using a single OrdersDS
structure.
It is rumored that In V6 the limit has been increased to 16MB.
Regards
Faizulla Khan
Information Services
Grand Circle Travels
617-346-6058
"Aaron Bartell"
<albartell@gmail.
com> To
Sent by: "'Websphere Development Studio
wdsci-l-bounces@m Client for iSeries'"
idrange.com <wdsci-l@xxxxxxxxxxxx>
cc
01/07/2008 01:14 Subject
PM Re: [WDSCI-L] Web Services wizard
and SRVPGM prototypes.
Please respond to
Websphere
Development
Studio Client for
iSeries
<wdsci-l@midrange
.com>
What is the scenario for the data that is potentially over 65535? That
might help us better assist you. I have found 65535 for a single element
or
attribute value is plenty 99% of the time.
Aaron Bartell
http://mowyourlawn.com
-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On
Behalf Of i5
Sent: Monday, January 07, 2008 11:24 AM
To: Websphere Development Studio Client for iSeries
Subject: [WDSCI-L] Web Services wizard and SRVPGM prototypes.
"
I'm testing the Web Service wizard to generate services from a service
program, it's working fine but what if one of the parameters I need to
receve (or send) is longer then 65535?
Thanks in advance
MarcoF
--
This is the Websphere Development Studio Client for iSeries (WDSCI-L)
mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/wdsci-l.
--
This is the Websphere Development Studio Client for iSeries (WDSCI-L)
mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/wdsci-l.
--
This is the Websphere Development Studio Client for iSeries (WDSCI-L)
mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/wdsci-l.
--
This is the Websphere Development Studio Client for iSeries (WDSCI-L)
mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/wdsci-l.
As an Amazon Associate we earn from qualifying purchases.