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 run the subprogram without using Main program

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

New User


Joined: 04 Feb 2006
Posts: 6

PostPosted: Sat Feb 04, 2006 9:39 pm    Post subject: How to run the subprogram without using Main program
Reply with quote

If there are two pgms pgm A and pgm B.
Suppose pgm A is the called pgm and Pgm B is the calling pgm.

coding of pgm B is completed but coding of pgm A is not ,but I want to test pgm B is it possible ?
If yes how do I test it as stand alone pgm using JCL?
Back to top
View user's profile Send private message

gowtham_1982
Warnings : 1

Active User


Joined: 02 Dec 2005
Posts: 109

PostPosted: Mon Feb 06, 2006 9:26 am    Post subject: Re: How to run the subprogram without using Main program
Reply with quote

ruby.sen wrote:
If there are two pgms pgm A and pgm B.
Suppose pgm A is the called pgm and Pgm B is the calling pgm.

coding of pgm B is completed but coding of pgm A is not ,but I want to test pgm B is it possible ?
If yes how do I test it as stand alone pgm using JCL?



you can use a calling program which we call in our floor as stub program. it will simply call the sub program.

don't forget to move appropriate values to the subprogram if it expects.

and from JCL point of view, you just specify the load libraries of main program and sub program in your joblib or steplib.


suggestions welcomed.....



gowtham
Back to top
View user's profile Send private message
umeshkmrsh

New User


Joined: 21 Sep 2005
Posts: 79
Location: India

PostPosted: Mon Feb 06, 2006 4:01 pm    Post subject:
Reply with quote

if your sub-program dosen't uses too many inputs from the main program in linkage section, you can use PARM="" parameters in JCL while calling you sub-program.

You call your sub-program from JCL and pass the values thru JCL parameters.
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 IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm


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