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
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 am
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am


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