Knowing when QUIZ has completed
Deskin, Bob
Bob.Deskin at Cognos.COM
Fri Aug 11 08:19:55 CDT 2006
The difference is in how you submit the QUIZ process. If you run QUIZ
directly from QUICK, it's an inline subprocess. Something like running
an external subroutine. On the other hand, if you use RUN COMMAND to
submit a batch job, then it is independent and as soon as the job is
submitted, control returns to the QUICK screen. And if you run it as a
batch submission, you could put your FTP code in the batch job.
Bob
-----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 Heasman, David
Sent: August 11, 2006 6:46 AM
To: Ole Hansen; powerh-l at lists.sowder.com
Subject: RE: Knowing when QUIZ has completed
Aha - thanks Ole - the bit I didn't know was : -
"The screen will wait for the quiz process to complete, and then
proceed to your ftp-code"
It remains counterintuitive - I wouldn't wait, why would the
screen?
Anyway I shall cut out all the useless code and be grateful.
Thanks a lot.
Dave H
-----Original Message-----
From: Ole Hansen [mailto:oh at scanconsult.dk]
Sent: 11 August 2006 11:14
To: Heasman, David; powerh-l at lists.sowder.com
Subject: RE: Knowing when QUIZ has completed
Hi Dave,
I am not quite sure that I understand the problem. A
simple construct like :
procedure designer getrecords nodata
begin
inform = "Fetching records - please wait...." now
run command 'quiz auto=quizprog > wastebin' on error
terminate
inform = "Transferring file - please wait...." now
; Your FTP-code here
end
should do the trick. The screen will wait for the quiz
process to complete, and then proceed to your ftp-code.
If the quiz report prompts for parameters, that can be
solved too:
procedure designer getrecords nodata
begin
run command "purge jobfile,temp" nowarn
run command "build
jobfile;rec=-72,,f,ascii;disc=4;temp"
let jobline = compname
put jobfile reset
let jobline = invoicedate
put jobfile reset
let jobline = customercode
put jobfile reset
close jobfile
run command 'quiz auto=quizprog.prog < jobfile >
wastebin' on error terminate
inform = "Transferring file - please wait...." now
; Your FTP-code here
end
HTH
Mange hilsner / With kind regards
Ole Hansen
===========================================================
E-mail: oh at scanconsult.dk Cell Phone: +45 4040
1150
===========================================================
ScanConsult IT-Partners ApS Voice : +45 7734
7474
Jegstrupvej 96A Fax : +45 8738
1416
DK-8361 Hasselager Support :
support at scanconsult.dk
Denmark Sales :
sales at scanconsult.dk
http://www.scanconsult.dk
<http://www.scanconsult.dk/>
= ParaSuite : A Suite of Air Cargo Handling solutions
=
= Partners : Hewlett-Packard, Cognos, Microsoft and
more =
________________________________
From:
powerh-l-bounces+oh=scanconsult.dk at lists.sowder.com
[mailto:powerh-l-bounces+oh=scanconsult.dk at lists.sowder.com] On Behalf
Of Heasman, David
Sent: 11. august 2006 11:46
To: powerh-l at lists.sowder.com
Subject: Knowing when QUIZ has completed
Hi,
I'm running PH 6.09 on HP3000.
I have to write a screen that executes a Quiz
routine retrieving about 20000 records and writing them to a file
and when it's finished, FTP the output to a server.
The question - how do I tell, in the screen, that
the Quiz routine has finished?
It would be easy to just stream a job to do this,
but it's not allowed - users don't have
the privilege and it would confuse the operator.
The best I can think of, off the top of my head, is
to have a loop that checks where EOF on the file is,
twice, and when the two values are equal the Quiz
has finished, but surely there's another, easier, way?
regards
Dave in London
__________________________________________________________________
This message might contain confidential information. If
it has been sent to you in error please do not forward it or copy it or
act upon its contents, but report it to postmaster at schroders.com
Schroders has the right lawfully to record, monitor and
inspect messages between its employees and any third party. Your
messages shall be subject to such lawful supervision as Schroders deems
to be necessary in order to protect its information, its interests and
its reputation.
Schroders prohibits and takes steps to prevent its
information systems from being used to view, store or forward offensive
or discriminatory material. If this message contains such material
please report it to abuse at schroders.com
Schroders does not normally accept or offer business
instructions via email unless prior agreements are in place. Any action
that you might take upon this message might be at your own risk.
Schroder Investment Management Limited
31 Gresham Street
London EC2V 7QA
Authorised and regulated by the Financial Services
Authority. Schroder Investment Management Limited is entered on the FSA
register under the following register number: 119348
Registered Office
31 Gresham Street
London EC2V 7QA
Registered number 1893220
VAT registration number 243 8687 30
* Please Note : This message was received from the
Internet *
_____________________________________________________________
__________________________________________________________________
This message might contain confidential information. If it has
been sent to you in error please do not forward it or copy it or act
upon its contents, but report it to postmaster at schroders.com
Schroders has the right lawfully to record, monitor and inspect
messages between its employees and any third party. Your messages shall
be subject to such lawful supervision as Schroders deems to be necessary
in order to protect its information, its interests and its reputation.
Schroders prohibits and takes steps to prevent its information
systems from being used to view, store or forward offensive or
discriminatory material. If this message contains such material please
report it to abuse at schroders.com
Schroders does not normally accept or offer business
instructions via email unless prior agreements are in place. Any action
that you might take upon this message might be at your own risk.
Schroder Investment Management Limited
31 Gresham Street
London EC2V 7QA
Authorised and regulated by the Financial Services Authority.
Schroder Investment Management Limited is entered on the FSA register
under the following register number: 119348
Registered Office
31 Gresham Street
London EC2V 7QA
Registered number 1893220
VAT registration number 243 8687 30
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sowder.com/pipermail/powerh-l/attachments/20060811/261c447c/attachment.htm
More information about the powerh-l
mailing list