Hi Ollivier
Here is a sample of the step. Note the purpose is to have a message sent out to the job under a special DD output name. So in using the IDCAMs the input is some text files with the information, which that DD can be named whatever. Then the output is named whatever, in this case SSAERROR. So when the person see their output of their job if they see any SSAERROR then they know to go directly to that.
Example:
//STEPNAME EXEC PGM=IDCAMS,COND=((16,NE,SCANDECK),(16,EQ,SCANMODE)),
// EXECIF=(&C1STGNUM,EQ,1)
//SYSPRINT DD SYSOUT=*
//ENDVI DD DSN=&&TMPPARM,DISP=(OLD,PASS)
// DD DISP=SHR,DSN=#6580.ENDVR.MESSAGES(AST)
// DD DISP=SHR,DSN=#6580.ENDVR.MESSAGES(NAME)
// DD DISP=SHR,DSN=#6580.ENDVR.MESSAGES(AST)
//SSAERROR DD SYSOUT=*
//SYSIN DD *
REPRO -
INFILE(ENDVI) -
OUTFILE(SSAERROR)
/*
//*
Another example...
//NAMERROR EXEC PGM=IDCAMS,
// COND=((8,NE,NAMESRCH),(16,EQ,SCANDECK)),
// EXECIF=(&C1STGID,EQ,&STGID)
//SYSPRINT DD SYSOUT=*
//ENDVI DD DSN=&&TMPPARM,DISP=(OLD,PASS)
// DD DISP=SHR,DSN=#6580.ENDVR.MESSAGES(AST)
// DD DISP=SHR,DSN=#6580.ENDVR.MESSAGES(NOTREGLD)
// DD DISP=SHR,DSN=#6580.ENDVR.MESSAGES(AST)
//SSAWARN DD SYSOUT=*
//SYSIN DD *
REPRO -
INFILE(ENDVI) -
OUTFILE(SSAWARN)
/*
//*
Example of the output list from a test run:
C1MSGS1 NDVRBAT
C1MSGS2 NDVRBAT
ELEMNTF2 NDVRBAT
ELEMNTF3 NDVRBAT
ELEMNTF4 NDVRBAT
ELEMNTF5 NDVRBAT
JESJCL
JESMSGLG
JESYSMSG
SSAERROR NDVRBAT
SSAERROR NDVRBAT
SSAERROR NDVRBAT
SSAWARN NDVRBAT
SSAWARN NDVRBAT
Example of the message:
----+----1----+----2----+----3----+----4----+----5----+----6----+----7--
ELEMENT: GLENNF5
- SYSTEM: TEST SUBSYSTEM: TRYIT STAGE: DEV
- TYPE: LINKEDIT PG: BCXX
***********************************************************************
THIS MESSAGE IS PRINTED FOR ONE OF TWO REASONS;
EITHER:
NAME CARD IN CONTROL MODULE ELEMENT EITHER MISSING OR
DOES NOT START IN COLUMN 2; PLEASE CORRECT AND UPDATE ELEMENT
OR:
A ++INCLUDE IN YOUR CONTROL MODULE COULD NOT BE RESOLVED; BROWSE THE
C1MSGS1 DD IN THE OUTPUT FOR ERRORS THAT OCCURRED DURING THE "WRITE"
STEP AND ENSURE THAT ALL REQUIRED OBJECT MODULES EXIST IN YOUR
SYSTEM/SUBSYSTEM OBJECT LIBRARY.
***********************************************************************
Hope you find use for this.