Running Quiz witin QTP WAS: (Anyone have Moved from VMS to WINDOWS?)

Deskin, Bob Bob.Deskin@Cognos.COM
Wed, 9 Mar 2005 13:51:23 -0500


Actually, in researching Ken's request I found that on UNIX, when you
start a component, a temporary directory is created, but it is shared by
all components until the original one is exited. So if you start QTP,
you might get something like ph7658.tmp. If you run QUIZ from QTP, QUIZ
will share the same directory. Once you exit the original QTP, the
directory is deleted. This means that you can use the technique for
running QUIZ from QTP.

The downside of this is that if you run QUIZ from QUIZ, there's only one
quizsave.qzs file and the original QUIZ's source is lost.

On Windows, each component creates its own unique folder. So there's no
problem with sharing files. On the other hand, there's a problem in that
you can't share files.

What I'm thinking of is a new program parameter that does two things.
First it specifies the name of the folder within the folder specified by
the PHTEMP environment variable. Second, it instructs the various PH
components NOT to delete anything when they terminate. The user would be
responsible for deleting the folder once they were finished. This would
be intended for batch/bulk compiles and would be available on both UNIX
and Windows. It would be quite simple to specify a name for the folder
and then delete it automatically in the bulk compile process.

Bob

-----Original Message-----
From: Darren Reely [mailto:darren.reely@latticesemi.com] 
Sent: March 9, 2005 1:44 PM
To: Deskin, Bob
Cc: powerh-l@lists.sowder.com
Subject: Running Quiz witin QTP WAS: (Anyone have Moved from VMS to
WINDOWS?)


Bob,

How does this affect Unix? I perform this action during compiling a few 
programs with no ill effect. Even in batch mode.  I do not do this 
during run time as far as I can recall.

We are using Solaris 8 and PH 8.23.D7.

Darren


Deskin, Bob wrote:
> Thanks Stephen. This should help anyone migrating to Windows, 
> regardless of the source platform. And I'll bet it can be modified for

> UNIX.
> 
> Bob
> 
> -----Original Message-----
> From: powerh-l-admin@lists.sowder.com 
> [mailto:powerh-l-admin@lists.sowder.com] On Behalf Of 
> shulbert@littlejohnfrazer.com
> Sent: March 9, 2005 9:43 AM
> To: Ken@Langendock.com
> Cc: powerh-l@lists.sowder.com
> Subject: RE: Anyone have Moved from VMS to WINDOWS?
> 
> 
> ken,
> you can run quiz from inside qtp, but the temporary folders used by 
> each will be different, so you can't by default use the subiles from 
> one in the other. we solved this problem by using a batch file to copy

> the subfile definitions from the temporary folder from qtp into the 
> one for quiz. if you run quiz from inside qtp the folder structure 
> looks like
> this:
> 
> <current>
> -> tmp<number1>  (qtp temp folder)
> ---> tmp<number2>  (quiz temp folder)
> 
> so you have to copy all the files from tmp<number1> to 
> tmp<number1>\tmp<number2>. in dos terms this becomes (win2k):
> 
> 	if not "%phtemp%"=="" copy %phtemp%\..\*.sfd %phtemp%
> 
> you'll get an error on exiting quiz if you don't then delete these, so
> use:
> 
> 	del /q /f %PHTEMP%\*.sfd
> 
> put these in batch files and call them inside quiz.
> a generic compile script is included (.txt to get round daemons). hope

> this helps. regards, stephen.
> 
>    
> 
> 
> 
>  -----Original Message-----
> From: 	ken.langendock@rogers.com
[mailto:ken.langendock@rogers.com]
> Sent:	Wednesday, March 09, 2005 2:23 PM
> To:	powerh-l@lists.sowder.com
> Subject:	RE: Anyone have Moved from VMS to WINDOWS?
> 
> Ok guys, it's been almost a year since I tried to
> resolve the issue I had. How did you guys solve the
> problem of compiling all your code in batch (bat
> file)?
> 
> On and HP3000 the subfile definitions stay in memory
> (temp). On a Vax you can call $QUIZ from within QTP to
> retain the subfile definitions. Neither of these tricks/options work 
> on "Powerhouse for Windows"
> 
> BTW, I worked with Steve B at Cognos for a week on
> this problem back when I was converting and we both
> agreed at the time that it would be easier to run
> interactive quiz until a solution could be found. Now
> I guess I should go back to see if I can work through
> it since everything else is done.
> 
> Ken
> 
> 
> 
>  --- Joe Boyle <atla38@dsl.pipex.com> wrote: > I beg to differ :)
> 
>>>Quiz runs fine in compiled form and you can use the
>>
>>AT ( or schedule )
>>command for the batch processor.
>>
>>>Not sure about 'do external' calls to Cobol; you
>>
>>might have to look into
>>using 'run command' as with VB scripts.
>>
>>>Regards, Joe.
>>
>>= = = = = = = = = = = = = = = = = = = = = = = = = = = =
> 
> Mailing list: powerh-l@lists.sowder.com
> Subscribe: "subscribe" in message body to 
> powerh-l-request@lists.sowder.com
> Unsubscribe: "unsubscribe <password>" in message body to 
> powerh-l-request@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.
> 
> 
> Littlejohn Frazer
> Chartered Accountants
> 1 Park Place
> Canary Wharf
> London
> E14 4HJ
> 
> Tel: 020 7987 5030
> Fax: 020 7987 9707
> Web: www.littlejohnfrazer.com
> 
> 
> The information contained in this communication is confidential and 
> may be legally privileged. It is intended solely for the use of the 
> individual or entity to whom it is addressed and others authorised to 
> receive it.  If you are not the intended recipient you are hereby 
> notified that any disclosure, copying, distribution or taking of any 
> action in reliance on the contents of this information is strictly 
> prohibited and may be unlawful.
> 
> Littlejohn Frazer reserves the right to monitor the content of any 
> message sent to or from littlejohnfrazer.com and its associate 
> domains, fmi-litjon.co.uk and litjon.co.uk
> 
> A list of partners may be inspected at the above address which is also

> the address for serving documents.
> 
> Registered to carry on audit work by the Institute of Chartered 
> Accountants in England & Wales, and authorised and regulated by the 
> Financial Services Authority for investment business.
>   
>        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.
>  
> 
> = = = = = = = = = = = = = = = = = = = = = = = = = = = = Mailing list: 
> powerh-l@lists.sowder.com
> Subscribe: "subscribe" in message body to 
> powerh-l-request@lists.sowder.com
> Unsubscribe: "unsubscribe <password>" in message body to
powerh-l-request@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. 
  
       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.