Usage of cobol program in QTP

Guy Werry guy.werry at hbms.ca
Wed Jul 18 08:37:52 CDT 2007


Pandurang,
 
What version and platform are you working on????  
I've never called Cobol directly from Qtp, but I have done the sort of
thing where I do processing in Qtp to create a subfile (on Unix, where
the data and definitions are in separate files), then have a Cobol
program read the data portion of the subfile, do more processing and
write the results into another file.  I then take that file that's
output from the Cobol and create a subfile definition for it in Qtp,
then rename the Cobol output file to be the subfile.
 
Like this:
 
qtp
> access .....
bunch of qtp processing
> subfile S1 keep include ....
>go
>exit
 
This gives me the files:

*	
	S1.sf (the data portion)
*	
	S1.sfd (the definition)

Cobol program that reads S1.sf and does a bunch of really weird
procesing, with output file S2.
This gives me the file:

*	
	S2

qtp
> access ....
> set input limit 1
> set process limit 1
> use temporary data items / file items to get the data items that I
require to match the data in S2 from above
> subfile S2 keep include ... (this MUST match the Cobol program's
definition of S2 EXACTLY)
> go 
> exit
 
This gives me the files:

*	S2.sf, the data portion of the subfile, which is EMPTY (0
records)
*	S2.sfd, the definition portion of the subfile

Then, I simply rename S2 (output from Cobol file) as S2.sf
I now have a permanent subfile named S2 that I can read in Powerhouse.
 
Hope that helps,
Guy L. Werry
Senior Systems Analyst
Hudson Bay Mining & Smelting Co., Limited. 


________________________________

From: powerh-l-bounces+guy.werry=hbms.ca at lists.sowder.com
[mailto:powerh-l-bounces+guy.werry=hbms.ca at lists.sowder.com] On Behalf
Of Pandurang Rajpurohit
Sent: Wednesday, July 18, 2007 8:21 AM
To: powerh-l at lists.sowder.com
Cc: Joe Boyle
Subject: Usage of cobol program in QTP



Hello All, 


Any one could suggest how to make use of cobol program in  QTP. 

Thanks & Regards
Pandurang Rajpurohit,

------------------------------------------------------------------------
------------
IBM India Private Limited,
Seat No 268, 4th Floor, Tower B, Tech Park One, 
S.No 19/A/2A/1/2, Near DON BOSCO School,
Off Airport Road, Yerwada, PUNE 411006
Phone (Br) :  +91 020 40115000 - 16322
Phone (Dir) : +91 020 40116322
Cell : +91-09922054662
EMAIL : pandurang.rajpurohit at in.ibm.com 

The information in this e-mail and any attachments is confidential and may be subject to legal professional privilege. It is intended solely for the attention and use of the named addressee(s). If you are not the intended recipient, or person responsible for delivering this information to the intended recipient, please notify the sender immediately. Unless you are the intended recipient or his/her representative you are not authorised to, and must not, read, copy, distribute, use or retain this message or any part of it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sowder.com/pipermail/powerh-l/attachments/20070718/a75368f5/attachment.html


More information about the powerh-l mailing list