Examples
Example of resource definition commands for CICS JOURNLMODELs.
Given the following set of definitions for a CICS® AOR
with applid CICSHAA3 and region userid CICSHA##:
1. DEFINE JOURNALMODEL(USERJNL8) GROUP(LOGS)
JOURNALNAME(DFHJ08)
TYPE(SMF)Records written to autojournal 08 or user journal 08 using
an EXEC CICS WRITE JOURNALNAME(DFHJ08)… or EXEC CICS WRITE JOURNALNUM(08)…
command are written in SMF format to the MVS™ SMF
data set.
2. DEFINE JOURNALMODEL(USERJNL9) GROUP(LOGS)
JOURNALNAME(DFHJ09)
TYPE(DUMMY)Records written to autojournal 09 or user journal 09 using
an EXEC CICS WRITE JOURNALNAME(DFHJ09)… or EXEC CICS WRITE JOURNALNUM(09)…
command are not written to any log stream, though the application
program receives a normal response.
3. DEFINE JOURNALMODEL(UJ10TO19) GROUP(LOGS)
JOURNALNAME(DFHJ1%)
STREAMNAME(&USERID..MERGED.USRJRNLS)
TYPE(MVS)Records written to user journals 10–19 (DFHJ10–DFHJ19)
are merged together on log stream CICSHA##.MERGED.USRJRNLS, together
with records from any other CICS regions running under the CICSHA##
userid and with the same JOURNALMODELs installed.
4. DEFINE JOURNALMODEL(LOGOFLOG) GROUP(LOGS)
JOURNALNAME(DFHLGLOG)
STREAMNAME(CICSVR.SHARED.DFHLGLOG)
TYPE(MVS)File tie-up records and other records written by file
control and the CICS log manager to journal DFHLGLOG for use
by forward recovery products, such as CICSVR, are written to a shared
log stream CICSVR.SHARED.DFHLGLOG. This log stream is shared by all
the CICS regions in the sysplex in which this JOURNALMODEL resource
definition is installed.
5. DEFINE JOURNALMODEL(JNLMODL1) GROUP(LOGS)
JOURNALNAME(USERJNL*)
STREAMNAME(&USERID..ANYCORP.&JNAME..UK)
TYPE(MVS)Records written to any user journals or autojournals that begin with the letters USERJNL are merged together on a log stream with a name that is obtained by substituting the CICS region userid for &USERID. and the journal name for &JNAME..
With only these examples installed, other forms of journaling, such as terminal control automatic message journaling defined with PROFILE … JOURNAL(25), use the default JOURNALMODEL, with records written to log stream CICSHA##.CICSHAA3.DFHJ25. See The default JOURNALMODEL .