Introduction of Calling Quick Screens as Functions

Deskin, Bob Bob.Deskin@Cognos.COM
Wed, 26 May 2004 09:48:34 -0400


This is a multi-part message in MIME format.

------_=_NextPart_001_01C44328.23339C0F
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

We never documented QUICK in batch in the books and I don't remember =
whether there were any conference papers or SupportLink articles about =
it. I'm out of the office for a while but I'll check when I get back.
=20
Strictly speaking, it's quite simple. There's no output display device =
so you need to set the terminal type appropriately - someone please help =
me here, I can't remember what the setting is. Usually there's no input =
because you would have to mimic exactly what QUICK expects and that can =
be very tricky. So once you have the output device, you just run the =
screen. There's no layout section because there's no display. You have =
to make sure that your processing doesn't prompt for anything (data or =
commands) and is self-contained. Usually the INITIALIZE procedure is =
used to contain all the processing. You run QUICK with AUTO pointing to =
the screen file or a QKGO if that's needed. And don't forget to exit the =
screen using the RETURN verb. For example:
=20
screen batch menu  ; it's a menu because there's no PRIMARY and I'm =
picky :-)
file input designer
file output designer
procedure initialize
  begin
    while retrieving input
      begin
        get output via index-segment using index-segment of input
        if accessok
          then
            begin
              let item of output =3D item of input
              put output
              end
        end
      return
    end
build
=20
Bob Deskin             =20
Product Manager, Application Development Tools=20
Cognos Inc. 3755 Riverside Drive, Ottawa ON K1G 4K9 CANADA=20
bob.deskin@cognos.com (613) 738-1338 ext 7268
-----Original Message-----
From: Viet Nguyen [mailto:VNguyen@wsboces.org]
Sent: May 26, 2004 9:18 AM
To: Deskin, Bob; powerh-l@lists.sowder.com
Subject: RE: Introduction of Calling Quick Screens as Functions


Hi All, just for my own benefits could someone point me to where I can =
find more details on how to use quick in batch mode? Books, examples? =
Etc... would be helpful - I know that QTP has its place but I just like =
to be able to see what the program is doing while testing some small =
runs.
Thanks.
Viet.=20
 =20
       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.=20
=20

------_=_NextPart_001_01C44328.23339C0F
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<HTML xmlns:eXclaimer=3D"http://www.exclaimer.co.uk">
<HEAD>
<META http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3DUTF-16">
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUTF-16">
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<META content=3DWord.Document name=3DProgId>
<META content=3D"MSHTML 5.50.4937.800" name=3DGENERATOR>
<META content=3D"Microsoft Word 10" name=3DOriginator><LINK=20
href=3D"cid:filelist.xml@01C44302.49753470" rel=3DFile-List><!--[if gte =
mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<STYLE>@font-face {
	font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; =
mso-header-margin: .5in; mso-footer-margin: .5in; mso-paper-source: 0; }
P.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
LI.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
DIV.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
	COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
	COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
P.MsoAutoSig {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
LI.MsoAutoSig {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
DIV.MsoAutoSig {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
P {
	FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: =
"Times New Roman"; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"; mso-margin-top-alt: auto; =
mso-margin-bottom-alt: auto
}
SPAN.EmailStyle16 {
	COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal; =
mso-style-noshow: yes; mso-ansi-font-size: 10.0pt; =
mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; =
mso-bidi-font-family: Arial
}
SPAN.EmailStyle20 {
	COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply; =
mso-style-noshow: yes; mso-ansi-font-size: 10.0pt; =
mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; =
mso-bidi-font-family: Arial; mso-bidi-font-size: 10.0pt
}
SPAN.GramE {
	mso-style-name: ""; mso-gram-e: yes
}
DIV.Section1 {
	page: Section1
}
OL {
	MARGIN-BOTTOM: 0in
}
UL {
	MARGIN-BOTTOM: 0in
}
</STYLE>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]--><!--[if gte mso 9]><xml>
 <u1:OfficeDocumentSettings>
  <u1:DoNotRelyOnCSS/>
 </u1:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <u2:WordDocument>
  <u2:Zoom>0</u2:Zoom>
  <u2:DocumentKind>DocumentEmail</u2:DocumentKind>
  <u2:EnvelopeVis/>
 </u2:WordDocument>
</xml><![endif]--></HEAD><BODY lang=3DEN-US style=3D"tab-interval: .5in" =
vLink=3Dpurple link=3Dblue><DIV>
<DIV><SPAN class=3D863003713-26052004><FONT face=3DArial color=3D#0000ff =
size=3D2>We=20
never documented QUICK in batch in the books and I don't remember =
whether there=20
were any conference papers or SupportLink articles about it. I'm out of =
the=20
office for a while but I'll check when I get back.</FONT></SPAN></DIV>
<DIV><SPAN class=3D863003713-26052004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D863003713-26052004><FONT face=3DArial color=3D#0000ff =

size=3D2>Strictly speaking, it's quite simple. There's no output display =
device so=20
you need to set the terminal type appropriately - someone please help me =
here, I=20
can't remember what the setting is. Usually there's no input because you =
would=20
have to mimic exactly what QUICK expects and that can be very tricky. So =
once=20
you have the output device, you just run the screen. There's no layout =
section=20
because there's no display. You have to make sure that your processing =
doesn't=20
prompt for anything (data or commands)&nbsp;and is self-contained. =
Usually the=20
INITIALIZE procedure is used to contain all the processing. You run =
QUICK with=20
AUTO pointing to the screen file or a QKGO if that's needed. And=20
don't&nbsp;forget&nbsp;to exit the screen using the RETURN =
verb.&nbsp;For=20
example:</FONT></SPAN></DIV>
<DIV><SPAN class=3D863003713-26052004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D863003713-26052004><FONT face=3DArial color=3D#0000ff =
size=3D2>screen=20
batch menu&nbsp; ; it's a menu because there's no PRIMARY and I'm picky=20
:-)</FONT></SPAN></DIV>
<DIV><SPAN class=3D863003713-26052004><FONT face=3DArial color=3D#0000ff =
size=3D2>file=20
input designer</FONT></SPAN></DIV>
<DIV><SPAN class=3D863003713-26052004><FONT face=3DArial color=3D#0000ff =
size=3D2>file=20
output designer</FONT></SPAN></DIV>
<DIV><SPAN class=3D863003713-26052004><FONT face=3DArial color=3D#0000ff =

size=3D2>procedure initialize</FONT></SPAN></DIV>
<DIV><SPAN class=3D863003713-26052004><FONT face=3DArial color=3D#0000ff =
size=3D2>&nbsp;=20
begin</FONT></SPAN></DIV>
<DIV><SPAN class=3D863003713-26052004><FONT face=3DArial color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp; while retrieving input</FONT></SPAN></DIV>
<DIV><SPAN class=3D863003713-26052004><FONT face=3DArial color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; begin</FONT></SPAN></DIV>
<DIV><SPAN class=3D863003713-26052004><FONT face=3DArial color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get output via =
index-segment=20
using index-segment of input</FONT></SPAN></DIV>
<DIV><SPAN class=3D863003713-26052004><FONT face=3DArial color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if=20
accessok</FONT></SPAN></DIV>
<DIV><SPAN class=3D863003713-26052004><FONT face=3DArial color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
then</FONT></SPAN></DIV>
<DIV><SPAN class=3D863003713-26052004><FONT face=3DArial color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
begin</FONT></SPAN></DIV>
<DIV><SPAN class=3D863003713-26052004><FONT face=3DArial color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;=20
&nbsp;let item of output =3D item of input</FONT></SPAN></DIV>
<DIV><SPAN class=3D863003713-26052004><FONT face=3DArial color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;=20
&nbsp;put output</FONT></SPAN></DIV>
<DIV><SPAN class=3D863003713-26052004><FONT face=3DArial color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;=20
&nbsp;end</FONT></SPAN></DIV>
<DIV><SPAN class=3D863003713-26052004><FONT face=3DArial color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
end</FONT></SPAN></DIV>
<DIV><SPAN class=3D863003713-26052004><FONT face=3DArial color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return</FONT></SPAN></DIV>
<DIV><SPAN class=3D863003713-26052004><FONT face=3DArial color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp; end</FONT></SPAN></DIV>
<DIV><SPAN class=3D863003713-26052004><FONT face=3DArial color=3D#0000ff =

size=3D2>build</FONT></SPAN></DIV>
<DIV><SPAN class=3D863003713-26052004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D863003713-26052004><FONT face=3DArial color=3D#0000ff =
size=3D2>
<P><FONT face=3DArial size=3D2>Bob=20
Deskin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;=20
</FONT><BR><FONT face=3DArial size=3D2>Product Manager</FONT><FONT =
face=3DArial=20
size=3D2>,</FONT> <FONT face=3DArial size=3D2>Application Development =
Tools</FONT>=20
<BR><FONT face=3DArial size=3D2>Cognos Inc.</FONT><FONT face=3DArial =
size=3D2></FONT>=20
<FONT face=3DArial size=3D2>3755 Riverside Drive</FONT><FONT =
face=3DArial=20
size=3D2>,</FONT> <FONT face=3DArial size=3D2>Ottawa ON K1G 4K9 =
CANADA</FONT>=20
<BR><FONT face=3DArial size=3D2>bob.deskin@cognos.com</FONT><FONT =
face=3DArial=20
size=3D2></FONT> <FONT face=3DArial size=3D2>(613) 738-1338 ext</FONT> =
<FONT=20
face=3DArial size=3D2>7268</FONT></FONT></SPAN></P></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B> Viet Nguyen=20
  [mailto:VNguyen@wsboces.org]<BR><B>Sent:</B> May 26, 2004 9:18=20
  AM<BR><B>To:</B> Deskin, Bob; =
powerh-l@lists.sowder.com<BR><B>Subject:</B> RE:=20
  Introduction of Calling Quick Screens as =
Functions<BR><BR></FONT></DIV>
  <DIV class=3DSection1>
  <P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hi <SPAN=20
  class=3DGramE>All</SPAN>, just for my own benefits could someone point =
me to=20
  where I can find more details on how to use quick in batch mode? <SPAN =

  class=3DGramE>Books, examples?</SPAN> Etc&#8230; would be helpful =
&#8211; I know that QTP=20
  has its place but I just like to be able to see what the program is =
doing=20
  while testing some small runs.<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial">Thanks.<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial">Viet.<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P><![if =
!supportLists]><![endif]><![if !supportLists]><![endif]><![if =
!supportLists]><![endif]><![if !supportLists]><![endif]><![if =
!supportLists]><![endif]><!--[if supportFields]><span=20
class=3DEmailStyle16><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;mso-bidi-font-size:12.0pt'><span =
style=3D'mso-element:field-begin'></span><span=20
style=3D'mso-spacerun:yes'>&nbsp;</span>AUTOTEXTLIST \s &quot;E-mail =
Signature&quot; <span=20
style=3D'mso-element:field-separator'></span></span></font></span><![endi=
f]--><!--[if supportFields]><span=20
class=3DEmailStyle16><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;mso-bidi-font-size:12.0pt'><span =
style=3D'mso-element:field-end'></span></span></font></span><![endif]--><=
/DIV></BLOCKQUOTE></DIV>
<DIV>&nbsp;</DIV>
<DIV>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT FACE=3D"Arial" =
SIZE=3D"2">This message may contain privileged and/or confidential =
information.&nbsp; 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.&nbsp; =
Thank you.</FONT>
</P>
</DIV></BODY></HTML>

------_=_NextPart_001_01C44328.23339C0F--