Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: carl@gerg.tamu.edu (Carl Perkins)
Subject: Re: Help on DCL
Date: 1999/03/26	[thread overview]
Message-ID: <26MAR199908100027@gerg.tamu.edu> (raw)
In-Reply-To: 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.

Try this:

$ A = "1,234,445,233"
$ B = A -","-","-","
$ Write Sys$Output B
$ Write Sys$Output B+1

It subtracts up to 3 "," from A when making B. If A has fewer than 3, the
excess subtractions do not do anything. If A can have more, you might want
to do more than 3 (but you won't be able to do any math with the result
since DCL uses 32 bit signed integers which would never have more than 3
of them).

--- Carl



       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 ` Carl Perkins [this message]
1999-03-26  5:00 ` Help on DCL sol gongola
1999-03-26  5:00 ` hammond
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