Hi gabriel
sending reports to for instance email is contolled via OPTION statements. You can specify these either globally, so before a newlist statement or inside one. In that case they are effective for that specific query.
so in your case it would look something like this.
ALLOC TYPE=OUTPUT DSN=GABRIEL.REPORT2 DD=REPORT2
NEWLIST TYPE=RACF DD=C2REMAIL
SELECT CLASS=USER SEGMENT=BASE
option smtpclass=B smtpwriter=SMTP smtpatsign=@,
outputformat=emaildefault,
mt=`rene_van_til@nl.ibm.com`,
from=`me@me.com`,
mfs=1
SORTLIST KEY(8) NAME CONNECTS
NEWLIST TYPE=RACF DD=REPORT2
SELECT CLASS=USER SEGMENT=BASE
SORTLIST KEY(8) NAME CONNECTS
an easy way to get the correct OPTION statement is to run a normal report. for instance RA.U and then select send it via email. After doing that have a look at the SYSPRINT and you wll see the OPTION statement like in the sample above generated by the zSecure UI. You can copy that.
hope this helps
cheers
------------------------------
RENE van TIL
------------------------------
Original Message:
Sent: Thu August 12, 2021 09:07 AM
From: Gabriel Vicoso Amaral
Subject: How to send the same CARLa report to: 1- E-mail 2- Dataset
You guys show me how to code a CARLa to send the same report to two different outputs. Something like that:
ALLOC TYPE=OUTPUT DSN=GABRIEL.REPORT1 DD=REPORT1
ALLOC TYPE=OUTPUT DSN=GABRIEL.REPORT2 DD=REPORT2
NEWLIST TYPE=RACF DD=REPORT1
SELECT CLASS=USER SEGMENT=BASE
SORTLIST KEY(8) NAME CONNECTS
NEWLIST TYPE=RACF DD=REPORT2
SELECT CLASS=USER SEGMENT=BASE
SORTLIST KEY(8) NAME CONNECTS
Now the customer wants to send one via e-mail and the other recording in a file.
Question: How can I send the same CARLa report to e-mail and to a file.
------------------------------
Gabriel Vicoso Amaral
------------------------------