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
 

 

ENTER Statement

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: ENTER Statement
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    Post subject:
Reply with quote

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

Check below link for more
http://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: 7997
Location: Bellevue, IA

PostPosted: Thu Oct 30, 2008 8:12 pm    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu Oct 30, 2008 9:36 pm    Post subject: Re: ENTER Statement
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

Site Director


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

PostPosted: Thu Oct 30, 2008 10:30 pm    Post subject:
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    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 ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts VALIDATE NULL VALUE IN DB2 CASE STATE... useit DB2 5 Thu Feb 09, 2017 4:34 pm
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
No new posts COBOL DB2 - CALL statement - high CPU... TS70363 DB2 15 Sun Sep 11, 2016 6:07 am
No new posts Converting NULL column into NOT NULL ... Raghu navaikulam DB2 5 Sat Aug 06, 2016 3:45 pm


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