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

LE or Non LE Cobol


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

Active User


Joined: 17 Nov 2009
Posts: 126
Location: India

PostPosted: Wed Dec 22, 2010 4:18 pm
Reply with quote

Hi,

I require to know the cobol i am using is LE or Non LE .

How to find out this .
Please help.

Thanks
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: Wed Dec 22, 2010 7:46 pm
Reply with quote

Compile a program. Copy the first line of any page with the compiler name and version information and post it (using CODE tag) here.

Broadly speaking, Enterprise COBOL programs use LE, period. Earlier compilers may or may not use LE, depending on how old the compiler is.
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: Wed Dec 22, 2010 8:12 pm
Reply with quote

Adding to Robert's reply, COBOL/370 and greater had LE integrated as part of the compiler, so this is a given.

LE usage in OS/VS COBOL and VS/COBOL (the predecessors to COBOL/370) was optional and site specific.

Bill
Back to top
View user's profile Send private message
Jose Mateo

Active User


Joined: 29 Oct 2010
Posts: 121
Location: Puerto Rico

PostPosted: Wed Dec 22, 2010 8:38 pm
Reply with quote

LE is the runtime language environment which includes callable services. LE handles the runtime options and language services for your COBOL program. You can tell if a program was compiled using the LE environment by listing the object phase module and locating the characters 'CEE' at the beginning of the module. You will also see towards the end of the module LE service routines as CEEBINIT and CEESTART.
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: Thu Dec 23, 2010 5:51 am
Reply with quote

Here's a programmatic method of determining whether LE is active or not in the given LPAR -

www.ibmmainframes.com/viewtopic.php?p=120571&highlight=#120571

As a failsafe, change the sub-program's base register from R12 to R3 as R12 contains the address of the CAA (Common Anchor Area) providing the caller is LE compliant.

Bill
Back to top
View user's profile Send private message
Susanta

Active User


Joined: 17 Nov 2009
Posts: 126
Location: India

PostPosted: Thu Dec 23, 2010 10:35 am
Reply with quote

As Jose said, I found LE service routines as CEEBINIT and CEESTART in my load module. That means i am working on LE enabled cobol.
Back to top
View user's profile Send private message
Susanta

Active User


Joined: 17 Nov 2009
Posts: 126
Location: India

PostPosted: Fri Dec 24, 2010 11:38 am
Reply with quote

Robert Sample wrote:
Compile a program. Copy the first line of any page with the compiler name and version information and post it (using CODE tag) here.

Broadly speaking, Enterprise COBOL programs use LE, period. Earlier compilers may or may not use LE, depending on how old the compiler is.



Hi

It is like below as i got form endevor listing.

PP 5655-G53 IBM Enterprise COBOL for z/OS 3.4.1
Is it LE or Non LE ?

Thanks
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 Dec 24, 2010 11:48 am
Reply with quote

Hello,

Quote:
Broadly speaking, Enterprise COBOL programs use LE, period.
Suggest you re-read the post you quoted from Robert. . . I added the emphasis.
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