pub struct Open {
pub mode: OpenMode,
pub format: Format,
pub page: Option<Page>,
pub assigned: Option<String>,
/* private fields */
}Fields§
§mode: OpenMode§format: Format§page: Option<Page>The logical page of a LINAGE file opened OUTPUT or EXTEND.
assigned: Option<String>The DD a file whose ASSIGN names a data item was opened on.
Implementations§
Source§impl Open
impl Open
pub fn keyed(&mut self) -> Option<&mut Keyed>
pub fn is_keyed(&self) -> bool
Sourcepub fn mark_open(&mut self, data_set: &Path) -> Result<()>
pub fn mark_open(&mut self, data_set: &Path) -> Result<()>
Marks the VSAM data set this file holds open for output until CLOSE (open_mark).
pub fn read(&mut self, fixed_len: usize) -> Result<Record>
pub fn write(&mut self, bytes: &[u8]) -> Result<()>
Sourcepub fn print(
&mut self,
before: Option<Move>,
line: &str,
after: Option<Move>,
) -> Result<()>
pub fn print( &mut self, before: Option<Move>, line: &str, after: Option<Move>, ) -> Result<()>
Writes a line to a text DD where a printer would put it: after before, over a line not
yet ended when nothing moved the paper (after a carriage return, unless one of the two is
blank), then after. The first line of the DD takes one line of before as its own start,
as a printer at the top of a form prints a single-spaced first line on line 1.
pub fn close(self) -> Result<()>
Sourcepub fn abandon(self) -> Result<()>
pub fn abandon(self) -> Result<()>
Ends the file as an abend that Language Environment is not told of leaves it: its records are
written as CLOSE writes them, and a VSAM data set keeps its open mark
(numeric::assumptions::TRAP_OFF_LEAVES_FILES_OPEN).