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

Cancel a Subprogram


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
suhail2322

New User


Joined: 27 Mar 2009
Posts: 3
Location: Chennai

PostPosted: Tue May 18, 2010 6:28 pm
Reply with quote

In my program, Iam trying to initilize the subprogram dynamically by "CANCEL <subprogrm>", It is not getting initialized...!

Can anybody suggest me a solution for this

Note: I should initialize dynamically
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue May 18, 2010 6:46 pm
Reply with quote

instead of using commands that you don't understand - CANCEL.

look at the PROGRAM-ID clause INITIAL.
Back to top
View user's profile Send private message
rocky_balboa

New User


Joined: 24 Mar 2010
Posts: 61
Location: Cape of Good Hope

PostPosted: Tue May 18, 2010 7:01 pm
Reply with quote

Are you getting any error?

If yes make sure that there are no active threads of the called sub-program while issuing CANCEL. This can happen if there are multiple entry points for the program.

I know I should not tell this...hope both the programs are seperately compiled and link edited. It does not work with static call.

While link-editing make sure that NOREUS option is in effect....


Hope this helps....
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 How to go into a subprogram in IBM De... IBM Tools 5
No new posts JCL JOB Cancel/Purge Not Working JCL & VSAM 6
No new posts Parallel Sysplex - subprogram execution CICS 7
No new posts CICS START AND CANCEL CICS 1
No new posts Is possible to call subprogram from c... COBOL Programming 3
Search our Forums:

Back to Top