Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!emory!gatech!mcnc!brooking From: brooking@mcnc.org (Jim Brooking) Newsgroups: comp.lang.rexx Subject: Re: Question about Parsing Summary: One Possible Method Message-ID: <7380@alvin.mcnc.org> Date: 28 Nov 90 20:42:57 GMT References: <9304@ncar.ucar.edu> Organization: MCNC; RTP, NC Lines: 28 In article <9304@ncar.ucar.edu>, tparker@bierstadt.scd.ucar.edu (Tom Parker) writes: > > But I can't find how to use a NUMERIC pattern in a variable. For > example, I might want to break a string at a specific column determined > by the program. Simplistic example: > > column = 4 > parse value 'dog/cat' with word1 (column) word2 > > will use '4' as a string pattern, rather than as a number pattern. > This seems to do the job: /* Parse something with a variable column */ col = 4 xyz = 12345678 z = "parse var xyz var1" col "varn" interpret z say var1 varn At least it works on uniREXX; I don't have a CMS account at the moment. -- >8-} >:-) %\( 8^) :+/ |'[ ;-) :-O B^\ :-) Jim Brooking........North Carolina Supercomputing Center.......(919)248-1145