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
 

 

Calling subprogram with out mainprogram.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Calling subprogram with out mainprogram.
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: 8003
Location: Bellevue, IA

PostPosted: Sat Sep 18, 2010 5:52 pm    Post subject:
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    Post subject: Reply to: Calling subprogram with out mainprogram.
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10234
Location: italy

PostPosted: Sat Sep 18, 2010 7:45 pm    Post subject: Reply to: Calling subprogram with out mainprogram.
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

Site Director


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

PostPosted: Sat Sep 18, 2010 11:02 pm    Post subject:
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    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 Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts "DFSRRC00 vs IKJEFT01" for ... arunsoods All Other Mainframe Topics 5 Fri Aug 12, 2016 9:54 pm
No new posts Is possible to call subprogram from c... cmsmoon COBOL Programming 3 Fri Aug 05, 2016 6:46 pm
No new posts How to get the program name of callin... pkmurali COBOL Programming 8 Mon Aug 01, 2016 3:36 am


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