|
On 22 Aug 2013 13:38, Shubhadeep Roy wrote:
<<SNIP>> 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?
Try a maximum of 16773120 instead:
http://pic.dhe.ibm.com/infocenter/iseries/v7r1m0/topic/apis/quscrtus.htm
_i Create User Space (QUSCRTUS) API i_
"...
_i Optional Parameter Group 3 i_
_Transfer size request_
...
_Optimum space alignment_
... *optimum space alignment ... is the default value*
...
Note: If not using the optimum space alignment, the user space has a
maximum size of 16MB minus 512 bytes (16,776,704 bytes). If optimum
alignment is specified, the maximum size of the user space is 16MB minus
one disk page (current page size is 4096 bytes, giving a maximum space
size of 16,773,120 bytes).
..."
--
Regards, Chuck
--
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 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.