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



Hi. I am trying to set up a simple debug error handler and am using API
QTERTVPV and am having problems getting it working 100%. The code below
runs as errcode = blanks after the procedure, but the value of RTNVAL
should be the current library and it is all reverse image blanks... Does
anyone have a fix.. Is it a problem with my receivervar/lengthofrec
definition...

Also is there a hidden ILE retrieve pgm var API that I can use.. I see one
for all variables, but for what I need in this simple error handler that is
overkill. I have looked on all search engines and no one is using this API

Thanks in advance
Dave



     Drtv              pr                  extpgm('QTERTVPV')
     d Receivervar                32767A   options(*varsize)
     d LengthofRec                   10i 0 const
     d Programvar                   132    const
     d Basingpoint                  660    const
     d Startingpos                   10i 0 const
     d Lengthofstr                   10i 0 const
     d Outputform                    10    const
     d Program                       10    const
     d Recursionlvl                  10i 0 const
     D errorcode                           like(errCode)

     D errCode         ds
     D   prov                        10i 0 inz(%size(errCode))
     D   avail                       10i 0
     D   excid                        7a

     d rtnval          ds            10
     c                   callp     rtv(
     c                                           rtnval :
     c                                       %size(rtnval) :
     c                             '&CURLIB' :
     c                             ' ' :
     c                             1   :
     c                             0   :
     c                             '*CHAR'  :
     c                             'XXXXXXXXXX'  :
     c                             0         :
     c                                           Errcode )
     c
     c                   move      *on           *inlr



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.