Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Object Oriented PL1.

387 views
Skip to first unread message

super...@my-dejanews.com

unread,
Feb 10, 1999, 3:00:00 AM2/10/99
to
Greetings Everybody!

This is my first time to post here. I am a C/C++ programmer shifted to PL1. I
study PL1 because the needs for it is demanding. I enjoy developing and
maintaining systems with this language because it is much flexible than
COBOL. I have also not having difficulty to exploit its capabilities because
I found out that it is much similar to C. Evey single day, Evey minute and
every seconds I love this language. Now, Here is my first newsgroup question
for all of you.

Is PL1 will be having a superset? The one that we may call Object Oriented
PL1??

Your responses are greatly appreciated.

-Super Pedro

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own

Alexander Damyanovich

unread,
Feb 11, 1999, 3:00:00 AM2/11/99
to
In article <79t0gq$c78$1...@nnrp1.dejanews.com>,super...@my-dejanews.com
wrote:

> Greetings Everybody!
>
> This is my first time to post here. I am a C/C++ programmer shifted to PL1. I
> study PL1 because the needs for it is demanding. I enjoy developing and
> maintaining systems with this language because it is much flexible than
> COBOL. I have also not having difficulty to exploit its capabilities because

> I found out that it is much similar to C. Eve[r]y single day, Eve[r]y minute


> and every seconds I love this language. Now, Here is my first newsgroup
> question for all of you.
>
> Is PL1 will be having a superset? The one that we may call Object Oriented
> PL1??
>
> Your responses are greatly appreciated.

First, Señor Pedro, please let me welcome you to this newsgroup; all the more
so given your recognition of the great strengths and many merits of this less-
than-most-popular (IMHO most unfairly and unhappily so!!!) programming
language. It truly deserves a better fate than it has had....

One question in return for you and everybody else: can someone please
explain to me the meaning of the terms "object-oriented" and "object-driven"?
I've been coming across these words without fully understanding their
intent, in the brief (<3 months) time I've started to get back into
programming. Many thanks in advance for any responses! ---- "I run to death,
and death meets me as fast, and all my pleasures are as yesterday" - John
Donne "Deliver me, O LORD, from lying lips and from a deceitful tongue" -
Psalm 120, v.2

Tim Bratcher

unread,
Feb 11, 1999, 3:00:00 AM2/11/99
to
I work at a company that uses PL1 for credit union software,
on IBM RS6000 machinces with AIX. I am fairly new to PL1, but
have been reviewing much code. I haven't seen anything that
is object-oriented in the PL1 that we have. I think that PL1
was develpoed as a alternative/mix of COBOL and FORTRAN. Back
then there was only structured programming with PL1, and I think
that is still the same today, unless someone has added object
modules for PL1. A good place to check on this would be at the
IBM, or Liant, or another company that makes a PL1 compiler, and
ask someone there. There is some kind of PL1 group at IBM that
would know for sure. I think it is Team PL1.
Try http://www.software.ibm.com/ad/pli/pliteam.html

Tim Bratcher


super...@my-dejanews.com wrote:
>
> Greetings Everybody!
>
> This is my first time to post here. I am a C/C++ programmer shifted to PL1. I
> study PL1 because the needs for it is demanding. I enjoy developing and
> maintaining systems with this language because it is much flexible than
> COBOL. I have also not having difficulty to exploit its capabilities because

> I found out that it is much similar to C. Evey single day, Evey minute and


> every seconds I love this language. Now, Here is my first newsgroup question
> for all of you.
>
> Is PL1 will be having a superset? The one that we may call Object Oriented
> PL1??
>
> Your responses are greatly appreciated.
>

> -Super Pedro

super...@my-dejanews.com

unread,
Feb 11, 1999, 3:00:00 AM2/11/99
to

> First, Señor Pedro, please let me welcome you to this newsgroup; all the more
> so given your recognition of the great strengths and many merits of this less-
> than-most-popular (IMHO most unfairly and unhappily so!!!) programming
> language. It truly deserves a better fate than it has had....
>
> One question in return for you and everybody else: can someone please
> explain to me the meaning of the terms "object-oriented" and "object-driven"?
> I've been coming across these words without fully understanding their
> intent, in the brief (<3 months) time I've started to get back into
> programming. Many thanks in advance for any responses! ---- "I run to death,
> and death meets me as fast, and all my pleasures are as yesterday" - John
> Donne "Deliver me, O LORD, from lying lips and from a deceitful tongue" -
> Psalm 120, v.2
>

Mr Alexander,

Object oriented Programming (OOP)languages are the common trends nowadays. Its
emerged because of company's thirst for program documentation.

OOPs offer good code maintenance and better reuse of it. The term 'Object
Oriented' is like a family tree. Where you came from youre ancestors and
youre ancestor came from there ancestors. You were born as a new human being
without damaging your father and mother. Not taking your father's nose and
put it on you . Instead you have your own nose. Not taking your mother's arms
instead you have your own arms!

The wise do this because its hard to maintain codes written in procedural
languages such as C,PL1,COBOL and others. When a programmer/s who wrote the
code left and then a new programmer/s came. This newbie who will maintain,
enhance and support the system codes needs more time to study before he will
be efficient enough, and this is a costly process for the companies who wants
a profit.

While in OOP, what this new programmer to do is to create new object derived
from existing objects if there are enhancements. This new programmer can
easily understand the code because of its real world class names.

Ok, so much for that. Lets go technical. For example you want to write a
system about athletes. There are many kinds of athletes. Like basketball
player, baseball player, football player, hockey player and so on and so on.
They are all athletes and being an athlete is what they have in common.

In OOP, you can write a class you can name as 'athlete'. These class is a
generic. You can write functions such as biceps, height, weight, age, race
etc. etc. and file it inside this class. This is what the term
'encapsulation' in OOP means. You included all the athletes characteristics
in one capsule. This capsule can be use and reuse by other programs without
damaging it or recode it or modify it.

To continue, lets assume you want to write a program that give info about a
baseball, football, hockey and basketball player. All you have to do is to
reference the class athletes and zooom! You have a new class or programs. You
have new programs for the four athletes I mentioned and these new classes can
be use by new programs or new classes you want to create.

About your question on 'Object-driven', Im afraid I have no idea about this
term. I guess for me, object-driven means you were driven nuts in programming
using OOP because it takes up a lot of storage. When you compare a simple
program to display 'Hello World' you will be shocked that doing it in OOP
takes a huge chunks of you hard drive. Thats drive me nuts!

Anyway, Please excuse my english. My command of english and grammar is not
good. I considered it writing a program where lack of proper adjectives and
wrong construction of sentences is clearly be seen. It is like IF-THEN-ELSE.

Frank Clarke

unread,
Feb 11, 1999, 3:00:00 AM2/11/99
to
On Wed, 10 Feb 1999 22:17:09 GMT, super...@my-dejanews.com wrote:

>...Evey single day, Evey minute and


>every seconds I love this language. Now, Here is my first newsgroup question
>for all of you.
>
>Is PL1 will be having a superset? The one that we may call Object Oriented
>PL1??

Not being an OOPS :-) programmer, I offer this critique of Object
Oriented Programming:

"Object-oriented" is 'table-driven processing' on steroids.

Many of the benefits of OOP are exactly why we mainframe programmers
externalized functions, parameters, and information about processing
options. I'm just amazed that the benefits of such techniques have
been rediscovered (!)


Frank Clarke
Tampa Area REXX Programmers' Alliance (TARPA)
Member of the REXX Language Assn
Join us at http://www.rexxla.org

Peter Ostermann

unread,
Feb 13, 1999, 3:00:00 AM2/13/99
to super...@my-dejanews.com, PL1 (language) discussions
 

super...@my-dejanews.com wrote:

Greetings Everybody!

This is my first time to post here. I am a C/C++ programmer shifted to PL1. I
study PL1 because the needs for it is demanding. I enjoy developing and
maintaining systems with this language because it is much flexible than
COBOL. I have also not having difficulty to exploit its capabilities because

I found out that it is much similar to C. Evey single day, Evey minute and

every seconds I love this language. Now, Here is my first newsgroup question
for all of you.

Is PL1 will be having a superset? The one that we may call Object Oriented
PL1??

Your responses are greatly appreciated.

-Super Pedro
 
 


Hi Pedro,
the object oriented programming is available for PL/I. It is possible by using a package called

PLI / OBJ

which is developed by:
Charles Berghorn
(MHV Development Laboratory, IBM Poughkeepsie)

Marland Berghorn
(Product Design)

This package is available since August 28, 1990.

Abstract:

Object Oriented Programming in PL/I brings object oriented design and programming techniques to PL/I. You may write a new program entirely using these object oriented paradigms, or you may experiment with them by adding them incrementally on an existing application. You can also compare your results by writing a function both ways If you do the latter, be fair and remember this is a new technique; it may take a few iterations to become familiar with this new programming style and 'get it right'.

For example here are a few mnemonic-names:

MKCLASS (Make Class)
MKOBJ (Make Object)
SENDMSG (Send a Message)
RESULT (Sendmsg keyword)

code example:

/* A Class is created that has its own message  */

MKCLASS ID(page) METHOD('DISPLAY'/disp) parents(list);
...
MKOBJ ID(page1) FROM(PAGE);           /*create an object from the class */
SENDMSG to (page1) MESSAGE(add)    PL(LINE1);  /*invokes a "LIST" method */
SENDMSG to (page1) MESSAGE(add)    PL(LINE2);  /*invokes a "LIST" method */
SENDMSG to (page1) MESSAGE(display);        /* a non-list method      */
...
LDISP: PROC($fobj,$msg,$z);
...
   SENDMSG to(self) msgid('TOP');              /* invoke list method */
   ...
   SENDMSG to(self) msgid('NEXT')' RESULT(z);  ;            /* ditto */
   ...
end ldisp;

Bibliography: Berghorn, Charles, PLI/OBJ--Object oriented Programming
 
 

Where to order the package? Info may be available in San Jose, just contact team PL/I over there.
I think Don Smith is related to that team, his e-mail address:

das...@US.IBM.COM

Regards
Peter
--

thanks for reply:  mailto:Peter.O...@nwn.de
web page:          http://home.nordwest.net/Peter.Ostermann/
 

Mark Yudkin

unread,
Feb 14, 1999, 3:00:00 AM2/14/99
to
>Is PL1 will be having a superset? The one that we may call Object Oriented
PL1??

I have been advised by the IBM PL/I that much of the planned O-O function
is, in fact, in the VA PL/I for NT V2.1 compiler, but is not documented.
Presumably it also isn't supported.

For those who wish to play around with it, the compiler basically supports
the language enhancements from Peter Elderon's 1996 presentation. One source
of that paper is http://www.users.bigpond.com/robin_v/pli_oo.htm.
I can basically get the example from that paper to compile (needs some
changes). However, I cannot answer any questions as I know nothing more
about it than I've said here...


Dave Jones

unread,
Feb 16, 1999, 3:00:00 AM2/16/99
to
Another source of information/code on OO-PL/I is the SHARE 87
presentation entitled: "Object-Oreinted Programming in PL/I"
(session 6111) by Richard Smedley and Dale Smith of SABRE Decision
Technologies (a division of AMR Corp -- the folks that run American
Airlines). They discuss the 'nuts-and-bolts' of OO programming, using
standard PL/I to illustrate the techniques involved. They also
distributed a very nice set of PL/I preprocessor macros and tools that
adds OO features to the native PL/I language. I don't have a machine
readbale copy of their session handout, but I can send to anyone who
would like them their working marcos and code examples. It's built for
the IBM MVS and VM PL/I compiler and includes an number of useful tools
for the ISPF program editor. I don't know if the macros would work
under PL/I for the workstation.

Dave Jones
V/Soft Software
Houston, TX

Dave Jones

unread,
Feb 16, 1999, 3:00:00 AM2/16/99
to
Opps, I forgot to add that Richard Smedley's e-mail address is:
Richard...@AMRCORP.COM and Dale Smith's e-mail address is:
Dale_...@AMRCORP.COM. You might try to reach them there and
see if an on-line version of their presentation is around somewhere.
0 new messages