<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1555" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=162094410-11082006><FONT face=Arial color=#0000ff size=2>Aha -
thanks Ole - the bit I didn't know was : -</FONT></SPAN></DIV>
<DIV><SPAN class=162094410-11082006><FONT face=Arial color=#0000ff size=2>"The
screen will wait for the quiz process to complete, and then proceed to your
ftp-code"</FONT></SPAN></DIV>
<DIV><SPAN class=162094410-11082006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=162094410-11082006><FONT face=Arial color=#0000ff
size=2> It remains counterintuitive - I wouldn't wait, why would the
screen? </FONT></SPAN></DIV>
<DIV><SPAN class=162094410-11082006> <FONT face=Arial color=#0000ff
size=2>Anyway I shall cut out all the useless code and be grateful. Thanks a
lot.</FONT></SPAN></DIV>
<DIV><SPAN class=162094410-11082006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=162094410-11082006><FONT face=Arial color=#0000ff size=2>Dave
H</FONT></SPAN></DIV>
<DIV><SPAN class=162094410-11082006><FONT face=Arial color=#0000ff
size=2> </FONT></SPAN></DIV>
<DIV><SPAN class=162094410-11082006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Ole Hansen
[mailto:oh@scanconsult.dk] <BR><B>Sent:</B> 11 August 2006 11:14<BR><B>To:</B>
Heasman, David; powerh-l@lists.sowder.com<BR><B>Subject:</B> RE: Knowing when
QUIZ has completed<BR><BR></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=019100510-11082006>Hi Dave,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=019100510-11082006><FONT face=Arial color=#0000ff size=2>I am
not quite sure that I understand the problem. A simple construct like
:</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT><!-- Converted from text/plain format --></DIV>
<DIV><FONT face=Arial color=#0000ff size=2>procedure designer getrecords
nodata<BR> begin<BR> inform = "Fetching records -
please wait...." now<BR> run command 'quiz auto=quizprog
> wastebin' on error terminate</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2> inform = "<SPAN
class=019100510-11082006>Transferring file </SPAN>- please wait...."
now</FONT></DIV>
<DIV><SPAN class=019100510-11082006></SPAN><FONT face=Arial color=#0000ff
size=2>;<SPAN class=019100510-11082006> Your FTP-code here</SPAN><BR>
end</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=019100510-11082006><FONT face=Arial color=#0000ff
size=2>should do the trick. The screen will wait for the quiz process to
complete, and then proceed to your ftp-code.</FONT></SPAN></DIV>
<DIV><SPAN class=019100510-11082006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=019100510-11082006><FONT face=Arial color=#0000ff size=2>If
the quiz report prompts for parameters, that can be
solved too:</FONT></SPAN></DIV>
<DIV><SPAN class=019100510-11082006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=019100510-11082006><FONT face=Arial color=#0000ff
size=2>procedure designer getrecords nodata<BR>
begin<BR> run command "purge jobfile,temp"
nowarn<BR> run command "build
jobfile;rec=-72,,f,ascii;disc=4;temp"<BR> let jobline =
compname<BR> put jobfile reset<BR> let
jobline = invoicedate<BR> put jobfile
reset<BR> let jobline = customercode<BR>
put jobfile reset<BR> close jobfile<BR>
run command 'quiz auto=quizprog.prog < jobfile > wastebin'
on error terminate<BR>
<DIV><FONT face=Arial color=#0000ff size=2> inform = "<SPAN
class=019100510-11082006>Transferring file </SPAN>- please wait...."
now</FONT></DIV>
<DIV><SPAN class=019100510-11082006></SPAN><FONT face=Arial color=#0000ff
size=2>;<SPAN class=019100510-11082006> Your FTP-code
here</SPAN><BR></FONT> end<BR></FONT></SPAN></DIV></DIV>
<DIV><SPAN class=019100510-11082006><FONT face=Arial color=#0000ff
size=2>HTH</FONT></SPAN></DIV>
<DIV><BR></DIV>
<P><FONT size=2>Mange hilsner / With kind regards<BR><BR>Ole
Hansen<BR><BR>===========================================================<BR>E-mail:
oh@scanconsult.dk Cell Phone:
+45 4040
1150<BR>===========================================================<BR>ScanConsult
IT-Partners ApS
Voice : +45 7734 7474<BR>Jegstrupvej
96A
Fax : +45 8738 1416<BR>DK-8361
Hasselager Support :
support@scanconsult.dk<BR>Denmark
Sales :
sales@scanconsult.dk<BR>
<A
href="http://www.scanconsult.dk/">http://www.scanconsult.dk</A> <BR>=
ParaSuite : A Suite of Air Cargo Handling solutions
=<BR>= Partners : Hewlett-Packard, Cognos, Microsoft and more
=<BR> </FONT> </P>
<DIV> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B>
powerh-l-bounces+oh=scanconsult.dk@lists.sowder.com
[mailto:powerh-l-bounces+oh=scanconsult.dk@lists.sowder.com] <B>On Behalf Of
</B>Heasman, David<BR><B>Sent:</B> 11. august 2006 11:46<BR><B>To:</B>
powerh-l@lists.sowder.com<BR><B>Subject:</B> Knowing when QUIZ has
completed<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=876442009-11082006><FONT face=Arial><FONT size=2> <SPAN
class=876442009-11082006><FONT
color=#0000ff>Hi,</FONT></SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=876442009-11082006><FONT face=Arial><FONT size=2><SPAN
class=876442009-11082006> <FONT color=#0000ff>I'm running PH
6.09 on HP3000. </FONT></SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=876442009-11082006><FONT face=Arial><FONT size=2><SPAN
class=876442009-11082006> <FONT color=#0000ff>I have to
write a screen that executes a Quiz routine retrieving about 20000 records and
writing them to a file</FONT></SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=876442009-11082006><FONT face=Arial><FONT size=2><SPAN
class=876442009-11082006> <FONT color=#0000ff>and when it's
finished, FTP the output to a server.</FONT></SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=876442009-11082006><FONT face=Arial><FONT size=2><SPAN
class=876442009-11082006> <FONT color=#0000ff>The question -
how do I tell, in the screen, that the Quiz routine has
finished?<BR> It would be easy to just stream a job to do
this, but it's not allowed - users don't
have</FONT></SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=876442009-11082006><FONT face=Arial><FONT color=#0000ff
size=2><SPAN class=876442009-11082006> the privilege
and it would confuse the operator. </SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=876442009-11082006><FONT face=Arial><FONT color=#0000ff
size=2><SPAN class=876442009-11082006> 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,</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=876442009-11082006><FONT face=Arial><FONT color=#0000ff
size=2><SPAN class=876442009-11082006> twice, and when the
two values are equal the Quiz has finished, but surely there's another,
easier, way?</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=876442009-11082006><FONT face=Arial><FONT color=#0000ff
size=2><SPAN class=876442009-11082006></SPAN></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=876442009-11082006><FONT face=Arial><FONT color=#0000ff
size=2><SPAN class=876442009-11082006>regards
</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=876442009-11082006><FONT face=Arial><FONT color=#0000ff
size=2><SPAN class=876442009-11082006></SPAN></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=876442009-11082006><FONT face=Arial><FONT color=#0000ff
size=2><SPAN class=876442009-11082006>Dave in
London</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=876442009-11082006><FONT face=Arial><FONT color=#0000ff
size=2><SPAN class=876442009-11082006></SPAN></FONT></FONT></SPAN> </DIV><PRE>__________________________________________________________________
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@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@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</PRE><PRE>* Please Note : This message was received from the Internet *
_____________________________________________________________
</PRE></BLOCKQUOTE><pre>__________________________________________________________________
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@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@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
</pre></BODY></HTML>