30.06.2013 Views

Data Queue APIs--Categories - FTP Directory Listing - IBM

Data Queue APIs--Categories - FTP Directory Listing - IBM

Data Queue APIs--Categories - FTP Directory Listing - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Change User Space (QUSCHGUS) API<br />

Change User Space (QUSCHGUS) API<br />

Required Parameter Group:<br />

1 Qualified user space name Input Char(20)<br />

2 Starting position Input Binary(4)<br />

3 Length of data Input Binary(4)<br />

4 Input data Input Char(*)<br />

5 Force changes to auxiliary storage Input Char(1)<br />

Optional Parameter:<br />

6 Error code I/O Char(*)<br />

Threadsafe: Yes<br />

The Change User Space (QUSCHGUS) API changes the contents of the user space (*USRSPC) object by<br />

moving a specified amount of data to the object. This API allows you to change the contents of a user<br />

space if you are using either:<br />

● A language that does not support pointers<br />

● System-domain user spaces<br />

Note: To determine the starting position for the QUSCHGUS API, you must add 1 to the offset value. In<br />

contrast to the OS/400 list <strong>APIs</strong>, which use an offset value based on 0 for the starting position, the<br />

QUSCHGUS API uses a value based on 1. For the QUSCHGUS API, the first character in the user space<br />

is at position 1.<br />

Authorities and Locks<br />

Library Authority<br />

*EXECUTE<br />

User Space Authority<br />

*CHANGE<br />

User Space Lock<br />

*EXCLRD<br />

http://infocntr.rchland.ibm.com/pubs/html/as400/v4r5/ic2924/info/apis/quschgus.htm (1 of 4) [10/4/1999 2:34:46 PM]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!