tvssv Beginner
Joined: 11 Mar 2009 Posts: 58 Topics: 25
|
Posted: Sun Oct 11, 2020 4:16 am Post subject: Need to send an email based on content in sysprint in sdsf |
|
|
Hi,
I have the below code.
Code: |
//step1 EXEC PGM=program name,REGION=2M
//*
//input1 DD DSN=input file 1,DISP=SHR
//input2 DD DSN=input file 2,DISP=SHR
//output DD DSN=output dataset,DISP=(,CATLG),
// RECFM=FB,LRECL=200,STORCLAS=SCPRIME,
// DATACLAS=LARGE
//*
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//PLIDUMP DD SYSOUT=*
//*
|
Ouput in the SYSPRINT will be
Code: |
EC_TABLE SIZE = 32
INVALID TAG = HB
INVALID RECORD NUMBER = 15087
RECORDS MATCHED & MODIFIED = 0
TOTAL RECORDS PROCESSED = 159160
VALID RECORDS = 159159
INVALID RECORDS = 1
|
My requirement is, if INVALID RECORDS is greater than 0, I need to send an email with the contents in SYSPRINT (All the above mentioned lines).
Is it possible with JCL to read the SYSPRINT contents and sending an email. Please help.
Thanks. _________________ Thanks
TVSSV |
|