Re: [CMS-PIPELINES] Parsing help

2009-12-17 Thread Schuh, Richard
Mike, You beat me to the suggestion. Regards, Richard Schuh > -Original Message- > From: CMSTSO Pipelines Discussion List > [mailto:cms-pipeli...@vm.marist.edu] On Behalf Of Mike Walter > Sent: Thursday, December 17, 2009 2:33 PM > To: CMS-PIPELINES@VM.MARIST.EDU > Subject: Re: Par

Re: [CMS-PIPELINES] Parsing help

2009-12-17 Thread Mike Walter
Now, if you accidentally place "PATTERN" on a public web site after your updates are tested... ;-) "Glenn Knickerbocker" Sent by: "CMSTSO Pipelines Discussion List" 12/17/2009 04:19 PM Please respond to "CMSTSO Pipelines Discussion List" To CMS-PIPELINES@VM.MARIST.EDU cc Subject Re:

Re: [CMS-PIPELINES] Parsing help

2009-12-17 Thread Glenn Knickerbocker
On Thu, 17 Dec 2009 20:44:28 +, you wrote: >Something called PATTERN has, but it is not generally available. By odd coincidence, I was just updating a pattern to parse balanced parens in SMP/E comments yesterday. ¬R Blather, Rinse, Repeat. http://users.bestweb.net/~notr/telec

Re: [CMS-PIPELINES] Parsing help

2009-12-17 Thread Hughes, Jim
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 [m

Re: [CMS-PIPELINES] Parsing help

2009-12-17 Thread Schuh, Richard
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:cms-pipeli...@vm.marist.edu] On Behalf Of Hughes, Jim > Sent: Thursday, December 17, 2009 1:03 P

Re: [CMS-PIPELINES] Parsing help

2009-12-17 Thread Hughes, Jim
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- ==>pipeli...@vm.ma

Re: [CMS-PIPELINES] Parsing help

2009-12-17 Thread Schuh, Richard
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

Re: [CMS-PIPELINES] Parsing help

2009-12-17 Thread Hughes, Jim
Thanks Richard, You have provided the missing link to me. I appreciate your ability to think outside the box. Regards, Jim Hughes 603-271-5586 "It is fun to do the impossible." ==>-Original Message- ==>From: CMSTSO Pipelines Discussion List [mailto:CMS- ==>pipeli..

Re: [CMS-PIPELINES] Parsing help

2009-12-17 Thread Schuh, Richard
Or you can make the PIPE below into a REXX filter and not have to buy a product. It does need to be gussied up by putting commas between the parameters, but that shouldn't be too onerous a task. Regards, Richard Schuh > -Original Message- > From: CMSTSO Pipelines Discussion List >

Re: [CMS-PIPELINES] Parsing help

2009-12-17 Thread John P. Hartmann
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 > > [ma

Re: [CMS-PIPELINES] Parsing help

2009-12-17 Thread Alain Benveniste
If you really modify massive z/os jcl, CA Neat will do it nice. Alain Benveniste Envoyé de mon iPhone Le 17 déc. 2009 à 21:12, "Schuh, Richard" a écrit : 'PIPE (end \) literal CLASS=P,MSGLEVEL=(1,1),MSGCLASS=X', '| split before string /(/', '| split after string /)/', '| l: locate /

Re: [CMS-PIPELINES] Parsing help

2009-12-17 Thread Schuh, Richard
'PIPE (end \) literal CLASS=P,MSGLEVEL=(1,1),MSGCLASS=X', '| split before string /(/', '| split after string /)/', '| l: locate /(/', '| f: faninany', '| deblock linend ~', '| cons', '\ l:', '| change /,/ /~/', '| f:' Regards, Richard Schuh > -Original Message---

[CMS-PIPELINES] Parsing help

2009-12-17 Thread Hughes, Jim
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?