Help with VARCHAR needed
Terry Curran
terrycurran@onetel.net.uk
Tue, 25 Mar 2003 14:35:11 -0000
This is a multi-part message in MIME format.
------=_NextPart_000_000A_01C2F2DB.BE930160
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
I believe that VARCHAR only exists because Oracle has a VARCHAR
datatype, I don't think there is any valid use for it as PowerHouse
treats all string as fixed lengths, so VARCHAR*2000 will be the same as
CHAR*2000.
If you are outputting to Excel, then the fixed column format is probably
fine. Its one of the formats that excel is OK with importing. If you
start doing CSV files or anything else fancy like that then you will
have to start converting numbers to characters, etc. The only drawback
is that if you use the REPORT statement to output strings then the
maximum page witdh is 255. Generally I would uses a SUBFILE as the
output format, you would then need to adjust the format , and convert
everything to s character string. If you use a subfile in this way then
you probably should use a CSV format, and terminate each record with a
<CR><LF>, if you pack your strings to remove excess space then it
doesn't matter about having trailing spaces in the subfile records -
providing you end each set of data with <CR><LF>.
------------------------------------------------------------------------
----------------
This email is brought to you courtesy of 1 & 1, for more details please
visit the
link below
http://oneandone.co.uk/xml/init?k_id=5753616
------------------------------------------------------------------------
----------------
-----Original Message-----
From: powerh-l-admin@cube.swau.edu [mailto:powerh-l-admin@cube.swau.edu]
On Behalf Of Leonard_Berkowitz@harvardpilgrim.org
Sent: Tuesday, March 25, 2003 1:34 PM
To: Chris Sharman
Cc: powerh-l@lists.swau.edu; powerh-l-admin@cube.swau.edu
Subject: Re: Help with VARCHAR needed
Chris,
Thanks for your note.
Yes, it is QUIZ.
Since this output is destined for an Excel spreadsheet, the recipient
will have to format the columns on the other end. For now, I am
reporting the data on my terminal just to validate the logic, so the
width that I selected is somewhat inconvenient.
I was beginning to read the same conclusion about the lack of advantage
to VARCHAR, but I figured there must be some purpose.
Leonard
--
Leonard S. Berkowitz
Perot Health Care Systems
(Harvard Pilgrim Health Care account)
voice: 617-509-1212
fax: 617-509-1955
pager: 781-226-2431
Chris Sharman
<chris.sharman@ccag To:
powerh-l@lists.swau.edu
roup.co.uk> cc:
Sent by: Subject: Re: Help with
VARCHAR needed
powerh-l-admin@cube
.swau.edu
03/25/2003 03:52 AM
leonard_berkowitz@harvardpilgrim.org wrote:
> HPe3000; Powerhouse 8.19C.
>
> I have not used VARCHAR previously. I somehow believed that it was not
> available in my environment.
>
> To parse a 256-byte field that has variable-length sub-fields within
> it,
I
> am using VARCHAR. It seems-- in the DEFINE -- that I have to set
> VARCHAR
*
> N or SIZE M to be the maximum expected length of the sub-field. I
> chose SIZE 20. When I report the DEFINEd items, they come out fixed
> width of
20.
>
> So, how do I take advantage of the variable-length?
Is this Quiz ?
If you want to print something else immediately next to your varchar, I
guess you need another define. Quiz pads everything to fixed width
columns, except the last column. If you don't want that padding, you
have to construct the line yourself in a define, then report the defined
item. I've done that to take excess space out of html reports etc.
I've never found that varchar does anything different to truncate(char)
I haven't used it much. I have a vague recollection that it gets passed
strangely (in Quick) or something.
Chris
-----------------------------------------------------------------------
Any views expressed in this message are those of the sender and not
necessarily those of CCA Group. The unauthorized use, disclosure,
copying or alteration of this message is forbidden. The contents of
this message may be confidential and/or privileged, copyright CCA Group
and are intended solely for the use of the individual or entity to whom
they are addressed. Whilst this message has been scanned, CCA Group
cannot guarantee that it is virus free or compatible with your systems
and accepts no responsibility for any loss or damage arising from its
use. The recipient is advised to run their own anti-virus software. If
you receive this message in error please contact
postmaster@ccagroup.co.uk immediately, destroy any copies and delete it
from your computer systems. = = = = = = = = = = = = = = = = = = = = = =
= = = = = = Mailing list: powerh-l@lists.swau.edu
Subscribe: "subscribe" in message body to
powerh-l-request@lists.swau.edu
Unsubscribe: "unsubscribe" in message body to
powerh-l-request@lists.swau.edu
http://lists.swau.edu/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l@lists.swau.edu
Subscribe: "subscribe" in message body to
powerh-l-request@lists.swau.edu
Unsubscribe: "unsubscribe" in message body to
powerh-l-request@lists.swau.edu
http://lists.swau.edu/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.
------=_NextPart_000_000A_01C2F2DB.BE930160
Content-Type: text/x-vcard;
name="Terence Phillip Curran (terry.curran@towermarsh.co.uk).vcf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="Terence Phillip Curran (terry.curran@towermarsh.co.uk).vcf"
BEGIN:VCARD
VERSION:2.1
N:Curran;Terence;Phillip
FN:Terence Phillip Curran (terry.curran@towermarsh.co.uk)
ORG:TowerMarsh Ltd
TITLE:Managing Director
TEL;WORK;VOICE:+44 (2392) 503893
TEL;HOME;VOICE:+44 (2392) 503893
TEL;CELL;VOICE:+44 (7720) 562048
ADR;WORK:;;130 Parham Road;Gosport;Hants;PO12 4UE;United Kingdom
LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:130 Parham Road=3D0D=3D0AGosport, =
Hants PO12 4UE=3D0D=3D0AUnited Kingdom
URL;WORK:http://www.towermarsh.co.uk
EMAIL;PREF;INTERNET:terry.curran@towermarsh.co.uk
REV:20030301T095201Z
END:VCARD
------=_NextPart_000_000A_01C2F2DB.BE930160--