Re: Ping: Pete Dashwood



On Sat, 27 Sep 2008 02:28:53 -0500, SeaSideSam <Sam@xxxxxxxx> wrote:

Ref: http://primacomputing.co.nz/cobdata

in "robert's original code" some pic clauses have periods following and
others don't. the compiler must handle this okay.
-snip-
. 10 layout-type pic x(01)
. 88 type-binary value 'b'
. 88 type-packed value 'p'
. 10 layout-redefines-name pic x(31).
. 10 layout-redefines-stack.
. 15 layout-redefines-depth binary pic s9(02).
. 15 layout-redefines-entry occurs 10 binary pic s9(04).

. procedure division.

I'm embarrassed. It's fixed now.

you two seemed to get this done in a very short time. would this be
typical?

It would have been faster if our longitudes/time zones were closer. Also, if we had used
collabortion tools better than email.

not to nitpick; but... ever since i've had a tp monitor on my desk (at
work or at home) with the capability of running a compile and having the
listing available at my desk within moments i have had a dummy program
available where i 'copy' the data structure i'm working with, compile,
and get offset and displacement info directly from the compiler listing.
worked for me.

Why do you need offsets? I've needed them only once, when creating a record description
for ODBC access to flat files.
.



Relevant Pages

  • Re: COBOL tool
    ... has a virtual length of 9 digits but occupies 5 actual bytes), ... it is called a 'compiler'. ... How hard would it be to write a couple of lines around a record layout ... and have a popup window that would give you the offset ...
    (comp.lang.cobol)
  • Re: COBOL tool
    ... it is called a 'compiler'. ... select with the mouse all or part of a COBOL record layout viewed in your ... and have a popup window that would give you the offset ...
    (comp.lang.cobol)
  • Re: procedure parameter struct order
    ... [original poster wrote] ... so the stack should be used in any cases. ... it does depend on the compiler -- but be aware that just ... field will be at offset 0, the next at an offset no less than ...
    (comp.lang.c)
  • Re: Advice Needed...
    ... arrays but decided against it for very good reason. ... Every compiler is capable of compiling the offset as a ... constant into the base address as - guess what - a ~constant offset~. ... to be as clear as possible -- Paul Vick is the single person most responsible ...
    (microsoft.public.vb.general.discussion)
  • Re: What is the point of properties?
    ... Using a property is clearer, more compact notation. ... This is because properties are "executed" by the compiler and methods are "executed" by the runtime. ... there is a specific offset from the object base pointer to the address of the property. ...
    (microsoft.public.dotnet.languages.csharp)