On 16 Apr 2010 08:52:13 -0700, in bit.listserv.ibm-main you wrote:

>On Fri, 2010-04-16 at 11:43 -0400, Walt Farrell wrote:
>> Why would you want to do math on a pointer?
>
>One example: in a COBOL program I wrote awhile ago, I process SMF
>type-30 records.  Those records contain segments whose offsets are
>stored in fullwords - I address those segments by doing pointer
>arithmetic on the address of the SMF30 record.

In response to other postings, TRUNC(OPT) should work as well as
TRUNC(|BIN) without the brain dead code generation if all operands are
either binary or literals.  The more interesting question is why use a
pointer when reference modification works well for playing with the
SMF30 records?  

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to