I'm trying to use cvtch to convert hex data to character, and I'm getting a
space offset error.  Does anyone know what causes this error?  The error
does not occur until the CALLP to cvtch.

Space offset X'07FFEFF0' or teraspace offset X'0000000000000000' is 
  outside current limit for object QPADEV001WDBANS     751610.      
The call to cvtch ended in error (C G D F).                         

My prototype looks like this:

D cvtch           PR                  EXTPROC('cvtch')          
D  ptrCharReturn                  *   VALUE                     
D  ptrHexSource                   *   VALUE                     
D  intCharLength                10I 0 VALUE                     

The field definitions look like this:

D ds_ZDAQ0200     DS                  BASED(ptrZDAQ0200)                    
D  alpUser                      10A                                         
D  alpServer                    10A                                         
D  alpFormat                     8A                                         
D  hexFunctCode                  4B 0                                       
D  alp4HexBytes                  4A   OVERLAY(ds_ZDAQ0200:29)               

D  alp8CharBytes  S              8A   INZ       

the pointer is initialized to the address of the incoming parm and all the
subfields of the data structure look fine, 

and my call looks like this:

C                   CALLP     cvtch(%ADDR(alp8CharBytes)                  
C                                  :%ADDR(alp4HexBytes)                   
C                                  :%Len(alp8CharBytes)  )            

What am I doing wrong?    


>       


************************************************************************************************************************************************************************************************************
This message originates from Lincare Holdings Inc. It contains information 
which may be confidential or privileged and is intended only for the individual 
or entity named above.
It is prohibited for anyone else to disclose, copy, distribute or use the 
contents of this message. 
All personal messages express views solely of the sender, which are not to be 
attributed to Lincare Holdings Inc., and may not be copied or distributed 
without this disclaimer. 
If you received this message in error, please notify us immediately at 
MailAdmin@lincare.com or (800) 284-2006.
************************************************************************************************************************************************************************************************************


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.