|
>I have a program that is bombing and the
>parameter values are appearing in
>hex. For example:
>CALL PGM(lib/pgm) PARM(X'C8C940E3C8C5D9C5')
>Any suggestions as to how I can view the
>value of the parameters in a timely
>manner?
Hi Aaron!
You can pass the parameters into a program that converts the hex back into
EBCDIC. Add a display file to this, cut & paste and you should be good to
go.
h debug dftactgrp(*no) actgrp('QILE') bnddir('QC2LE')
* dbgview(*list)
* The following are the C defintions for the MI function cvtch
* - refer to the MI Library Reference on the ILE C bookshelf for f
* void cvtch (_SPCPTR receiver,
* _SPCPTRCN source,
* int size););
D C2H Pr ExtProc('cvtch')
D RecPtrP * Value
D SrcPtrP * Value
D SizeP 10I 0 Value
D H2C Pr ExtProc('cvthc')
D RecPtrP * Value
D SrcPtrP * Value
D SizeP 10I 0 Value
D RecPtr S * INZ
D SrcPtr S * INZ
D OutStrD S 20 INZ
D InpStrD S 10 INZ('F1F2F3')
D Size S 10I 0 INZ
C Eval RecPtr=%Addr(OutStrD)
C Eval SrcPtr=%Addr(InpStrD)
C Eval Size=%len(%trim(InpStrD))
C CALLP C2H(RecPtr :
C SrcPtr :
C Size)
C InpStrD Dsply
C OutStrD Dsply
C Movel(P) OutStrD InpStrD
C Eval OutStrD=*BLANKS
C Eval Size=%len(%trim(InpStrD))*2
C CALLP H2C(RecPtr :
C SrcPtr :
C Size)
C InpStrD Dsply
C OutStrD Dsply
C SetOn LR
--buck
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.