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



Thanks Mark and Rob,

What was throwing me was that the error message specifically complained
about parameter 2.  Had it said something like "Parameters 5 and 6 are
required" or " Incorrect number of parameters passed" then I would have
headed in a different direction.

What I ended up doing was calling the API with all 6 parameters as follows:

DCL        &Usr    *CHAR LEN(10)
DCL        &Pwd    *CHAR LEN(10)
DCL        &Err    *CHAR LEN(1024)
DCL        VAR(&PH) TYPE(*CHAR) LEN(12)


CALL       PGM(QSYGETPH) PARM(&USR &PWD &PH &ERR 10 37)

We have a 10 character password and use CCSID 37

Worked like a charm!

Thanks for your help.

Pete Helgren
Value Added Software,Inc.
801.581.1154 x202




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.