Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Cancel a Subprogram

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

New User


Joined: 27 Mar 2009
Posts: 2
Location: Chennai

PostPosted: Tue May 18, 2010 6:28 pm    Post subject: Cancel a Subprogram
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: 6968
Location: porcelain throne

PostPosted: Tue May 18, 2010 6:46 pm    Post subject:
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    Post subject: Reply to: Cancel a Subprogram
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    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 CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 am
No new posts Is possible to call subprogram from c... cmsmoon COBOL Programming 3 Fri Aug 05, 2016 6:46 pm
No new posts EDIT END(SAVE) or CANCEL? Steve Coalbran TSO/ISPF 9 Sat Feb 06, 2016 7:11 pm
No new posts Difference of COMMIT in main program ... dejunzhu DB2 11 Thu Nov 07, 2013 3:11 pm
No new posts Will Job in CA7 cancel automatically? thisak CA Products 2 Thu Aug 29, 2013 10:54 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us