MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Erroring out while invoking AOPPRINT for mailing

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
mf_learner
Beginner


Joined: 04 May 2006
Posts: 11
Topics: 4

PostPosted: Wed May 24, 2006 3:37 am    Post subject: Erroring out while invoking AOPPRINT for mailing Reply with quote

Hi,

I am using AOPPRINT as in the below JCL for emailing a file to users defined instream in the JCL itself.

Code:


//STEP0100 EXEC AOPPRINT,PRINTER='mail',     
// OPTIONS='attributes=//DD:MYATTR'           
//SYSIN DD DSN=SCNP.TP.COUNTS.TEST01,DISP=SHR
//MYATTR DD *                                 
  mail-to-addresses=('X.Y@z.com')
  mail-cc-addresses=('X.Y@z.com')
  mail-from-name="abcd1234"                   
  mail-reply-address='X.Y@z.com'
  mail-file-name="Counts Report"             
  title-text="My Report"               
/*                                           
//*



where, abcd1234 is the userid by which I am submitting the job.

I am getting the following error in the syserr of the job -

Code:


lp: AOP003E /etc/Printsrv/aopd.conf: EDC5129I No such file or directory.



The proc AOPPRINT is resolving and executing the program AOPBATCH in turn (I checked this out in the Jes Spool) like below -

Code:


//STEP0100 EXEC AOPPRINT,PRINTER='mail',                             
// OPTIONS='attributes=//DD:MYATTR'                                   
XX*-------------------------------------------------------------------
XX* AOPPRINT - OS/390 Print Server batch print procedure             
XX*-------------------------------------------------------------------
XXAOPPRINT PROC PRINTER='p1',OPTIONS=,OUTCLASS='*',ERRCLASS='*'       
XXLP       EXEC PGM=AOPBATCH,                                         
XX PARM='/lp -d &PRINTER -o "&OPTIONS" //DD:SYSIN'                   
IEFC653I SUBSTITUTION JCL - PGM=AOPBATCH,PARM='/lp -d mail -o "attribu
XXSTDOUT   DD   SYSOUT=&OUTCLASS                                     
IEFC653I SUBSTITUTION JCL - SYSOUT=*                                 
XXSTDERR   DD   SYSOUT=&ERRCLASS                                     
XX* STDENV may point to a dataset containing environment variables.   
XX*        Builtin values will work for the default installation.     
XX*STDENV   DD   DSN=USERID.JCL(ENVVARS),DISP=SHR                     
IEFC653I SUBSTITUTION JCL - SYSOUT=*                                 
//SYSIN DD DSN=m.n.repfile,DISP=SHR                         
//MYATTR DD *                                                         
//*     
                                                                               


Could anyone please throw some light on this and how to fix this ?
_________________
Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group