Help with VARCHAR needed

Leonard_Berkowitz@harvardpilgrim.org Leonard_Berkowitz@harvardpilgrim.org
Tue, 25 Mar 2003 08:33:53 -0500


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.