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.

Additional <strong>NetView</strong> Pipeline Examples<br />

’PIPE SAFE GDSSAFE’,<br />

’ | COL’,<br />

’ | CONS CLEAR ONLY’<br />

EXIT<br />

Output from the pipeline (DSIGDS in active status) follows:<br />

Displaying or Canceling a JES2 Job<br />

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

NCCF NETVIEW CNM01 OPER1 05/17/10 12:20:00<br />

- CNM01<br />

TYPE: OPT TASKID: DSIGDS TASKNAME: DSIGDS STATUS: ACTIVE<br />

IST271I JOBNAME = MYENV, STEPNAME = MYENV, DSPNAME = 00009IST<br />

UNSOLICITED DSRBS: 1 USED: 0 FREE: 1<br />

SOLICITED DSRBS: 5 USED: 0 VSAM REDRIVE: 0 FREE: 5<br />

TOTAL DSRBS: 6 USED: 0 VSAM REDRIVE: 0 FREE: 6<br />

TASKNAME TYPE DPR CPU-TIME N-CPU% S-CPU% MESSAGEQ STORAGE-K CMDLIST<br />

-------- ---- --- ----------- ------ ------ -------- --------- --------<br />

DSIGDS DST 254 0.01 0.00 0.00 0 35 N/A<br />

Figure 30. DSIGDS Task Summary Screen<br />

Multiple PIPE commands can be combined in a REXX command list to enables a<br />

user to display, or to display and cancel, a job on JES 2. A wildcard character ('*') is<br />

supported at the end of jobname to display or cancel multiple jobs.<br />

This example shows output from the command list being run twice. The first time<br />

the command list was submitted using the command 'JES2JOB REOR* D' to<br />

display all JES 2 jobnames starting with the characters 'REOR'. The second time the<br />

command list was submitted using the command 'JES2JOB REORGA C' to display<br />

and cancel the job REORGA.<br />

A customized screen <strong>for</strong>mat is used <strong>for</strong> this example. The JES2 job number<br />

displayed. Browse the CNMSCNFT sample supplied with the <strong>NetView</strong> product <strong>for</strong><br />

more in<strong>for</strong>mation.<br />

Note: APAR OY52941 must be applied <strong>for</strong> the JES commands in this command list<br />

to have correlated output.<br />

/*******************************************************************/<br />

/* Sample REXX command list Named: JES2JOB */<br />

/* */<br />

/* Syntax: JES2JOB parm1 parm2 */<br />

/* where: */<br />

/* parm1 is one of the following: */<br />

/* jobname (A JOBNAME ) */<br />

/* jobn* (a partial jobname followed by an asterisk) */<br />

/* * (an asterisk, meaning ’all’) */<br />

/* */<br />

/* parm2 is one of the following: */<br />

/* C (cancel) */<br />

/* any character other than ’C’ (indicates display) */<br />

/*******************************************************************/<br />

/* Get input jobname parm and */<br />

ARG jobname arg2 /* display/cancel parm. */<br />

IF (jobname = ’’) | (jobname = ’?’) THEN<br />

DO<br />

SAY ’Enter BR JES2JOB <strong>for</strong> help and syntax’<br />

EXIT

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

Saved successfully!

Ooh no, something went wrong!