Jim, Alas, CMS/TSO Pipelines has no facilities for scanning balanced parentheses in general and even less if you throw in quoted strings too.
Something called PATTERN has, but it is not generally available. j. > > -----Original Message----- > > From: CMSTSO Pipelines Discussion List > > [mailto:[email protected]] On Behalf Of Hughes, Jim > > Sent: Thursday, December 17, 2009 11:55 AM > > To: [email protected] > > Subject: Parsing help > > > > I am parsing some Z/OS JCL and need some help splitting things apart. > > > > > > > > Take this sample line: > > > > > > > > CLASS=P,MSGLEVEL=(1,1),MSGCLASS=X > > > > > > > > I'd like to end withL > > > > CLASS=P, > > > > MSGLEVEL=(1,1), > > > > MSGCLASS=X > > > > > > > > I'm good with the SPLIT AFTER /,/ though it messes up the > > MSGLEVEL stuff. > > > > > > > > Any suggestions? > > > > > > > > ____________________ > > > > Jim Hughes > > > > 603-271-5586 > > > > "It is fun to do the impossible." > > > > > > >
