Usage of cobol program in QTP
Richard Schilling
rschilling at cognitiongroup.biz
Sat Jul 21 04:19:40 CDT 2007
Oops... correction here ... I would use Reflection (or other scripting
terminal emulator) to interact with QUICK screens. COBOL generates a
data file, Reflection reads it and feeds it to a QUICK screen ....
that's how that works.. :-)
Cheers!
Richard Schilling
Cognition Group, Inc.
Seattle, WA USA
www.cognitiongroup.biz
Richard Schilling wrote:
> Wow - this sure brings back some memories. I've had a lot of experience
> interlacing COBOL jobs among QTP jobs (QUIZ, QUICK as well, actually). I
> took a Powerhouse process that took more than twelve hours to run and
> cut it down to less than four (if memory serves) by interlacing QTP and
> COBOL processing. Works great!
>
> I think Guy mentioned he uses it when the logic is just easier handled
> in COBOL - which is generally what I found the case to be. I also found
> this to be necessary when the amount of time it takes for QTP to process
> data is too long - say, nightly system maintenance kills your process
> every night at midnight. It's better to export the data to flat files,
> and allow one or more COBOL programs to chew on the data.
>
> Basically, what you do (as others have suggested), is setup QTP or even
> QUIZ to generate some data for the COBOL application to work on, and
> then you call the COBOL program to molest the data you just generated.
> Then, QTP picks up the data again. Use temporary files as much as
> possible.
>
> Works really well when you take the time to set up the batch files and
> scripts to coordinate the calls to QTP and COBOL.
>
> Richard Schilling
> Cognition Group, Inc.
> Seattle, WA
> www.cognitiongroup.biz
>
> Johnson, Tracy wrote:
>> True, you would have to do something strange, like write the data to a
>> file with QTP then pick it up at a later time with COBOL. Defining the
>> file structure in both programs would be a royal pain. Then you'd have
>> to manage the sequence of events properly, either manually in or batch.
>> Depending how often you'd have to switch between the two programs. It
>> would be less trouble just to stick with COBOL.
>>
>>
>> Tracy Johnson
>> Measurement Specialties, Inc.
>>
>> BT
>>
>>
>>
>>
>>
>>
>>
>> NNNN
>>
>> -----Original Message-----
>> From: powerh-l-bounces+tracy.johnson=meas-spec.com at lists.sowder.com
>> [mailto:powerh-l-bounces+tracy.johnson=meas-spec.com at lists.sowder.com]
>> On Behalf Of Deskin, Bob
>> Sent: Wednesday, July 18, 2007 1:39 PM
>> To: Viet Nguyen; Pandurang Rajpurohit; powerh-l at lists.sowder.com
>> Cc: Joe Boyle
>> Subject: RE: Usage of cobol program in QTP
>>
>>
>> You can, but there is no connection between the COBOL program and QTP.
>> In other words, you can't pass data back and forth.
>>
>> Bob
>> -----Original Message-----
>> From: Viet Nguyen [mailto:VNguyen at wsboces.org] Sent: July 18, 2007
>> 1:29 PM
>> To: Deskin, Bob; Pandurang Rajpurohit; powerh-l at lists.sowder.com
>> Cc: Joe Boyle
>> Subject: RE: Usage of cobol program in QTP
>>
>>
>> Why can't you do a Shell command like "! cobol.sh" ?
>>
>>
>> -----Original Message-----
>> From: powerh-l-bounces+vnguyen=wsboces.org at lists.sowder.com
>> [mailto:powerh-l-bounces+vnguyen=wsboces.org at lists.sowder.com] On Behalf
>> Of Deskin, Bob
>> Sent: Wednesday, July 18, 2007 1:26 PM
>> To: Pandurang Rajpurohit; powerh-l at lists.sowder.com
>> Cc: Joe Boyle
>> Subject: RE: Usage of cobol program in QTP
>>
>> You can't call a COBOL subroutine directly from QTP. There is no
>> equivalent of QUICK's DO EXTERNAL. There may be other techniques to run
>> a program as a subprocess but there would be no connection between the
>> COBOL program and QTP.
>> Bob
>> Bob Deskin Senior Product Manager Application Development Tools Cognos
>> Incorporated Office: 613-738-1338 ext. 7268 bob.deskin at cognos.com
>> http://powerhouse.cognos.com -----Original Message-----
>> From: powerh-l-bounces+bob.deskin=cognos.com at lists.sowder.com
>> [mailto:powerh-l-bounces+bob.deskin=cognos.com at lists.sowder.com] On
>> Behalf Of Pandurang Rajpurohit
>> Sent: July 18, 2007 9: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
>> This message may contain privileged and/or confidential
>> information. If you have received this e-mail in error or are not the
>> intended recipient, you may not use, copy, disseminate or distribute it;
>> do not open any attachments, delete it immediately from your system and
>> notify the sender promptly by e-mail that you have done so. Thank you.
>
More information about the powerh-l
mailing list