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
 

 

Check if a subroutine is called or not

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

New User


Joined: 19 Jan 2007
Posts: 11
Location: bangalore

PostPosted: Wed Feb 04, 2009 6:15 am    Post subject: Check if a subroutine is called or not
Reply with quote

Hi,

Is there anyway that we can determine by looking at the Job log (excluding the program sysout) to check if a subroutine was called or not.

Example : Prog-A calls sub routine sub-A1,sub-A2, sub-A3 based on a certain IF condition and all the program and subroutines have no DISPLAY statements. JCL-A executes prog-A.

Does the Job Log gives us any details of which sub-routine was called by Prog-A.

Regards
Sam
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8121
Location: East Dubuque, Illinois, USA

PostPosted: Wed Feb 04, 2009 6:26 am    Post subject:
Reply with quote

No -- there's no external way (other than using a tool like STROBE) to tell whether or not a subroutine was executed.
Back to top
View user's profile Send private message
Debabrata Pruseth

New User


Joined: 11 Dec 2008
Posts: 59
Location: Pune , India

PostPosted: Wed Feb 04, 2009 4:38 pm    Post subject:
Reply with quote

In certain cases you can indirectly determine wether the sub-A1,sub-A2, sub-A3 were called by Program A by looking in the JCL

1) If the called subprograms is processing any file ( opening , closing etc. ) then in the job PGMSTAT ( that executes the calling program ) the subprogram and the file being processed will be mentioned.

2) When the job abends and you have Abend Aid or any other DUMP associated with the job then the calling program details are mentioned in the JCL. This is however system specific.
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 Could we identify the called modules ... elixir1986 COBOL Programming 5 Fri Jul 14, 2017 1:53 am
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 5 Tue Nov 29, 2016 9:25 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm


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