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

ENTER Statement


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

New User


Joined: 06 Mar 2006
Posts: 50
Location: PUNE

PostPosted: Thu Oct 30, 2008 4:34 pm
Reply with quote

Hi,

Please tell me how enter statement works.
In manual it is said to be specified for documentation purpose.

a.) ENTER "COBOLFILEINFO"
USING ACCTBORR

b.) ENTER "ABEND".

Thanks for your help.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Thu Oct 30, 2008 7:15 pm
Reply with quote

Yes it does. Enterprise COBOL Compiler treats this as comment.

Check below link for more
publib.boulder.ibm.com/infocenter/pdthelp/v1r1/index.jsp?topic=/com.ibm.entcobol.doc_3.4/rpdirst3.htm

[/quote]
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: Thu Oct 30, 2008 8:12 pm
Reply with quote

Quote:
Please tell me how enter statement works.
In manual it is said to be specified for documentation purpose.
Okay, you've checked the manual. The manual tells you the statement is documentation only. Exactly what is it that you think the statement will do that is not in the documentation???
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 Oct 30, 2008 9:36 pm
Reply with quote

IIRC, when COBOL2 was introduced (the successor to OS/VS COBOL), the ENTER statement (which was useable through the last version/release of OS/VS COBOL), became meaningless/unsupported and that's why the manual indicates it's treated as a comment.

Is your COBOL version/release not greater than OS/VS COBOL?

Regards,

Bill
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: Thu Oct 30, 2008 10:30 pm
Reply with quote

Hello,

What a tough crowd we are icon_wink.gif

When someone does not read the manual we give them a hard time. We also do this when someone does read the manual. . . icon_cool.gif

Quote:
The ENTER statement is designed to facilitate the use of more than one source language in the same source program. However, in Enterprise COBOL, only COBOL is allowed in the source program.

Note: The ENTER statement is syntax checked during compilation but has no effect on the execution of the program.
Once upon a tme, a coder could enter some other language for a few lines of code that could not be (easily) handled in cobol. Often this was assembler or pl/1. This is no longer supported and (imho) best removed from the code to prevent confusion.
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 JOIN STATEMENT PERFORMANCE. DFSORT/ICETOOL 12
No new posts Relate COBOL statements to EGL statement All Other Mainframe Topics 0
No new posts REXX table content on panel will be r... CLIST & REXX 6
No new posts process statement for SUPREC, CMPCOLM... TSO/ISPF 4
No new posts Expected data is not coming up on Fir... CICS 2
Search our Forums:

Back to Top