Re: COBOL and the Java scripting framework ? (Re: Are there samples of COBOL methods or classes?

2023-06-30 Thread Rony G. Flatscher
On 30.06.2023 09:44, Rony G. Flatscher wrote: On 28.06.2023 17:26, Tom Ross wrote: Please check out the examples in the COBOL Programming Guide, in Part 6. Developing object-oriented programs GO here:https://www.ibm.com/support/pages/node/611415 Select which release you are interested in and

COBOL and the Java scripting framework ? (Re: Are there samples of COBOL methods or classes?

2023-06-30 Thread Rony G. Flatscher
On 28.06.2023 17:26, Tom Ross wrote: Please check out the examples in the COBOL Programming Guide, in Part 6. Developing object-oriented programs GO here:https://www.ibm.com/support/pages/node/611415 Select which release you are interested in and then click "Product Documentation" thank you,

Re: Are there samples of COBOL methods or classes?

2023-06-28 Thread Tom Ross
Please check out the examples in the COBOL Programming Guide, in Part 6. Developing object-oriented programs GO here: https://www.ibm.com/support/pages/node/611415 Select which release you are interested in and then click "Product Documentation" Cheers, TomR >> COBOL is the

Re: Are there samples of COBOL methods or classes?

2023-06-27 Thread Rony G Flatscher
> Am 27.06.2023 um 19:34 schrieb Tom Ross : > >  >> >> As the very first computer language I learned was COBOL, I have been always= >> interested to learn=20 >> about OO COBOL but never had the necessary time to research it. >> >> Are there by any chance simple COBOL snippets that would

Re: Are there samples of COBOL methods or classes?

2023-06-27 Thread Tom Ross
>As the very first computer language I learned was COBOL, I have been always= > interested to learn=20 >about OO COBOL but never had the necessary time to research it. > >Are there by any chance simple COBOL snippets that would demonstrate how to= > use OO COBOL to interact=20 >with Java (e.g.

Re: Are there samples of COBOL methods or classes?

2023-06-25 Thread Rony G. Flatscher
As the very first computer language I learned was COBOL, I have been always interested to learn about OO COBOL but never had the necessary time to research it. Are there by any chance simple COBOL snippets that would demonstrate how to use OO COBOL to interact with Java (e.g. creating a Java

Re: Are there samples of COBOL methods or classes?

2023-06-04 Thread Seymour J Metz
To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Are there samples of COBOL methods or classes? On 2/6/2023 3:47 am, Bob Bridges wrote: > I first got the hang of oo programming using VBA, and later VBS; consequently > I don't think much about inheritance. But when I finally broke down and g

Re: Are there samples of COBOL methods or classes?

2023-06-02 Thread David Crayford
On 2/6/2023 3:47 am, Bob Bridges wrote: I first got the hang of oo programming using VBA, and later VBS; consequently I don't think much about inheritance. But when I finally broke down and got myself a copy of ooRexx, I see the manuals have a lot to say about it. Mostly I read those parts

Re: Are there samples of COBOL methods or classes?

2023-06-02 Thread Jon Butler
Not to put too fine a point on encapsulation because what you say is true for Working-Storage and Paragraphs or Sections. But you can restrict or make variables available to internal subroutines with the GLOBAL attribute. Likewise, variables can be made available to external subroutines with

Re: Are there samples of COBOL methods or classes?

2023-06-01 Thread Bob Bridges
I first got the hang of oo programming using VBA, and later VBS; consequently I don't think much about inheritance. But when I finally broke down and got myself a copy of ooRexx, I see the manuals have a lot to say about it. Mostly I read those parts skimpily and have never yet had occasion

Re: Are there samples of COBOL methods or classes?

2023-06-01 Thread David Crayford
I totally agree that Object-Oriented (OO) programming hasn't lived up to all the hype it once had. But I have to disagree with the idea that code reuse is the only purpose of OO. It's actually more nuanced than that. However, if we're talking about code reuse and Java, just take a look at the

Re: Are there samples of COBOL methods or classes?

2023-05-29 Thread Charles Mills
Wait a minute! Reusability of code and Object Orientation are totally different things! One might have a library of reusable COBOL subroutines that programmers could cut and paste into their programs. (Or that worked in some other way.) No object orientation necessary. And there are lots of

Re: Are there samples of COBOL methods or classes?

2023-05-29 Thread Seymour J Metz
From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of rpinion865 [042a019916dd-dmarc-requ...@listserv.ua.edu] Sent: Monday, May 29, 2023 4:07 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Are there samples of COBOL methods or classes? When I

Re: Are there samples of COBOL methods or classes?

2023-05-29 Thread rpinion865
When I started in 1980, we used 'objects' by copying the last similar program from someone else 's library. Sent from Proton Mail mobile Original Message On May 29, 2023, 9:47 AM, Andrew Rowley wrote: > On 29/05/2023 8:40 am, Tom Ross wrote: > ... The real > worl is not

Re: Are there samples of COBOL methods or classes?

2023-05-29 Thread Andrew Rowley
On 29/05/2023 8:40 am, Tom Ross wrote: ... The real worl is not object oriented...we do no instantiate a customer object and then invoke a 'send_a_bill' method on that object. We procedurally decide that it is time to send a cusotmer a bill and do it! I'm not sure I would agree... it

Are there samples of COBOL methods or classes?

2023-05-28 Thread Tom Ross
>Hi, While working on the earlier problems I had, I ran into the concepts=20 >of COBOL Methods and Classes, and understand they can be used for Java=20 >in addition to regular COBOL programs. The documentation does not=20 >explain the "why" behind these or the "how" and "what", so I wonder if=20

Re: Are there samples of COBOL methods or classes?

2023-05-26 Thread Sri h Kolusu
>> The documentation does not explain the "why" behind these or the "how" and >> "what", Billy, The chapter 35(Writing object-oriented programs) in the application programming guide is a good place to start. https://www.ibm.com/docs/en/cobol-zos/6.4?topic=programs-writing-object-oriented And

Are there samples of COBOL methods or classes?

2023-05-26 Thread Billy Ashton
Hi, While working on the earlier problems I had, I ran into the concepts of COBOL Methods and Classes, and understand they can be used for Java in addition to regular COBOL programs. The documentation does not explain the "why" behind these or the "how" and "what", so I wonder if anyone has