Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Equivalences between Cobol and PLI

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Equivalences between Cobol and PLI
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: 276
Location: Bang,iflex

PostPosted: Fri Jun 06, 2008 5:30 pm    Post subject:
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    Post subject:
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    Post subject:
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

Active Member


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

PostPosted: Fri Jun 06, 2008 6:09 pm    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Fri Jun 06, 2008 7:12 pm    Post subject: Re: Equivalences between Cobol and PLI
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    Post subject:
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: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Tue Jun 24, 2008 4:57 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Tue Jun 24, 2008 10:42 pm    Post subject: Reply to: Equivalences between Cobol and PLI
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    Post subject: Reply to: Equivalences between Cobol and PLI
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

Site Director


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

PostPosted: Fri Jul 18, 2008 1:19 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us