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



"The &LENGTH parameter in this program is defined as *DEC but the API is
expecting *INT.  The statement 

DCL        VAR(&LENGTH) TYPE(*DEC) LEN(4) VALUE(50)

is creating &LENGTH with a value of x'0000050F' which the API is
interpreting as 1295 - just a bit longer than the 50 bytes you are really
passing.  On V5R3 you could change to

DCL VAR(&LENGTH) TYPE(*INT) VALUE(50)

which would give you x'00000032' (a length of 50).  Alternatively you 
could

DCL VAR(&LENGTH) TYPE (*CHAR) LEN(4) VALUE(x'00000032')

Your API call may have appeared to be working OK on prior releases, but 
you
were inadvertently corrupting storage which may have caused other
application functions to work "strangely"."

Thank you Bruce for pin-pointing the error and for your advise on this 
issue.  This is oficially the first API I work with and they are tricky 
when you do not know them too much :o)

Thanks again!


Peter Vidal 
PALL Corporation / SR Programmer Analyst, IT Development Group
10540 Ridge Rd., Ste 203, New Port Richey, FL 34654-5111
http://www.pall.com

"Courage is the strength or choice to begin a change. Determination is the 
persistence to continue in that change." 
-- Anonymous --

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.