WRITE
| COBOL |
Java |
| EXEC CICS WRITE |
ibmCics.write |
Syntax
ibmCics.write(new WriteOptions()
.fileName(<Filename>)
[.journalName(<JournalName>)]
[.jTypeId(<JTypeId>)]
.from(<From>)
.ridFld(<Ridfld>)
[.length(<Length>)]
[.keySpec(<KeySpec>)]
[.keyLength(<Keylength>)]
[.noHandle(true)]
);
Parameter(s)
<Filename>
The name of the file to write to.
<JournalName>
The name of the journal to write to. If set, the ibmCics.writeJournal function will be called. See WRITE JOURNALNAME/JOURNALNUM.
<JTypeId>
This option is not used for this function.
<From>
The data to be written to the file.
<Ridfld>
The record identification field.
<Length>
Optional length of the data to be written.
<KeySpec>
Optional key specification string, valid values are: "RBA", "RRN" or "XRBA".
<Keylength>
Optional length of the record key.
noHandle
Optional Boolean. If set to true, exceptions created by this command will be ignored.
Example(s)
| COBOL |
Java |
EXEC CICS
WRITE
FILE('CUSTFILE')
FROM(WS-CUSTFILE)
RIDFLD(WS-RIDFLD)
END-EXEC.
|
ibmCics.write(new WriteOptions()
.fileName("CUSTFILE")
.from(locDef.ws_Custfile)
.ridFld(locDef.ws_Ridfld)
);
|