Introduction of Calling Quick Screens as Functions

Deskin, Bob Bob.Deskin@Cognos.COM
Fri, 11 Jun 2004 14:34:04 -0400


This is a multi-part message in MIME format.

------_=_NextPart_001_01C44FE2.AC2B42C7
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I said that I'd check for QUICK in Batch documentation when I returned
to the office. I checked the conference proceedings that were available
on CD and there was nothing. I couldn't find any SupportLink articles on
this subject either. Hopefully this group has answered the questions
satisfactorily.
Bob Deskin             =20
Senior Product Manager, Application Development Tools, Cognos Inc.=20
bob.deskin@cognos.com (613) 738-1338 ext 7268 FAX: (613) 727-1178=20
3755 Riverside Drive P.O. Box 9707 Stn. T, Ottawa ON K1G 4K9 CANADA=20
	-----Original Message-----
	From: Deskin, Bob=20
	Sent: May 26, 2004 9:49 AM
	To: 'Viet Nguyen'; powerh-l@lists.sowder.com
	Subject: RE: Introduction of Calling Quick Screens as Functions
=09
=09
	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
	=09
	=09
		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_01C44FE2.AC2B42C7
Content-Type: text/html;
	charset="us-ascii"
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"><TITLE>Message</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3DWord.Document name=3DProgId>
<META content=3D"MSHTML 6.00.2800.1400" 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=3D226402918-11062004><FONT face=3DArial color=3D#0000ff =
size=3D2>I said=20
that I'd check for QUICK in Batch documentation when I returned to the =
office. I=20
checked the conference proceedings that were available on CD and there =
was=20
nothing. I couldn't find any SupportLink articles on this subject =
either.=20
Hopefully this group has answered the questions=20
satisfactorily.</FONT></SPAN></DIV>
<DIV><SPAN class=3D226402918-11062004><FONT face=3DArial color=3D#0000ff =
size=3D2><!-- Converted from text/rtf format -->
<P><SPAN lang=3Den-us><FONT face=3DArial size=3D2>Bob=20
Deskin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;=20
</FONT></SPAN><BR><SPAN lang=3Den-us><FONT face=3DArial size=3D2>Senior =
Product=20
Manager, Application Development Tools, Cognos Inc.</FONT></SPAN> =
<BR><SPAN=20
lang=3Den-us><FONT face=3DArial size=3D2>bob.deskin@cognos.com (613) =
738-1338 ext 7268=20
FAX: (613) 727-1178</FONT></SPAN> <BR><SPAN lang=3Den-us><FONT =
face=3DArial=20
size=3D2>3755 Riverside Drive P.O. Box 9707 Stn. T, Ottawa ON K1G 4K9=20
CANADA</FONT></SPAN> </P></FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
  face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B> =
Deskin, Bob=20
  <BR><B>Sent:</B> May 26, 2004 9:49 AM<BR><B>To:</B> 'Viet Nguyen';=20
  powerh-l@lists.sowder.com<BR><B>Subject:</B> RE: Introduction of =
Calling Quick=20
  Screens as Functions<BR><BR></FONT></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=20
  there were any conference papers or SupportLink articles about it. I'm =
out of=20
  the 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=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D863003713-26052004><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>Strictly speaking, it's quite simple. There's no output =
display device=20
  so you need to set the terminal type appropriately - someone please =
help me=20
  here, I can't remember what the setting is. Usually there's no input =
because=20
  you would have to mimic exactly what QUICK expects and that can be =
very=20
  tricky. So once you have the output device, you just run the screen. =
There's=20
  no layout section because there's no display. You have to make sure =
that your=20
  processing doesn't prompt for anything (data or commands)&nbsp;and is=20
  self-contained. Usually the INITIALIZE procedure is used to contain =
all the=20
  processing. You run QUICK with AUTO pointing to the screen file or a =
QKGO if=20
  that's needed. And don't&nbsp;forget&nbsp;to exit the screen using the =
RETURN=20
  verb.&nbsp;For example:</FONT></SPAN></DIV>
  <DIV><SPAN class=3D863003713-26052004><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D863003713-26052004><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>screen batch menu&nbsp; ; it's a menu because there's no =
PRIMARY and=20
  I'm picky :-)</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=20
  size=3D2>procedure initialize</FONT></SPAN></DIV>
  <DIV><SPAN class=3D863003713-26052004><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>&nbsp; begin</FONT></SPAN></DIV>
  <DIV><SPAN class=3D863003713-26052004><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>&nbsp;&nbsp;&nbsp; while retrieving input</FONT></SPAN></DIV>
  <DIV><SPAN class=3D863003713-26052004><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; begin</FONT></SPAN></DIV>
  <DIV><SPAN class=3D863003713-26052004><FONT face=3DArial =
color=3D#0000ff=20
  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=20
  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=20
  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=20
  =
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=20
  =
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=20
  =
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=20
  =
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=20
  size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
end</FONT></SPAN></DIV>
  <DIV><SPAN class=3D863003713-26052004><FONT face=3DArial =
color=3D#0000ff=20
  =
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return</FONT></SPAN></DIV>
  <DIV><SPAN class=3D863003713-26052004><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>&nbsp;&nbsp;&nbsp; end</FONT></SPAN></DIV>
  <DIV><SPAN class=3D863003713-26052004><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>build</FONT></SPAN></DIV>
  <DIV><SPAN class=3D863003713-26052004><FONT face=3DArial =
color=3D#0000ff=20
  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>=20
    RE: 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=20
    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></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_01C44FE2.AC2B42C7--