HP3000-L Archives

August 2000, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Ken Hirsch <[log in to unmask]>
Reply To:
Ken Hirsch <[log in to unmask]>
Date:
Tue, 8 Aug 2000 15:03:05 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (58 lines)
if  X is the numeric variable

setvar filename "PF" + rht("0000!x",5)

----- Original Message -----
From: <[log in to unmask]>
To: <[log in to unmask]>
Sent: Tuesday, August 08, 2000 11:40 AM
Subject: Leading Zeroes populator ?


> Hi all,
>
> I am reading a unique record (from database) which has a field NUMBER
which
> is defined as I2.. I would like to extract this value somehow using a
SETVAR
> <filename> or something like that.. !! Following is the requirements..
>
> The NUMBER could be a 1digit, 2 digit, 3digit or 4 digit or 5 digit
numeric
> number. I would like to extract this number into a 5 digit numeric number
> prefixed with leading ZEROES upto the 5th digit irrespective of whatever
> value is there in that field.. For ex : if the value in field NUMERIC is
375
> then I would want my extract to be 00375.
>
> My final goal is to have the following :
> SETVAR FILENAME "PF" + "5 digit numeric number with leading ZEROES coming
> from NUMBER" ..
> With the above example I would like to have the FILENAME having value
> "PF00375"..
>
> Is there any ASCII definitions or leading ZERO populator ? If so how do I
do
> it ?
>
> Thanks in advance for all your flooding replies.. !!
> Regards
> Raghu..
>
>
> The information contained in this message and any attached documents is
> intended only for the personal and confidential use of the designated
> recipient(s).  This message may be a confidential and privileged
> communication.  If the reader of this message is not the intended
recipient
> (or an agent responsible for delivering it to the intended recipient), you
> are hereby notified that any unauthorized distribution or copying of this
> email or the information contained in it is strictly prohibited.  If you
> have received this communication in error, please notify us immediately by
> replying to this message and deleting it from your computer.  BlueCross
> BlueShield of Tennessee, Inc., and its subsidiary and affiliate companies
> are not responsible for errors or omissions in this e-mail message.  Any
> personal comments made do not necessarily reflect the views of BlueCross
> BlueShield of Tennessee, Inc.
>

ATOM RSS1 RSS2