AMT Help Files
Home Development Command Translation CICS Commands WRITE JOURNALNAME/JOURNALNUM

WRITE JOURNALNAME/JOURNALNUM

COBOL Java
EXEC CICS WRITE JOURNALNAME
EXEC CICS WRITE JOURNALNUM
ibmCics.writeJournal

Syntax

ibmCics.writeJournal(new WriteOptions()
  [.fileName(<Filename>)]
  .journalName(<JournalName>)
  .jTypeId(<JTypeId>)
  .from(<From>)
  [.ridFld(<Ridfld>)]
  [.length(<Length>)]
  [.keySpec(<KeySpec>)]
  [.keyLength(<Keylength>)]
  [.noHandle(true)]
);

Parameters

<Filename>
This option isn't used for this function.
<JournalName>
The name or number of the journal to write to.
<JTypeId>
ID to be placed in the journal record identifying its origin.
<From>
The data to be written to the journal.
<Ridfld>
This option isn't used for this function.
<Length>
Optional length of the data to be written.
<KeySpec>
This option isn't used for this function.
<Keylength>
This option isn't used for this function.
noHandle
Optional Boolean. If set to true, exceptions created by this command will be ignored.

Examples

COBOL Java
EXEC CICS
    WRITE
        JOURNALNUM(21)
        JTYPEID   ('ES')
        FROM      (WS-DATA)
        LENGTH    (256)
END-EXEC.
                
ibmCics.writeJournal(new WriteOptions()
  .journalName(21)
  .jTypeId("ES")
  .from(locDef.ws_Data)
  .length(256)  
);
                
EXEC CICS
    WRITE
        JOURNALNAME('ACCTSJNL')
        JTYPEID   ('XX')
        FROM      (WS-DATA)
        LENGTH    (256)
END-EXEC.
                
ibmCics.writeJournal(new WriteOptions()
  .journalName("ACCTSJNL")
  .jTypeId("XX")
  .from(locDef.ws_Data)
  .length(256) 
);
                

Contents

 Go to top