Parse a string in CLIST

Ask/Clarify the questions on TSO, CLIST & REXX

Moderators: Veera, Moderator Group

Post Reply
recordc
Member
Posts: 2
Joined: Thu Apr 12, 2012 11:01 pm

Parse a string in CLIST

Post by recordc » Thu Apr 12, 2012 11:10 pm

I need to parse a string like...

THIS IS A TEST TO CHECK A STRING FOR THE WORDS PASS, WG, OR SC

If the string contains the word(s) PASS WG or SC, I need to throw a message.

My CLIST is working with ISPF. I have a bit of logic working the the (PROC area, but just doesn't seem to do the job...

VER(&cmt,LISTX,'',PASS,WG,SC,MSG=MSGOUT)

...it will inly through the message when the first word is one of the reserved words. I figure I'll have to do a loop here but what will parse the string?

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Fri Apr 13, 2012 12:45 am

Welcome to the forum.

Is there some reason clist is being used?

If you were to use rexx, there are many more examples available.
Have a good one

recordc
Member
Posts: 2
Joined: Thu Apr 12, 2012 11:01 pm

Post by recordc » Fri Apr 13, 2012 12:47 am

Just a standard really

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Sat Apr 14, 2012 4:00 pm

Let me know when you throw a message so that I can duck - or did you mean display?
Regards
Nic

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Sun Apr 15, 2012 5:01 am

As technology is improved / replaced, standards often (usually) follow.

It may not be long until clist knowledge becomes even more rare than it is now. . .
Have a good one

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others