IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Equivalences between Cobol and PLI


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Vanesa
Warnings : 1

New User


Joined: 08 Jun 2006
Posts: 2
Location: Spain

PostPosted: Fri Jun 06, 2008 5:28 pm
Reply with quote

I am programmer PLI and now I must program in Cobol.

you have some document with equivalences between PLI and Cobol?
Back to top
View user's profile Send private message
vasanthkumarhb

Active User


Joined: 06 Sep 2007
Posts: 275
Location: Bang,iflex

PostPosted: Fri Jun 06, 2008 5:30 pm
Reply with quote

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
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Fri Jun 06, 2008 5:35 pm
Reply with quote

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
View user's profile Send private message
Vanesa
Warnings : 1

New User


Joined: 08 Jun 2006
Posts: 2
Location: Spain

PostPosted: Fri Jun 06, 2008 5:41 pm
Reply with quote

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
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Fri Jun 06, 2008 6:09 pm
Reply with quote

Whoever said PL/I is assembler level has no business posting anywhere.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Fri Jun 06, 2008 7:12 pm
Reply with quote

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
View user's profile Send private message
Max Payne

New User


Joined: 13 Dec 2007
Posts: 10
Location: Shanghai

PostPosted: Tue Jun 24, 2008 2:25 pm
Reply with quote

PL1 seems to be the transition language between C and Cobol.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Jun 24, 2008 4:57 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Jun 24, 2008 10:42 pm
Reply with quote

Quote:

PL1 seems to be the transition language between C and Cobol.


bit inaccurate icon_cool.gif

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
View user's profile Send private message
Tom Goodhart

New User


Joined: 16 Jul 2008
Posts: 5
Location: Tennessee

PostPosted: Fri Jul 18, 2008 1:04 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jul 18, 2008 1:19 am
Reply with quote

Hello Tom, and welcome to the forums,

Hope you enjoy your time with us icon_smile.gif

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top