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
 

 

how to start from particular cobol statement

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

Active User


Joined: 14 Aug 2006
Posts: 198

PostPosted: Thu Sep 07, 2006 5:13 pm    Post subject: how to start from particular cobol statement
Reply with quote

please let me if there is any way to start execution of a cobol program from a particular line.
Back to top
View user's profile Send private message

IQofaGerbil

Active User


Joined: 05 May 2006
Posts: 183
Location: Scotland

PostPosted: Thu Sep 07, 2006 7:18 pm    Post subject: Re: how to start from particular cobol statement
Reply with quote

explain further please
give example maybe?
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Thu Sep 07, 2006 11:27 pm    Post subject: Re: how to start from particular cobol statement
Reply with quote

See if this link satifies your requirement:

ENTRY STATEMENT

Dave
Back to top
View user's profile Send private message
abin

Active User


Joined: 14 Aug 2006
Posts: 198

PostPosted: Fri Sep 08, 2006 10:11 am    Post subject: Re: how to start from particular cobol statement
Reply with quote

I want to start execution of a cobol program from a particular step.

Like as follows

procedure division.

move a to b.
move a to c.
add b to c.
...
....
stop run.

NOw I want to skip senetences "move a to b" and "move an to c" and
start execution from sentence "add b to c".
I should be able to specify the sentence from JCL. So could ENTRY be used.

please let me know if there is any way.
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Fri Sep 08, 2006 10:03 pm    Post subject: Re: how to start from particular cobol statement
Reply with quote

? What possible reason would you want to do something like that ?

Is this an actual business requirement or just an academic exercise?

Not that academic exercises are bad to do, It?s just that it may not suit a business environment.

If you could do what you are asking, you program would miss all of the initialization processes, and the process leading up to the point you want to start at.

Please come back and let us know what you are really trying to accomplish.

Dave
Back to top
View user's profile Send private message
abin

Active User


Joined: 14 Aug 2006
Posts: 198

PostPosted: Mon Sep 11, 2006 9:32 am    Post subject: Re: how to start from particular cobol statement
Reply with quote

the problem was asked to me in an interview. it was not a job interview it was a between a pm and my freind. i am not sure whether they have this type of requirement.

thanks.
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
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts COBOL Programming Sandpit? jodrisco COBOL Programming 6 Wed Apr 12, 2017 3:47 am


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