IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to start from particular cobol statement


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 2
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top