<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE id=ridTitle>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE>BODY {
        MARGIN-TOP: 25px; FONT-SIZE: 10pt; MARGIN-LEFT: 25px; COLOR: #000000; FONT-FAMILY: Arial, Helvetica
}
P.msoNormal {
        MARGIN-TOP: 0px; FONT-SIZE: 10pt; MARGIN-LEFT: 0px; COLOR: #ffffcc; FONT-FAMILY: Helvetica, "Times New Roman"
}
LI.msoNormal {
        MARGIN-TOP: 0px; FONT-SIZE: 10pt; MARGIN-LEFT: 0px; COLOR: #ffffcc; FONT-FAMILY: Helvetica, "Times New Roman"
}
</STYLE>
<META content="MSHTML 6.00.2900.3020" name=GENERATOR></HEAD>
<BODY id=ridBody background="" set='us-ascii"'>
<DIV><SPAN class=665141718-09012007><FONT color=#0000ff>Not really a bug as
such, but some component differences. While I can explain the differences, I can
understand why someone might wonder.</FONT></SPAN></DIV>
<DIV><SPAN class=665141718-09012007><FONT
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=665141718-09012007><FONT color=#0000ff>The main difference is
that QUIZ has a picture for formatting but QTP does not. Unfortunately, the
code used in SHOW ITEMS uses the same display format even though the meaning is
different. The *n format, as in INTEGER*6, is supposed to indicate the number of
digits you want to deal with.</FONT></SPAN></DIV>
<DIV><SPAN class=665141718-09012007><FONT
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=665141718-09012007><FONT color=#0000ff>In QUIZ, it's also used
to generate the default PICTURE. QUIZ also takes into account the
LEADING|TRAILING SIGN option, in the case, defaulted. NUMERIC (or FLOAT) and
INTEGER default to SIGNED, while ZONED defaults to UNSIGNED. This means that for
INT*6, the default PICTURE has 7 substitution characters while for ZONED*6,
there are 6. Note that the *n syntax is used to determine the default storage
size and the formatting. It does not restrict what can be physically entered
into the item. It's just that if you enter something too large, you won't see it
displayed properly.</FONT></SPAN></DIV>
<DIV><SPAN class=665141718-09012007><FONT
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=665141718-09012007><FONT color=#0000ff>With QTP, you get the
same storage format defaults as QUIZ but since there's no PICTURE or other
formatting, the SHOW ITEMS display simply shows the number of
characters.</FONT></SPAN></DIV>
<DIV><SPAN class=665141718-09012007><FONT
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=665141718-09012007><FONT color=#0000ff>With either QUIZ or QTP,
you can enter</FONT></SPAN></DIV>
<DIV><SPAN class=665141718-09012007><FONT
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=665141718-09012007><FONT color=#0000ff>DEFINE X INT*6 =
12345678 ; 8 digits</FONT></SPAN></DIV>
<DIV><SPAN class=665141718-09012007><FONT
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=665141718-09012007><FONT color=#0000ff>INT*6 defaults to a
storage of INTEGER SIZE 4 which easily holds 12345678. However, when you display
the value in QUIZ, you get crosshatches (#) because the generated picture is too
small.</FONT></SPAN></DIV>
<DIV><SPAN class=665141718-09012007><FONT
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=665141718-09012007><FONT color=#0000ff>In QUIZ, with a picture
large enough to hold the leading sign, you can actually use all of the
substitution characters for digits. So you can show 7 digits without a sign or 6
with a leading sign. QUIZ has always been this way.</FONT></SPAN></DIV>
<DIV><SPAN class=665141718-09012007><FONT
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=665141718-09012007><FONT color=#0000ff>Bob</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>-----Original Message-----<BR><B>From:</B>
Peter.Hofstaetter@hpa.com.au [mailto:Peter.Hofstaetter@hpa.com.au]
<BR><B>Sent:</B> January 8, 2007 5:06 PM<BR><B>To:</B> Deskin,
Bob<BR><B>Cc:</B> fernando.olmos@hpa.com.au<BR><B>Subject:</B> RE: Defines and
temps in PH<BR><BR></FONT></DIV>
<DIV dir=ltr align=left><SPAN class=421132821-08012007>Hi Bob,</SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=421132821-08012007></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=421132821-08012007>We are using Powerhouse
8.43.D1 on Sun UNIX.</SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=421132821-08012007></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=421132821-08012007>Under
Quiz:</SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=421132821-08012007></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=421132821-08012007>define quiz_num num*6 =
1<BR>define quiz_int int*6 = 1<BR>define quiz_zoned zoned*6 = 1<BR>report
summary all<BR>set subfile name quiz_test keep<BR>go</SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=421132821-08012007></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=421132821-08012007>Accessing the subfile
from Quiz and do a show items gives:</SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=421132821-08012007></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=421132821-08012007><FONT
face=Courier>
INPUT
OUTPUT<BR>QUIZ_TEST
TYPE SCALE SCALE DEC PICTURE<BR>
QUIZ_NUM
NUM 0 0
0 ^^^^^^^<BR>
QUIZ_INT
NUM 0 0
0 ^^^^^^^<BR>
QUIZ_ZONED
NUM 0 0
0 ^^^^^^</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=421132821-08012007>Under QTP do the same thing to a
subfile:</SPAN></DIV>
<DIV><SPAN class=421132821-08012007></SPAN> </DIV>
<DIV><SPAN class=421132821-08012007>access invoice_number<BR>define qtp_num
num*6 = 1<BR>define qtp_int int*6 = 1<BR>define qtp_zoned zoned*6 = 1<BR>temp
tqtp_num num*6<BR>temp tqtp_int int*6<BR>temp tqtp_zoned zoned*6<BR>subfile
qtp_test keep include
qtp_num,qtp_int,qtp_zoned,tqtp_num,tqtp_int,tqtp_zoned<BR>go</SPAN></DIV>
<DIV><SPAN class=421132821-08012007></SPAN> </DIV>
<DIV><SPAN class=421132821-08012007>Check subfile in Quiz and show items
gives:</SPAN></DIV>
<DIV><SPAN class=421132821-08012007></SPAN> </DIV>
<DIV><SPAN class=421132821-08012007><FONT
face=Courier>
INPUT
OUTPUT<BR>QTP_TEST
TYPE SCALE SCALE DEC PICTURE<BR>
QTP_NUM
NUM 0 0
0 ^^^^^^<BR>
QTP_INT
NUM 0 0
0 ^^^^^^<BR>
QTP_ZONED
NUM 0 0
0 ^^^^^^<BR>
TQTP_NUM
NUM 0 0
0 ^^^^^^<BR>
TQTP_INT
NUM 0 0
0 ^^^^^^<BR>
TQTP_ZONED
NUM 0 0
0 ^^^^^^</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><SPAN class=421132821-08012007>It seems that for consistency sake the num
and int types in Quiz are not the same as all others in Quiz and QTP when it
comes to the default picture created. I have not shown it here but if you do
the same in Quick it acts the same as QTP. Looks like it is only Quiz that is
at fault if in fact the default picture of "^^^^^^" is correct. You could
argue that as numbers could be signed it should have a default
picture " ^^^^^^" with the leading space to allow for the
negative sign.</SPAN></DIV>
<DIV><SPAN class=421132821-08012007></SPAN> </DIV>
<DIV align=left>Cheers,</DIV>
<DIV align=left><STRONG>Peter Hofstaetter</STRONG></DIV>
<DIV align=left>MIS Project Leader</DIV>
<DIV align=left> </DIV>
<DIV align=left><STRONG>HPA</STRONG></DIV>
<DIV align=left>Direct: (02) 9311 9783</DIV>
<DIV align=left>Fax: (02) 9311 9921</DIV>
<DIV align=left><A href="http://www.hpa.com.au/">www.hpa.com.au</A> </DIV>
<DIV> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma><B>From:</B> Fernando Olmos <BR><B>Sent:</B> Tuesday, 9
January 2007 8:20 AM<BR><B>To:</B> Peter Hofstaetter<BR><B>Subject:</B> FW:
Defines and temps in PH<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=846561821-08012007><FONT
color=#0000ff>Peter,</FONT></SPAN></DIV>
<DIV><SPAN class=846561821-08012007><FONT
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=846561821-08012007><FONT color=#0000ff>Bob is one of the
developers of Powerhouse at COGNOS.</FONT></SPAN></DIV>
<DIV><SPAN class=846561821-08012007><FONT
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=846561821-08012007><FONT color=#0000ff>Could you please
respond and Cc me as well?</FONT></SPAN></DIV>
<DIV><SPAN class=846561821-08012007><FONT
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=846561821-08012007><FONT
color=#0000ff>Thanks</FONT></SPAN></DIV>
<DIV><SPAN class=846561821-08012007><FONT
color=#0000ff></FONT></SPAN> </DIV>
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma>-----Original Message-----<BR><B>From:</B> Bob.Deskin@Cognos.COM
[mailto:Bob.Deskin@Cognos.COM] <BR><B>Sent:</B> Tuesday, 9 January 2007 2:08
AM<BR><B>To:</B> Fernando Olmos; powerh-l@lists.sowder.com<BR><B>Subject:</B>
RE: Defines and temps in PH<BR><BR></FONT></DIV>
<DIV>
<DIV><SPAN class=015020815-08012007><FONT color=#0000ff>Please post sample
source code for each case. Also, what version is this in and what platform.
I'd like to try it.</FONT></SPAN></DIV>
<DIV><SPAN class=015020815-08012007><FONT
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=015020815-08012007><FONT
color=#0000ff>Bob</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>-----Original Message-----<BR><B>From:</B>
powerh-l-bounces+bob.deskin=cognos.com@lists.sowder.com
[mailto:powerh-l-bounces+bob.deskin=cognos.com@lists.sowder.com] <B>On
Behalf Of </B>fernando.olmos@hpa.com.au<BR><B>Sent:</B> January 7, 2007 6:21
PM<BR><B>To:</B> powerh-l@lists.sowder.com<BR><B>Subject:</B> Defines and
temps in PH<BR><BR></FONT></DIV>
<DIV><SPAN class=238551923-07012007><FONT color=#0000ff>Hi
guys.</FONT></SPAN></DIV>
<DIV><SPAN class=238551923-07012007><FONT
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=238551923-07012007><FONT color=#0000ff>My colleague below
discovered what we believe is a bug in PH. Any insight as to why QTP would
define numeric's differently than QUIZ?</FONT></SPAN></DIV>
<DIV><SPAN class=238551923-07012007><FONT
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=238551923-07012007><FONT
color=#0000ff>Thanks</FONT></SPAN></DIV>
<DIV><SPAN class=238551923-07012007><FONT
color=#0000ff></FONT></SPAN> </DIV>
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma>-----Original Message-----<BR><B>From:</B> Peter Hofstaetter
<BR><B>Sent:</B> Monday, 8 January 2007 10:18 AM<BR><B>To:</B> Fernando
Olmos<BR><B>Subject:</B> Defines and temps in PH<BR><BR></FONT></DIV>
<DIV><SPAN class=016581523-07012007>Hi Fernando,</SPAN></DIV>
<DIV><SPAN class=016581523-07012007></SPAN> </DIV>
<DIV><SPAN class=016581523-07012007>QTP and Quick are the same. If you
define a Numerical temp as *6 you can only enter 6 digits i.e. 123456 or
-12345. In Quiz it allows 7 digits i.e. 1234567 or -123456. Nice
consistency!</SPAN></DIV>
<DIV> </DIV>
<DIV align=left>Cheers,</DIV>
<DIV align=left><STRONG>Peter Hofstaetter</STRONG></DIV>
<DIV align=left>MIS Project Leader</DIV>
<DIV align=left> </DIV>
<DIV align=left><STRONG>HPA</STRONG></DIV>
<DIV align=left>Direct: (02) 9311 9783</DIV>
<DIV align=left>Fax: (02) 9311
9921</DIV>
<DIV align=left><A href="http://www.hpa.com.au/">www.hpa.com.au</A> </DIV>
<P> </P><PRE>**********************************************************************
IMPORTANT
The contents of this e-mail and its attachments are confidential and intended
solely for the use of the individual or entity to whom they are addressed. If
you received this e-mail in error, please notify the HPA Postmaster, postmaster@hpa.com.au,
then delete the e-mail.
This footnote also confirms that this e-mail message has been swept for the
presence of computer viruses by Ironport. Before opening or using any
attachments, check them for viruses and defects.
Our liability is limited to resupplying any affected attachments.
HPA collects personal information to provide and market our services. For more
information about use, disclosure and access see our Privacy Policy at
www.hpa.com.au
**********************************************************************
</PRE></BLOCKQUOTE></DIV>
<DIV> </DIV>
<DIV> 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. </DIV><PRE>**********************************************************************
IMPORTANT
The contents of this e-mail and its attachments are confidential and intended
solely for the use of the individual or entity to whom they are addressed. If
you received this e-mail in error, please notify the HPA Postmaster, postmaster@hpa.com.au,
then delete the e-mail.
This footnote also confirms that this e-mail message has been swept for the
presence of computer viruses by Ironport. Before opening or using any
attachments, check them for viruses and defects.
Our liability is limited to resupplying any affected attachments.
HPA collects personal information to provide and market our services. For more
information about use, disclosure and access see our Privacy Policy at
www.hpa.com.au
**********************************************************************
</PRE></BLOCKQUOTE></BODY></HTML>