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
 
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm

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