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." > > > > > > > > > > > >
