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



Arup,

Classical misunderstanding: what API manuals call BINARY(4) (binary number of 4 bytes) is called '10I 0' or '10U 0' (binary integer or unsigned integer of 10 digits) by RPG. So change your prototype to:

GetProfile      PR                  ExtPgm('QSYGETPH')
  UserID                      10A   const
  Password                    10A   const options(*varsize)
  Handle                      12A
  ErrorCode                32766A   options(*varsize: *nopass)
  PassLength                  10I 0 const options(*nopass)
  PassCCSID                   10I 0 const options(*nopass)

I added 'options(*varsize)' to the password parameter; the actual length is determined by the PassLength parameter.

I added 'const' to PassLength and PassCCSID because these parameters are input to the API; this way you can use literals in the call.

Joep Beckeringh


Dey, Arup wrote:
Hi All,

Require help on QSYGETPH.. The API is modified in V5R3 and requires two additional parameters additional parameter for length of password and CCSID both parameters are Input ,Binary 4 ..
How to pass those values..


Following types I had used .. but all of them failed
* Defined in D specs
GetProfile PR ExtPgm('QSYGETPH') UserID 10A const Password 10A const Handle 12A ErrorCode 32766A options(*varsize: *nopass) PassLength 4B 0 options(*nopass) PassCCSID 4B 0 options(*nopass) callp GetProfile(userid: passwd: handle: dsEC: passlengthb:
passccsidb)



Kindly help how to pass the passwordlength and its ccsid parameters
(password length is 8)


Thanks in advance

Regards

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.