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 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
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts A sample of exit program for exit XMN... lind sh CICS 2 Mon Oct 03, 2016 5:07 pm


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