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
 

 

ENTRY statement

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
shreejita

New User


Joined: 16 Aug 2009
Posts: 60
Location: chennai

PostPosted: Thu Dec 17, 2009 10:10 am    Post subject: ENTRY statement
Reply with quote

Hi all,

I saw in the previous posting that ENTRY statements are allowed in cobol.

It is really possible in enterprise cobol on mainframe? I tried but thowing errors.

I am adding programs

ID DIVISION.
PROGRAM-ID. SUBPROG.

LINKAGE SECTION.
01 LK-PARM1 PIC X(8).
01 LK-PARM2 PIC X(130).

PROCEDURE DIVISION USING LK-PARM1.
PERFORM 1A-PROCESS-OPTION1.
ENTRY subprog1 USING LK-PARM1 LK-PARM2.
PERFORM 2A-PROCESS-OPTION2.
ENTRY subprog2 USING LK-PARM1.
PERFORM 3A-PROCESS-OPTION3.

EXIT PROGRAM.

ID DIVISION.
PROGRAM-ID. SUBPROG.

CALL 'subprog' USING WS-PARM1 .
CALL 'subprog1' USING WS-PARM1 WS-PARM2.
CALL 'subprog2' USING WS-PARM1.

STOP RUN.

Regards
Shreejita
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 Dec 17, 2009 10:28 am    Post subject:
Reply with quote

Hello,

Quote:
It is really possible in enterprise cobol on mainframe?
Yes. . . At the top of the page is a link to "IBM Manuals". Look in the Enterprise Language Reference.

Quote:
I tried but thowing errors.
And you did not post these because. . .?
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1239
Location: Richfield, MN, USA

PostPosted: Thu Dec 17, 2009 10:46 am    Post subject:
Reply with quote

Quote:
And you did not post these because. . .?

Because the poster thought today was psychic day. icon_smile.gif
Back to top
View user's profile Send private message
shreejita

New User


Joined: 16 Aug 2009
Posts: 60
Location: chennai

PostPosted: Thu Dec 17, 2009 11:00 am    Post subject: Reply to: ENTRY statement
Reply with quote

Good Answer....Both of you replied...

Thanx.
I can see the manual....good help.........
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 Dec 17, 2009 8:13 pm    Post subject:
Reply with quote

Hello,

Quote:
I can see the manual....good help.........
Yes, it is.

We might also be able to help if you post what error(s) occurred. . .

When posting disgnostic info, post the message id(s) as well as the text.
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 -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 Automation of data entry using Rexx i... zingy.rajeev CLIST & REXX 4 Mon Aug 22, 2016 4:13 pm
This topic is locked: you cannot edit posts or make replies. Automation of data entry using Rexx i... zingy.rajeev CICS 0 Mon Aug 22, 2016 4:11 pm
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