I never thought of using the paren's in the split or the deblock using the tilde.
I can use this technique in quite a few places. Way cool. ____________________ Jim Hughes 603-271-5586 "It is fun to do the impossible." ==>-----Original Message----- ==>From: CMSTSO Pipelines Discussion List [mailto:CMS- ==>[email protected]] On Behalf Of Schuh, Richard ==>Sent: Thursday, December 17, 2009 4:09 PM ==>To: [email protected] ==>Subject: Re: Parsing help ==> ==>Glad to have been of help. It may not be the most elegant solution, but ==>at least it works. ==> ==>Regards, ==>Richard Schuh ==> ==> ==> ==>> -----Original Message----- ==>> From: CMSTSO Pipelines Discussion List ==>> [mailto:[email protected]] On Behalf Of Hughes, Jim ==>> Sent: Thursday, December 17, 2009 1:03 PM ==>> To: [email protected] ==>> Subject: Re: Parsing help ==>> ==>> I have to deal with a subset of the jcl language. What you ==>> provided gets me running at light speed. Thanks again. ==>> ==>> ____________________ ==>> Jim Hughes ==>> 603-271-5586 ==>> "It is fun to do the impossible." ==>> ==>> ==>-----Original Message----- ==>> ==>From: CMSTSO Pipelines Discussion List [mailto:CMS- ==>> ==>[email protected]] On Behalf Of Schuh, Richard ==>> ==>Sent: Thursday, December 17, 2009 3:59 PM ==>> ==>To: [email protected] ==>> ==>Subject: Re: Parsing help ==>> ==> ==>> ==>And then there is the problem of continuation following a ==>> coma that is ==>inside the quotes or parentheses. Back in the ==>> release 15-17 era of OS/360 ==>the JCL parser couldn't handle ==>> some combinations of that. An AFFINITY ==>subparameter that ==>> was the last item on a line plus an AFFINITY parameter ==>> ==>later on the DD statement caused the system to crash. That ==>> was a handy ==>tool when we had something that needed to be ==>> loaded prior to the ==>evening's production runs but weren't ==>> being allowed an IPL of the system ==>during the day. ==>> ==> ==>> ==>Regards, ==>> ==>Richard Schuh ==>> ==> ==>> ==> ==>> ==> ==>> ==>> -----Original Message----- ==>> ==>> From: CMSTSO Pipelines Discussion List ==>> ==>> [mailto:[email protected]] On Behalf Of John P. ==>> Hartmann ==>> Sent: Thursday, December 17, 2009 12:44 PM ==>> ==>> To: [email protected] ==>> Subject: Re: Parsing ==>> help ==>> ==>> 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." ==>> ==>> > > ==>> ==>> > > ==>> ==>> > > ==>> ==>> > ==>> ==>> ==>>
