Your general coding is proper. A specific change you need to make is to remove the quote marks:<pre>
CALL PGM(QWCLASBS) PARM( &USRSPN &FRMTNM +
If you put quote marks around the variable names, they won’t be names any more.
I will assume that you have put proper values into the variables and that you created the user space before calling this API.
The DMPCLPGM is useful while testing. You might also want to use DMPOBJ to dump the user space after the API finishes.