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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PIPE REVERSE<br />

Usage Notes<br />

REVERSE cannot be the first stage.<br />

Examples<br />

202 <strong>Programming</strong>: <strong>Pipes</strong><br />

Example: Changing the Order of Message Lines<br />

The following example shows how to retrieve the bottom section of an archived<br />

net log and reverses the output from descending order to ascending order.<br />

ALLOCATE DDNAME(OLDLOG) DSN(’archive-name’)<br />

PIPE CORRCMD DSIVSMX GETREV OLDLOG 10 X’FF’ X’00’<br />

| REVERSE STREAM<br />

| NOT CHOP 50<br />

| CONSOLE<br />

--> TYPE: <strong>OS</strong>T TASKID: RESOURCE:A01A443 STATUS:NOT ACTIVE<br />

--> TYPE: <strong>OS</strong>T TASKID: RESOURCE:A01A444 STATUS:NOT ACTIVE<br />

--> TYPE: <strong>OS</strong>T TASKID: RESOURCE:NT7ED002 STATUS:NOT ACTIVE<br />

--> TYPE: <strong>OS</strong>T TASKID: TOM RESOURCE:NT7ED001 STATUS:ACTIVE<br />

--> TYPE: <strong>OS</strong>T TASKID: AUTO1 RESOURCE:AUTO1 STATUS:ACTIVE<br />

--> TYPE: <strong>OS</strong>T TASKID: AUTO2 RESOURCE:AUTO2 STATUS:ACTIVE<br />

--> TYPE: <strong>OS</strong>T TASKID: NETOP2 RESOURCE:NETOP2 STATUS:ACTIVE<br />

--> TYPE: <strong>OS</strong>T TASKID: DSILCOPR RESOURCE:DSILCOPR STATUS:ACTIVE<br />

--> END OF STATUS DISPLAY<br />

--> SWITCH DSILOG,S<br />

In this example, the last command be<strong>for</strong>e archiving was SWITCH.<br />

Attention: Do not use DSIVSMX to access any data set defined to a <strong>NetView</strong><br />

Optional Task.

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

Saved successfully!

Ooh no, something went wrong!