>pgm parm(&user)
>dcl &user *char 10
>chgusrprf &user status(*enabled)
>return
>endpgm
>
>compile as USRPRF(*OWNER) and the owner as QSECOFR.

To which I would add:
  Create this as a stored procedure and call it from an ODBC client like
Excel!  Jon knows this, but the archives don't:  On the iSeries you can call
this little CL program from the command line or from SQL; nothing special
needed except a CREATE PROCEDURE statement to "register" the program as a
stored procedure.
  --buck


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.