[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [open-cobol-list] Re: Bug EXTERNAL

From: Roger While
Subject: RE: [open-cobol-list] Re: Bug EXTERNAL
Date: Fri Oct 28 10:56:52 2005

More or less. The first problem is it is allowed ?
If yes, then codegen needs to :
allocate a cob_field for this when it it is not an
elementary item and otherwise bomb out.

Problem is in codegen (when allowed).

Bill ?

Am 19:05 28.10.2005 schrieben Sie:
Roger and Bill,

        It is valid on the IBM main frame. I would be happy to provide a
main frame compiler listing. Also, it use to work in the Open Source COBOL

        I am working on fixing the problem. Originally, I thought the
problem was in output_file_definition. The routine output_file_definition
calls output_param several times. I now believe the problem is in the
routine output_param. In particular, the statement:
                output_param (f->record_depending, -1);
is generating bad code.

        The output of the compiler includes the statement:

static cob_file h_RFRIN = {0, 1, 0, 0, 0, &c_12, &f_8,
      (f[0].size = 4, f[0].data = b_RECORD_SIZE, f[0].attr = &a_13, &f[0]),
       1, 123, 0, 0, 0, NULL, NULL, NULL, NULL, NULL,
        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};

The above statement has been reformatted. However, the second line is the
problem. I believe the second line should simple be something like &f_13
where f_13 is the cob field that holds the size of the output record.

Do you think I am on the right track to fix this problem?


Bob Sherry

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of Roger
Sent: Friday, October 28, 2005 12:14 PM
To: address@hidden
Cc: address@hidden; address@hidden
Subject: [open-cobol-list] Re: Bug EXTERNAL

Bill, is this a valid use of EXTERNAL ?
There are so many differences between C85, C2002, MF,ACU and
main-frame that I can't see the wood for the trees.


This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
open-cobol-list mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]