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

How to run the subprogram without using Main program


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts How to go into a subprogram in IBM De... IBM Tools 5
Search our Forums:

Back to Top