View previous topic :: View next topic
|
Author |
Message |
Anand78
New User
Joined: 06 Mar 2006 Posts: 50 Location: PUNE
|
|
|
|
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 |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
What a tough crowd we are
When someone does not read the manual we give them a hard time. We also do this when someone does read the manual. . .
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 |
|
|
|