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.

SetCurrent:<br />

EXECUTE<br />

SET CURRENT PACKAGESET= USER<br />

packagesetname<br />

DEGREE= 1<br />

ANY<br />

RULES= DB2<br />

STD<br />

SQLID= USER<br />

value<br />

Command Description<br />

The SQL stage queries DB2 tables, inserts rows into DB2 tables, and issues DB2<br />

commands.<br />

Streams<br />

For additional in<strong>for</strong>mation about interacting with SQL databases, see Chapter 6,<br />

“Using <strong>Tivoli</strong> <strong>NetView</strong> <strong>for</strong> z/<strong>OS</strong> SQL Stages <strong>for</strong> Access to DB2,” on page 333.<br />

Stream Type Number Supported<br />

Input 1<br />

Output 3<br />

PIPE SQL<br />

Termination Conditions<br />

SQL terminates when it discovers that a primary output stream is not connected. It<br />

also terminates if a negative return code is received from DB2. If this happens, the<br />

unit of work is rolled back unless DB2 indicates it has already done this.<br />

Operand Descriptions<br />

Optional keywords are followed by a function keyword. The EXECUTE function<br />

does not require additional arguments; SELECT requires a SELECT statement;<br />

INSERT requires at least three words of an INSERT statement.<br />

COMMIT<br />

At stage completion, commit the unit of work or roll back in the event of an<br />

error. This is the default.<br />

NOCOMMIT<br />

Do not commit the unit of work when processing is completed without errors.<br />

Roll back in the event of an error. Use this option when processing with<br />

multiple cursors or to issue DB2 statements from multiple invocations of SQL<br />

as a single unit of work.<br />

NOCL<strong>OS</strong>E<br />

Keeps the current plan open after the pipe ends.<br />

INDICATORS<br />

The data streams used by SQL SELECT and SQL INSERT include indicator<br />

halfwords in front of the data field. INDICATORS is the default <strong>for</strong> SQL<br />

SELECT.<br />

NOINDICATORS<br />

The data streams used by SQL SELECT and SQL INSERT do not include<br />

indicator halfwords in front of the data field. For SQL SELECT, indicator words<br />

Chapter 2. Pipeline Stages and Syntax 219

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

Saved successfully!

Ooh no, something went wrong!