My profile was disabled for IBM i Support for Windows Network Neighborhood
access. What to do? I asked Grok. It understood my question exactly.
Gave me 4 options, each described briefly, to the point. I took the option
to write a CL program, using the code Grok gave me. The code worked.

This past week I asked for help on using db2 for i to calculate a running
total order amount within order number. It gave me code that uses the SUM
and LAG functions. I asked about converting from scientific notation back
to decimal. Grok said to cast from double. Absolutely incredible.


Programmatic/API method (if you need to script it):

- Call the QZLSCHSI API with format ZLSS0200 to clear the disabled flag
for a specific user.
- Example CL snippet (adapt as needed; requires appropriate authority):

PGM PARM(&USER)DCL VAR(&USER) TYPE(*CHAR) LEN(10)
DCL VAR(&RQSVAR) TYPE(*CHAR) LEN(14)
DCL VAR(&RQSLEN) TYPE(*INT) VALUE(14)

CHGVAR VAR(&RQSVAR) VALUE(' ' *CAT &USER)
CHGVAR VAR(%BINARY(&RQSVAR 1 4)) VALUE(&RQSLEN)

CALL PGM(QSYS/QZLSCHSI) PARM(&RQSVAR &RQSLEN 'ZLSS0200' X'00000000')
ENDPGM

Call it like: CALL YOURPGM PARM('SRICHTER')

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-2026 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.