Knowing when QUIZ has completed
Ole Hansen
oh at scanconsult.dk
Fri Aug 11 05:13:53 CDT 2006
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sowder.com/pipermail/powerh-l/attachments/20060811/f9f022c4/attachment.htm
More information about the powerh-l
mailing list