From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,43a3e5bfb9a461b1,start X-Google-Attributes: gid1164f8,public From: carl@gerg.tamu.edu (Carl Perkins) Subject: Re: Help on DCL Date: 1999/03/26 Message-ID: <26MAR199908100027@gerg.tamu.edu>#1/1 X-Deja-AN: 459355433 Distribution: world References: <7dfjj9$mlt$1@m5.att.net.hk> X-Lunar-Date: 5 days, 14 hrs, 26 mins until the full moon (U.T.) Organization: Geochemical and Environmental Research Group - TAMU News-Software: VAX/VMS VNEWS 1.50AAXP NNTP-Posting-Date: 26 Mar 1999 14:06:13 GMT Newsgroups: comp.sys.dec "Forest Gum" 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