PDA

View Full Version : Retrieve User Space API (QUSRTVUS)



Guest.Visitor
02-22-2002, 12:45 PM
JR, The problem most everyone has when beginning to program with the API's is that they define the integer fields incorrectly. Most make the mistake of defining the field like this: From To Dec FieldName 4b 0 myField Do either one of these: From To Dec FieldName 1 4b 0 myField 10u 0 myField Bill > Can anyone tell me this: If I want to send a Starting Position of 1 and a Length of Data 4 to this API, what do I have to put in the Parmaeters? It seems to translate it to Hex (maybe, not sure) cause I get an error when calling this API. The Size Value is outrageous. Thanks in advance.

jrhoads@cdsgroup.com
02-24-2002, 10:51 AM
Can anyone tell me this: If I want to send a Starting Position of 1 and a Length of Data 4 to this API, what do I have to put in the Parmaeters? It seems to translate it to Hex (maybe, not sure) cause I get an error when calling this API. The Size Value is outrageous. Thanks in advance. JR

Guest.Visitor
02-24-2002, 10:51 AM
JR, You can always compare your code to the user space support found in the iSeries-toolkit (http://www.iseries-toolkit.org). The USRSPC module (http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/iseries-toolkit/CVSROOT/src/qrpglesrc/usrspc.irp?rev=HEAD&content-type=text/vnd.viewcvs-markup) contains an example of the prototypes necessary to call the user space APIs. The Storage Toolkit documentation (http://sourceforge.net/docman/display_doc.php?docid=9157&group_id=39365) gives some examples that store data in user spaces. David Morris