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



> Except if you prefix the variable name by . (dot) or ? (question Mark)
> (eg : DCL .MYPOINTER SPCPTR;)


Actually just one, not more than one, symbol determines what to omit from
the symbol table, because the internal template-creating program below the
wrapper that is QPRCRTPG API accepts a one-character parameter that means,
"omit symbols that begin with this character from the symbol table".  The
QPRCRTPG API passes a period "." in that internal parameter, thus your MI
program symbol tables include questionmark-prefixed symbols, which I like
to use for pointers.  It appears OPM CL passes a question mark "?" in that
internal parameter, thus CL program symbol tables include period-prefixed
symbols.

However, a bug in the DSPPGMVAR command (not the MI compiler) fails to
correctly display symbol names with embedded periods, so frankly I just
avoid periods in MI symbols altogether.  For example,

DSPPGMVAR PGMVAR(('A.B' ()))

CPF1922 - Variable 'A.B' not found in program TEST.

MATPG on program TEST *does* show variable 'A.B' in the symbol table, so,
something is flakey with DSPPGMVAR.


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.