From: hammond@not@peek.ppb.dec.com (Charlie Hammond)
Subject: Re: Help on DCL
Date: 1999/03/26 [thread overview]
Message-ID: <7dgik3$m3s$1@nntpd.lkg.dec.com> (raw)
In-Reply-To: 7dfjj9$mlt$1@m5.att.net.hk
In article <7dfjj9$mlt$1@m5.att.net.hk>,
"Forest Gum" <Trishgoff@hotmail.com> writes:
>Anyone can advise how to use the lexical function to suppress "," so =
>that I can
>convert the numberic string into figure for caluation.
>i.e. read from file that contain 1,234,445,233 convert to 1234445223.
$ x = "123,456,789"
$ x = x - "," - "," - "," - "," - ","
$ sho sym x
X = "123456789"
$ x = f$integer(x)
$ sho sym x
X = 123456789 Hex = 075BCD15 Octal = 00726746425
NOTE: "Subtracting" more commas than exist is O.K.
--
Charlie Hammond -- Compaq Computer Corporation -- Pompano Beach FL USA
(hammond@peek.enet.dec.com -- remove "@not" when replying)
All opinions expressed are my own and not necessarily my employer's.
next parent reply other threads:[~1999-03-26 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <7dfjj9$mlt$1@m5.att.net.hk>
1999-03-26 5:00 ` hammond [this message]
1999-03-26 5:00 ` Help on DCL sol gongola
1999-03-26 5:00 ` Carl Perkins
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox