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



In RPG IV, code the length as a 10-byte integer (10I 0), instead of binary.
This is one of those things that confuses the heck out of first-time API
users. I know it doesn't sound like it will work, but trust us, it will ;)

On Dec 21, 2007 1:31 PM, Jacktucky <jacktucky@xxxxxxxxx> wrote:

Thanks to all. The code I downloaded is sending the second parameter
group.
But since the length is in binary I need to do this in RPG?

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Pete Helgren
Sent: Thursday, December 20, 2007 9:46 PM
To: Midrange Systems Technical Discussion
Subject: Re: Question about QSYGETPH and long passwords

Jack,

The API documentation has this:

*Length of password*
INPUT; BINARY(4)

The length, in bytes, of the password contained in the user profile
password parameter. If optional parameter group 2 is not specified,
a default of 10 is used.

You'll need to use the "optional" parameters if the password is greater
than 10 chars

Pete Helgren



Jacktucky wrote:
I'm trying to call QSYSGETPH from a CL. If I test with a password that
is
10 characters or less, the code works.



If I try a long password, it fails with incorrect password.



Is there some special way to call that API in CL? The length parm is
correct.



We are using code from iseriestools.com. I just modified the CMD and
CLP
to
use 128 character length for the password



CALL PGM(QSYGETPH) PARM(&USERID &PASSWORD &HANDLE
&ERRORCODE +

&PWDLEN &CCSID)



Thanks



Jack








--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.





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.