28.11.2012 Views

IBM Tivoli NetView for z/OS Programming: Pipes - IBM notice

IBM Tivoli NetView for z/OS Programming: Pipes - IBM notice

IBM Tivoli NetView for z/OS Programming: Pipes - IBM notice

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PIPE CASEI<br />

Syntax<br />

CASEI:<br />

Synonyms<br />

CASEI stage_specification<br />

Stage Name Synonym<br />

CASEI CAS<br />

Command Description<br />

The CASEI stage causes the specified stage to compare character strings without<br />

sensitivity to uppercase or lowercase EBCDIC characters. For example, LOCATE<br />

/AbC/ without CASEI does not match a line containing 'ABC', but CASEI<br />

LOCATE /AbC/ does match such a line.<br />

It is only useful to use CASEI with stages specifying character strings, like<br />

LOCATE, T<strong>OS</strong>TRING, CHOP, and CHANGE. It is also only useful to use CASEI in<br />

environments that do not uppercase the entire PIPE command (NETVASIS<br />

environments).<br />

Termination Conditions<br />

CASEI modifies the stage specified in stage_specification. Because it is a modifier<br />

stage, CASEI does not have termination conditions of its own. See the in<strong>for</strong>mation<br />

on the stage CASEI is modifying <strong>for</strong> termination conditions.<br />

Operand Descriptions<br />

Examples<br />

stage_specification<br />

The stage specification being modified, including its operands.<br />

Example: Locating Strings Regardless of Case<br />

The following example locates lines containing a particular letter, regardless of<br />

case.<br />

NETVASIS PIPE LITERAL /ABcdefghi/<br />

| LITERAL /abc/<br />

| LITERAL /xyz/<br />

| CASEI LOCATE /abC/<br />

| CONSOLE<br />

---> abc<br />

---> ABcdefghi<br />

PIPE CASEI<br />

Example: Using CASEI with CHANGE Stage<br />

The following example locates all occurrences of a particular string, regardless of<br />

case, and outputs the substitute string exactly as entered.<br />

Chapter 2. Pipeline Stages and Syntax 31

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!