Appears that you need to set which PROFILE is being used prior to doing the SMTPNOTE
PROFILE PREFIX(ID2BUSED) SMTPNOTE .......... ___________________________________________ Jim Petersen MVS - Lead Systems Engineer Home Depot Technology Center 1300 Park Center Drive, Austin, TX 78753 www.homedepot.com email:[email protected] 512-977-2615 direct 512-977-2930 fax 210-859-9887 cell phone -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Mueller, David Sent: Thursday, November 04, 2010 10:26 AM To: [email protected] Subject: SMTP send problem We have a batch job that is failing to send the SMTP email we want it to send. We have a number of other batch jobs that are working just fine in this regard. Unlike the working jobs, which are submitted by our job-scheduler, this one is submitted via a CICS transaction using a TD queue. The CICS-region's authority user-ID has authority through a profile in the SURROGAT class to submit the job using the FIDUFLX1 ID (a functional or non-personal ID) that is supposed to run the batch job. The JCL and control cards for the job, as submitted, are: //SUBUBF1H JOB 021210F00210P,H,CLASS=G,MSGCLASS=U,USER=FIDUFLX1 //STEP00 EXEC PGM=IEFBR14 //DD1 DD DSN=UN.UB.PD.UBCUBF1.MAIL,UNIT=(,,DEFER), // DISP=(MOD,DELETE,DELETE),SPACE=(CYL,1) //STEP01 EXEC PGM=SYNCSORT //STEPLIB DD DSNAME=SYS1.SORTLIB,DISP=SHR //SORTIN DD * -- in-stream message records to go into the *.UBCUBF1.MAIL -- -- dataset to indicate the nature of the problem -- //SORTOUT DD DSNAME=UN.UB.PD.UBCUBF1.MAIL,DISP=(NEW,CATLG,DELETE), // SPACE=(TRK,(1,1),RLSE),UNIT=DISK, // DCB=(RECFM=FB,LRECL=80,BLKSIZE=4080) //SORTWK01 DD UNIT=DISK,SPACE=(CYL,(55)) //SYSIN DD DSN=U.SCHDP.CNTRL(RUSRFDMP),DISP=SHR <-- (this is just a file copy) //SYSOUT DD SYSOUT=* //SYSPRINT DD SYSOUT=* //STEP02 EXEC PGM=IKJEFT01,DYNAMNBR=20 //SYSPROC DD DISP=SHR,DSN=SYSTEMS.PROD.SYSEXEC //SYSTSPRT DD SYSOUT=* //SYSTSIN DD * <-- in-stream control cards as follows SMTPNOTE BATCH - SUBJECT(' ERROR IN PARAGRAPH GET-WAGES (UBF1) <-- or some other subject statement ') - DATASET('UN.UB.PD.UBCUBF1.MAIL') - TO([email protected]) BATCH /* /*EOF I do note that the control statements have the word 'BATCH' present twice, first immediately after the "SMTPNOTE" parameter, and again after the email address. I am not sure if this is connected to the problem or not. The job's run-authority ID (FIDUFLX1) has an alias to a user-catalog, since our experience has shown that this is needed for at least one dataset that SMTP allocates. The results from the 'STEP02' job-step are: READY SMTPNOTE BATCH SUBJECT(' ERROR IN PARAGRAPH GET-WAGES (UBF1) ') DATASET('UN.UB.PD.UBCUBF1.MAIL') TO([email protected]) BATCH EZA5580E UNABLE TO DELETE TEMPORARY DATASET '.SMTPPR.TEMP.TEXT' READY SMTPPR is the name of our mainframe SMTP started task. Please note that the temporary dataset it is attempting to delete is '.SMTPPR.TEMP.TEXT' and is lacking a high-level-qualifier, which is the obvious reason why the temporary dataset cannot be built or deleted. As far as I can tell, everything for this job's ID is set up the same as for the IDs whose (normal) batch jobs are successfully sending SMTP emails. Any ideas on what I am overlooking or missing??? David Mueller | Systems Programmer SSRC (Southwood Shared Resource Center) 4070 Esplanade Way, Room 360D Phone: 850-414-9134 || Fax: 850-488-3600 E-mail: [email protected] Please Note: Florida has a very broad public records law. Most written communications to or from state officials regarding state business are public records available to the public and media upon request. Your e-mail communications may therefore be subject to public disclosure. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html The information in this Internet Email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this Email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this Email are subject to the terms and conditions expressed in any applicable governing The Home Depot terms of business or client engagement letter. The Home Depot disclaims all responsibility and liability for the accuracy and content of this attachment and for any damages or losses arising from any inaccuracies, errors, viruses, e.g., worms, trojan horses, etc., or other items of a destructive nature, which may be contained in this attachment and shall not be liable for direct, indirect, consequential or special damages in connection with this e-mail message ! or its attachment. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

