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 ON 2 AND EVERY 1 - Statement ??? UmeySan COBOL Programming 2 Tue Jul 25, 2017 1:20 pm
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts How to Clear all TSQs during CICS sta... Hooman24 CICS 10 Mon Jun 26, 2017 9:46 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm


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