powerh-l Digest, Vol 26, Issue 20

Lowe, Chuck J Chuck.J.Lowe at questdiagnostics.com
Wed Jul 18 12:07:07 CDT 2007


I don't see that in the QTP manual anywhere.  I always wish it did allow Cobol subroutines(in an XL) calls like QUICK allows.  I have done many (hundreds) Cobol subroutine call from Quick in past years. 
Let me know if you find an answer that allows QTP to call external programs/subroutines.

-----Original Message-----
From:
powerh-l-bounces+chuck.j.lowe=questdiagnostics.com at lists.sowder.com
[mailto:powerh-l-bounces+chuck.j.lowe=questdiagnostics.com at lists.sowder..
com]On Behalf Of powerh-l-request at lists.sowder.com
Sent: Wednesday, July 18, 2007 1:03 PM
To: powerh-l at lists.sowder.com
Subject: powerh-l Digest, Vol 26, Issue 20


Send powerh-l mailing list submissions to
	powerh-l at lists.sowder.com

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.sowder.com/mailman/listinfo/powerh-l
or, via email, send a message with subject or body 'help' to
	powerh-l-request at lists.sowder.com

You can reach the person managing the list at
	powerh-l-owner at lists.sowder.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of powerh-l digest..."


Today's Topics:

   1. Usage of cobol program in QTP (Pandurang Rajpurohit)
   2. RE:Usage of cobol program in QTP (Guy Werry)


----------------------------------------------------------------------

Message: 1
Date: Wed, 18 Jul 2007 18:50:59 +0530
From: Pandurang Rajpurohit <pandurang.rajpurohit at in.ibm.com>
Subject: Usage of cobol program in QTP
To: powerh-l at lists.sowder.com
Cc: Joe Boyle <atla38 at dsl.pipex.com>
Message-ID:
	<OF5AAF97ED.70FBFAA4-ON6525731C.00492AEB-6525731C.00494A35 at in.ibm.com>
Content-Type: text/plain; charset="us-ascii"

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 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sowder.com/pipermail/powerh-l/attachments/20070718/91a61a5e/attachment.html

------------------------------

Message: 2
Date: Wed, 18 Jul 2007 08:37:52 -0500
From: "Guy Werry" <guy.werry at hbms.ca>
Subject: RE: Usage of cobol program in QTP
To: "Pandurang Rajpurohit" <pandurang.rajpurohit at in.ibm.com>,
	<powerh-l at lists.sowder.com>
Message-ID:
	<0ECD404B6909D0458968F14A7FF73BCB01FFEFCD at hbffc003.hbms.hudbay.corp>
Content-Type: text/plain; charset="us-ascii"

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-0001.html

------------------------------

-- 
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l at lists.sowder.com
Subscribe: &quot;subscribe&quot; in message body to powerh-l-request at lists.sowder.com
Unsubscribe: &quot;unsubscribe &lt;password&gt;&quot; in message body to powerh-l-request at lists.sowder.com
http://lists.sowder.com/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.
Add 'site:lists.sowder.com powerh-l' to your search terms to search the list archive at Google.

End of powerh-l Digest, Vol 26, Issue 20
****************************************
------------------------------------------
The contents of this message, together with any attachments, are
intended only for the use of the person(s) to which they are
addressed and may contain confidential and/or privileged
information. Further, any medical information herein is
confidential and protected by law. It is unlawful for unauthorized
persons to use, review, copy, disclose, or disseminate confidential
medical information. If you are not the intended recipient,
immediately advise the sender and delete this message and any
attachments. Any distribution, or copying of this message, or any
attachment, is prohibited.



More information about the powerh-l mailing list