User space size

415 pts.
Tags:
AS/400
iSeries
QUSCRTUS
Hi, is the size of user space auto resizable? I tested creating a user space with the initial length to 1 QUSCRTUS(userSpace, /* User space name and library */ "temporal ", /* Extended attribute (QUSLOBJ) */ 1, /* Size of the user space */ &spaceInit, /* Space initialization */ "*ALL ", /* Public authority to user space */ "TEMP ", /* User space text */ "*NO ", /* Replace existing user space? */ errorCode, /* Error Code */ "*USER "); /* Domain of created user space */ and used the QUSLOBJ API to dump data in it, there is not invalid pointer message nor any error, that test make me thought that the user space is auto resizable but in the documentation indicates that the QUSCUSAT is required to truncate or extend the user space. In other references that I found into internet says: 'user spaces automatically expand as needed to hold the data placed in them.' Thanks

Software/Hardware used:
v5r4

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • bvining
    IBM List APIs temporarily change the target *USRSPC to autoextend and then, if initially not autoextend, back to not being autoextend when the API is done loading list entries. This is documented "somewhere" in the Information Center but I didn't find it immediately. Bruce Vining
    6,465 pointsBadges:
    report
  • TomLiotta
    To continue Bruce's comment, your code can work similarly to IBM's list APIs. You can use QUSCUSAT to switch Automatic extendibility on or off. Other references are correct; user spaces can automatically expand when you write past the current end of the space -- you just need to set the Automatic extendibility attribute appropriately (and perform valid operations). Rely on "other references that [you find on the] internet" as a guide for further investigation. But rely on official documentation for answers. -- Tom
    125,585 pointsBadges:
    report
  • GraceP
    Thanks.
    415 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following