From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,43a3e5bfb9a461b1 X-Google-Attributes: gid1164f8,public From: hammond@not@peek.ppb.dec.com (Charlie Hammond) Subject: Re: Help on DCL Date: 1999/03/26 Message-ID: <7dgik3$m3s$1@nntpd.lkg.dec.com>#1/1 X-Deja-AN: 459613593 Distribution: world References: <7dfjj9$mlt$1@m5.att.net.hk> Organization: Compaq Computer Corporation Reply-To: hammond@not@peek.enet.dec.com Newsgroups: comp.sys.dec In article <7dfjj9$mlt$1@m5.att.net.hk>, "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. $ 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.