Write from the Stack



Records can be written from a STEM variable, a numerical sequence of variables, or from the Stack, and while the former is the most common, here the use of the stack is discussed.

Opposite are links to ways in which EXECIO DISKW could be used

Write records from the Data Stack (z/OS) or Program Stack (z/VM).



z/OS

 

z/VM

 

Write all records individually

In this example EXECIO DISKW is executed once for each record to be written.

Writing all records together

In this example all the data on the stack is to be written to the file.

Writing the few few records

In this example only the first 10 stacked records are written to the file.

 

Write all records individually

In this example EXECIO DISKW is executed once for each record to be written.

Writing all records together

In this example all the data on the stack is to be written to the file.

Writing the few few records

In this example only the first 10 stacked records are written to the file.

Copyright © Legac-e Education 2015-