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



Hi Scott,

I have never worked with teraspace allocation and honestly do not know how
to do that. As per the IBM API manual, the Initial Size parameter can have
a value from 1 to 16776704 and that is what I have used. The purpose of the
utility is to read through any data queue (keyed/non-keyed) and store the
contents in a SQL table and also clear the messages from the data queue, if
the user so chooses. This works absolutely fine in V5R4, I have tested this
with various queues in different libraries and also on different systems.

If you could point me to an alternative/better way to do this, I would be
grateful.

Thanks.


On Thu, Aug 22, 2013 at 4:45 PM, Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx>wrote:

User spaces cannot be this large, I bet.

Is there a reason to use a user space, here? Using teraspace
allocation, you could easily exceed that size -- but for some reason you
are using a user space. Why is that? Only reason I can think of is
that you plan to share the data across jobs...?

-SK


On 8/22/2013 3:38 PM, Shubhadeep Roy wrote:
Thanks. I had put all these calls under Monitor blocks, but this error
was
unmonitored. I debugged and checked that the QUSCRTUS APi is failing with
CPF3C2C (Value &1 for size parameter is not valid.). I used the maximum
allowed value in the call to this API-

CallP CrtUsrSpc(Wk_UserSpaceNm : ' ' : 16776704 : x'00' : '*ALL' :
'Data Queue Dump' : '*YES' : ApiErrDS);

Could you suggest why I am getting this error?

Warm regards,
Shubh

--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.





As an Amazon Associate we earn from qualifying purchases.

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