× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Simple CL example:

Switches profile to new 'NEWUSER'

PGM        PARM(&VALID)

/* DEFINE INCOMING PARAMETERS */

DCL VAR(&USERID) TYPE(*CHAR) LEN(10)
DCL VAR(&PH) TYPE(*CHAR) LEN(12)
DCL VAR(&VALID) TYPE(*CHAR) LEN(1)


CHGVAR     VAR(&VALID) VALUE('Y')
CHGVAR     VAR(&USERID) VALUE('NEWUSER')

CALL       PGM(QSYGETPH) PARM(&USERID *NOPWD &PH)
 MONMSG     MSGID(CPF0000) EXEC(CHGVAR VAR(&VALID) +
            VALUE('N'))

IF         COND(VALID *EQ 'Y') THEN(DO)
   CALL      PGM(QWTSETP) PARM(&PH)
   MONMSG     MSGID(CPF0000)
ENDDO

* END OF PROGRAM */

END:        ENDPGM



Pete Helgren
Value Added Software, Inc.


DRootes@xxxxxxxx wrote:

Hi,

I'm trying to get either the QSYGETPH API or the QsyGetProfileHandle API to work and not having much luck. No matter what I send to them I get back a null value. I've tried using CL and RPG but am having no real luck. Does anyone have any examples from their own usage? I've looked at the security API manual but other than listing the parms, it's not much help.

Thanks,

Dennis



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2024 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.