View previous topic :: View next topic
|
Author |
Message |
Vanesa Warnings : 1 New User
Joined: 08 Jun 2006 Posts: 2 Location: Spain
|
|
|
|
I am programmer PLI and now I must program in Cobol.
you have some document with equivalences between PLI and Cobol? |
|
Back to top |
|
|
vasanthkumarhb
Active User
Joined: 06 Sep 2007 Posts: 275 Location: Bang,iflex
|
|
|
|
Hi,
PL1 is a assembler level programming and COBOL is High level language.
So wat you need equivalences in both, both are different functionality, you should know all verbs and grammar of COBOL then only youo can differentiate COBOL and PL1 |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
vasanthkumarhb wrote: |
Hi,
PL1 is a assembler level programming and COBOL is High level language.
|
PL1 is a assembler level? Are you speaking from experience? |
|
Back to top |
|
|
Vanesa Warnings : 1 New User
Joined: 08 Jun 2006 Posts: 2 Location: Spain
|
|
|
|
A friend has said to me that he has had a document with equivalences between cobol and pli, but there is it lost |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
Whoever said PL/I is assembler level has no business posting anywhere. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
PL/I is a HLL as is COBOL. When COBOL2 was introduced, it included many of the options that PL/I has had for decades, such as DO WHILE, SUBSTR, etc.
Here's a list of what I remember, but there are many more -
PL/I "DO WHILE" - COBOL "PERFORM UNTIL" (WITH TEST BEFORE AS THE DEFAULT).
PL/I "SUBSTR" - COBOL "REFERENCE MODIFICATION"
PL/I VALIDATING DISPLAY-NUMERIC DATA "VERIFY" - COBOL "IF (NOT) NUMERIC"
PL/I does have a PREPROCESSOR - COBOL does NOT.
That's all I can recall at the moment.
Bill |
|
Back to top |
|
|
Max Payne
New User
Joined: 13 Dec 2007 Posts: 10 Location: Shanghai
|
|
|
|
PL1 seems to be the transition language between C and Cobol. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
PL/X is an IBM assembler language variant used in z/OS development and has no direct relationship to PL/I. PL/I (or PL/1; I've seen it both ways) is a high-level language developed by IBM in the 60's as a combination of COBOL and FORTRAN. PL/I is a block structured language whereas COBOL doesn't really implement blocks. This is a key difference: PL/I BEGIN END blocks allow for separate variable definitions within the block while COBOL does not. COBOL variables must be defined in the Data Division whereas PL/I allows DCL statements anywhere. COBOL statements tend to be of the form VERB VARIABLE (e.g., COMPUTE X, ADD 1, SUBTRACT 10) while PL/I allows FORTRAN-like computations, although PL/I does use VERB forms (PUT, CALL). |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
PL1 seems to be the transition language between C and Cobol. |
bit inaccurate
here are the dates IIRC
PL/I was introduced in 1964
The initial development of C occurred at AT&T Bell Labs between 1969 and 1973
Brian Kernighan and Dennis Ritchie published the first edition of The C Programming Language in 1978. |
|
Back to top |
|
|
Tom Goodhart
New User
Joined: 16 Jul 2008 Posts: 5 Location: Tennessee
|
|
|
|
Some additional information:
PL/1 COBOL
fixed decimal COMP-3
fixed binary(15) COMP S9(4)
fixed binary(31) COMP S9(9)
char(n) PIC X(n)
Also, COBOL and PL/1 are different in definition of numbers:
PL/1 defines total digits,then # to right of decimal
COBOL defines # digits to left and right of decimal
example:
FIXED DEC(11,2) in Pl/1 would be PIC S9(9)V99
[/list] |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello Tom, and welcome to the forums,
Hope you enjoy your time with us
d |
|
Back to top |
|
|
|