z/OS Communications Server: IP User's Guide and Commands
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Using the IEBGENER utility to copy a mail file to a JES sysout file

z/OS Communications Server: IP User's Guide and Commands
SC27-3662-00

Purpose

Use the IEBGENER utility to copy a previously constructed mail file to the JES spool data set that contains SMTP commands for one or more mail messages for the CSSMTP application to process. See SMTP commands for more information about each SMTP command.

Examples

  • Construct a mail file named userid.MYCSSMTP.NOTE:
    HELO YOURMVS
    MAIL FROM:<CAROL@YOUR.example.COM>
    RCPT TO:<msgs@rsch.example.edu>
    RCPT TO:<alice@ai.example.edu>
    DATA
    Date: Thur, 26 Mar 92 21:48:57 EST
    From: Carol< CAROL@YOUR.example.COM>
    To:   <msgs@rsch.example.edu>
    Cc:   <alice@ai.example.edu>
    Subject: update
    
    
         Mike: Cindy stubbed her toe.  Bobby went to
               baseball camp.  Marsha made the cheerleading team.
               Jan got glasses.  Peter has an identity crisis.
               Greg made dates with 3 girls and couldn't
               remember their names.
    .
    QUIT
  • Create JCL using the IEBGENER utility:
    //jobname  JOB (accounting.information),"programmer.name",CLASS=A,MSGCLASS=A,
    //             NOTIFY=userid
    //COPY    EXEC PGM=IEBGENER
    //SYSPRINT  DD SYSOUT=*
    //SYSIN     DD DUMMY
    //SYSUT1    DD DISP=SHR,DSN=userid.MYCSSMTP.NOTE
    //SYSUT2    DD SYSOUT=(A,CSSMTP1),SPIN=ALLOC
  • Create JCL with inline input for SYSUT1 and SYSUT2 using the IEBGENER utility:
    //jobname  JOB (accounting.information),"programmer.name",CLASS=A,MSGCLASS=A,
    //             NOTIFY=userid
    //COPY    EXEC PGM=IEBGENER
    //SYSPRINT  DD SYSOUT=*
    //SYSIN     DD DUMMY
    //SYSUT1    DD * 
    HELO YOURMVS
    MAIL FROM:<CAROL@YOUR.example.COM>
    RCPT TO:<msgs@rsch.example.edu>
    RCPT TO:<alice@ai.example.edu>
    DATA
    Date: Thur, 26 Mar 92 21:48:57 EST
    From: Carol <CAROL@YOUR.example.COM>
    To:   <msgs@rsch.example.edu>
    Cc:   <alice@ai.example.edu>
    Subject: update
    
    Mike: Cindy stubbed her toe.  Bobby went to
          baseball camp.  Marsha made the cheerleading team.
          Jan got glasses.  Peter has an identity crisis.
          Greg made dates with 3 girls and couldn't
          remember their names.
    .
    QUIT
    //SYSUT2    DD SYSOUT=(A,CSSMTP1),SPIN=UNALLOC
Rules:
  • If necessary, code the DCB attributes on the SYSUT2 DD statement. The following example shows how to code the DCB attributes:
    //SYSUT2 DD SYSOUT=(A,CSSMTP1),DCB=(LRECL=133,BLKSIZE=27930),FREE=CLOSE
    The logical record limit for files is 1024 bytes. The block size limit for files that are placed on the spool file is 32 760.
  • Do not place spanning record files on the spool file for the CSSMTP application to use, because the CSSMTP application does not support these files.
  • Use SPIN=UNALLOC or CLOSE=FREE when you create multiple sysout files in one job. This creates a separate sysout group for each sysout file and prevents CSSMTP from holding or deleting sysout files if one sysout file contains an error.
cssmtp1
The external writer name if the ExtWrtName statement is specified in the CSSMTP application configuration file, or the CSSMTP application address space name if the ExtWrtName statement is not specified in the CSSMTP application configuration file.
userid.MYCSSMTP.NOTE
The SMTP commands data set.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2013
This information center is Built on Eclipse™ ( www.eclipse.org ).