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.

REXX Access to VSAM Files<br />

Samples CNMS8016 and CNMS8021 illustrate the use of the DSIVSAM command.<br />

See <strong>IBM</strong> <strong>Tivoli</strong> <strong>NetView</strong> <strong>for</strong> z/<strong>OS</strong> Command Reference Volume 2 (O-Z) or the <strong>NetView</strong><br />

online help <strong>for</strong> more in<strong>for</strong>mation about the DSIVSAM command.<br />

Using the AUTOTOKE Value Provided by DSIVSAM<br />

An AUTOTOKE value is set by the data services task (DST) whenever the VSAM<br />

file is opened or closed. This value is provided in all messages issued by<br />

DSIVSAM, and can be retrieved using the AUTOTOKE() REXX function, or in the<br />

output of the DSIVSAM INQUIRE command. If you need to determine that the<br />

VSAM file has not been closed or opened since you last did I/O to it, do the<br />

following:<br />

1. Use DSIVSAM INQUIRE to retrieve and save the value from the INQUIRE<br />

message text.<br />

2. Check the AUTOTOKE value after issuing DSIVSAM commands. If the value is<br />

the same as the saved value, the data set was neither closed nor opened since<br />

the last access.<br />

Chapter 7. REXX Access to VSAM Files 343

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

Saved successfully!

Ooh no, something went wrong!