Skip to content

Instantly share code, notes, and snippets.

@lbdyck
Created December 15, 2022 13:48
Show Gist options
  • Save lbdyck/f5b3efe4eda61355ad78f05c486d57b0 to your computer and use it in GitHub Desktop.
Save lbdyck/f5b3efe4eda61355ad78f05c486d57b0 to your computer and use it in GitHub Desktop.
Routine to report if 8 Character Userids are Allowed
/* rexx */
say 'Length of supported TSO Userids:' userid_len_check()
exit
Userid_Len_Check:
/* --------------------------------------- *
| Check the 8 character TSO Userid state. |
* --------------------------------------- */
cvt = c2d(storage(10,4))
tsvt = c2d(storage(d2x(cvt+156),4)) /* cvt + 9C */
tsvtumxl = c2d(storage(d2x(tsvt + 6), 1)) /* tsvt + 6 */
if tsvtumxl = 0 then return 7
else
return tsvtumxl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment