IBM Version 4 Universal Remote User Manual


 
MOVE 124 TO SPACE-SIZE.
CALL "QUSCRTUS" USING SPACE-NAME, EXT-ATTR, SPACE-SIZE,
SPACE-INIT, SPACE-AUT, SPACE-TEXT,
SPACE-REPLACE, QUS-EC, SPACE-DOMAIN.
ᑍ Check for errors on QUSCRTUS
IF BYTES-AVAILABLE OF QUS-EC > 
MOVE "QUSCRTUS" TO API-NAME,
PERFORM API-ERROR-FOUND.
ᑍ Change the User Space so that it is extendable
CALL "QUSCUSAT" USING LIBRARY-NAME, SPACE-NAME,
CHG-US-ATTR, QUS-EC.
ᑍ Check for errors on QUSCUSAT
IF BYTES-AVAILABLE OF QUS-EC > 
MOVE "QUSCUSAT" TO API-NAME,
PERFORM API-ERROR-FOUND.
ᑍ Get a resolved pointer to the User Space
CALL "QUSPTRUS" USING SPACE-NAME, SPACE-POINTER, QUS-EC.
ᑍ Check for errors on QUSPTRUS
IF BYTES-AVAILABLE OF QUS-EC > 
MOVE "QUSPTRAT" TO API-NAME,
PERFORM API-ERROR-FOUND.
ᑍ If no errors, then call QDBRTVFD passing the address of the
ᑍ User Space as the receiver variable. To accomplish this,
ᑍ assign the address of QDB-QDBFH to SPACE-POINTER and then
ᑍ pass QDB-QDBFH.
SET ADDRESS OF QDB-QDBFH TO SPACE-POINTER.
MOVE 1677674 TO SPACE-SIZE.
MOVE "FILD1" TO FORMAT-NAME-1.
CALL "QDBRTVFD" USING QDB-QDBFH, SPACE-SIZE, FILE-USED,
FORMAT-NAME-1, FILE-NAME,
FORMAT-NAME-PARM, OVERRIDES,
SYSTEM OF MISC, FORMAT-1, QUS-EC.
ᑍ Check for errors on QDBRTVFD
IF BYTES-AVAILABLE OF QUS-EC > 
MOVE "QDBRTVFD" TO API-NAME,
PERFORM API-ERROR-FOUND.
ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
API-ERROR-FOUND.
ᑍ Log any error encountered, and exit the program
DISPLAY API-NAME.
B-154 System API Programming V4R1