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 

Sending Email thru JCL wid PS file contents as body of email
Goto page Previous  1, 2
 
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
m.vinay kumar
Beginner


Joined: 02 Jun 2015
Posts: 7
Topics: 2

PostPosted: Wed Jun 03, 2015 1:43 am    Post subject: LRECL of PS to be sent is >80 ??? Reply with quote

Can you please post the JCL if LRECL of PS is Greater than 80. ??
_________________
Vinay Kumar
Back to top
View user's profile Send private message
m.vinay kumar
Beginner


Joined: 02 Jun 2015
Posts: 7
Topics: 2

PostPosted: Wed Jun 03, 2015 1:46 am    Post subject: Reply with quote

If the report generated is having RECFM=FB and LRECL>80 ..this is not working.
Please give me another JCL for LRECL>80 ..
_________________
Vinay Kumar
Back to top
View user's profile Send private message
m.vinay kumar
Beginner


Joined: 02 Jun 2015
Posts: 7
Topics: 2

PostPosted: Wed Jun 03, 2015 1:51 am    Post subject: JCL for Sending PS as Mail content Reply with quote

What would be the JCl if RECFM =FB and LRECL>80 for PS content to be sent as a Mail ??
_________________
Vinay Kumar
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12358
Topics: 75
Location: San Jose

PostPosted: Wed Jun 03, 2015 10:58 am    Post subject: Reply with quote

m.vinay kumar,

Please do NOT send in emails seeking help. We will respond to your queries on the helpboards itself as and when we get to it.

Show us the JCL that you tried with LRECL > 80. it should like this assuming that you have 133 byte report.

Code:

/SYSUT1   DD DISP=SHR,DSN=Your 133 byte mail address list file
//         DD DISP=SHR,DSN=Your 133 byte Report file

_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
m.vinay kumar
Beginner


Joined: 02 Jun 2015
Posts: 7
Topics: 2

PostPosted: Thu Jun 04, 2015 1:14 am    Post subject: Reply with quote

Now I am getting CC0000 without DCB parameters conflict error log.
But I'm receiving mail without any attachment as below.

Unable to deliver mail to some/all recipients.
Code:

050 DATA                                                                    00000400
501 Syntax Error. No Args after 'DATA' command
050 SUBJECT:TEST MESSAGE FROM MVS USING SMTP                                00000500
500 Unknown command, 'SUBJECT'
050 VINAY KUMAR KUMARVI.IEFBER14.JCL
500 Unknown command, 'VINAY'
050 
500 Unknown command, ''

           ** Text of Mail follows **
HELO MVSHOST                                                            00000100
MAIL FROM:<VINAY.KUMAR***.COM>                                         00000200
RCPT TO:<VINAY.KUMAR3***.COM>                                           00000300
DATA                                                                    00000400
SUBJECT:TEST MESSAGE FROM MVS USING SMTP                                00000500
VINAY KUMAR KUMARVI.IEFBER14.JCL


jcl:
Code:

//SMTPTEST JOB  ACCT,'VINAY',MSGCLASS=X,CLASS=B,NOTIFY=&SYSUID
//SENDNOTE EXEC PGM=IEBGENER
//SYSIN    DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT2   DD SYSOUT=(B,SMTP)
//SYSUT1   DD DSN=KUMARVI.TEST.TEST,DISP=SHR
//         DD DSN=KUMARVI.IEFBER14.JCL,DISP=SHR

KUMARVI.TEST.TEST content :

000100 HELO MVSHOST
000200 MAIL FROM:<VINAY.KUMAR3**.COM>
000300 RCPT TO:<VINAY.KUMAR3**.COM>
000400 DATA
000500 SUBJECT:TEST MESSAGE FROM MVS USING SMTP

KUMARVI.IEFBER14.JCL Content:

VINAY KUMAR KUMARVI.IEFBER14.JCL

Please check and correct my error

_________________
Vinay Kumar
Back to top
View user's profile Send private message
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Thu Jun 04, 2015 8:16 am    Post subject: Reply with quote

Vinay,
Please learn how to use the Code tags. I see that you've tried but weren't completely successful.
Code:
Click Code, paste your code, then click Code again, and your code should end up in the correct place. Click Preview before hitting Submit.

_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
m.vinay kumar
Beginner


Joined: 02 Jun 2015
Posts: 7
Topics: 2

PostPosted: Thu Jun 04, 2015 9:30 am    Post subject: Reply with quote

Yes Terry, Thanks for your advice.

Please help me for my above query and guide me to overcome that.
_________________
Vinay Kumar
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12358
Topics: 75
Location: San Jose

PostPosted: Thu Jun 04, 2015 10:02 am    Post subject: Reply with quote

m.vinay kumar,

You first need to understand the rules.

1. Do NOT post links from other helpboards. You need to pick one board of your choice (I don't care if it is a competitor board) and if you do not get the answer within reasonable time (8 hours min) then only you can post on this board.

2. As for your problem, try getting rid off the Line numbers in columns 72 thru 80 and rerun your job.
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Vinay Kumar M
Beginner


Joined: 02 Jun 2015
Posts: 12
Topics: 6

PostPosted: Wed Jun 24, 2015 2:48 am    Post subject: Reply with quote

Hi Kolusu

Thanks a lot. Its working Very Happy
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
Goto page Previous  1, 2
Page 2 of 2

 
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