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

Calling subprogram with out mainprogram.


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sriraj1122

New User


Joined: 18 Dec 2008
Posts: 15
Location: Hyderabad

PostPosted: Sat Sep 18, 2010 3:05 pm
Reply with quote

Hi,

I am facing a challenge in my work.

I have two programs Pgm A and Pgm B. Basically Pgm A has to call Pgm B. Pgm A is to be coded and Pgm B is finished. Pgm A passes a parameter which has the length of 300 to Pgm B. Now I have to test Pgm B.
How can I test the prgm ?

I followed one way.. I coded a sample Pgm A in which im calling Pgm B and I am passing the parameters manually. Is there any way of testing the prgm B more efficiently ?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sat Sep 18, 2010 5:52 pm
Reply with quote

I would write a small driver program A that reads a file of parameter records (each 300 bytes long) and calls B with each parameter record. You can then perform multiple tests in one execution of this driver program and document the expected results of each parameter record to know if B passed the test or not.
Back to top
View user's profile Send private message
sriraj1122

New User


Joined: 18 Dec 2008
Posts: 15
Location: Hyderabad

PostPosted: Sat Sep 18, 2010 6:05 pm
Reply with quote

That sounds gr8... anyother methods are appreciated...
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Sep 18, 2010 7:45 pm
Reply with quote

Quote:
anyother methods are appreciated...

since the suggestion was the best You could get, start doing a bit of homework Yourself
no reason to whine and ask for more icon_evil.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Sep 18, 2010 11:02 pm
Reply with quote

Hello,

Quote:
Is there any way of testing the prgm B more efficiently ?
Change your sample calling program to call the sub-program multiple times providing different parm values and showing the "results" for each call. . .
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 Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Calling an Open C library function in... CICS 1
No new posts How to go into a subprogram in IBM De... IBM Tools 5
No new posts calling a JCl inside a JCL JCL & VSAM 3
Search our Forums:

Back to Top