IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SMTP BATCH


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
krunalbafna
Warnings : 1

Active User


Joined: 18 Jan 2010
Posts: 143
Location: Pune

PostPosted: Thu Apr 12, 2012 9:27 am
Reply with quote

Hi,
I am using SMTPBTCH to send my email using JCL.
The subject line is of length longer than i can be specified.

when i tried putting in next line as:
/* PROVIDE THE SUBJECT LINE OF THE EMAIL. */
/********************************************************************/
'TREEN TRAP SCHEDULED Liability OWNERS SUPPLEMENTARY FILE -'
'FROM BRAZ.'

I am getting Maxcc=1 and it is showing command FROM BRAZ not recognized.

Is it possible to have subject of any number of line we want as a programer.

Regards,
Krunal
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1744
Location: Tirupur, India

PostPosted: Thu Apr 12, 2012 10:00 am
Reply with quote

SMTPBTCH - Is it a proc provided by IBM?
Could anyone please provide a link of more information about it?

Thanks,
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Thu Apr 12, 2012 11:59 am
Reply with quote

if it were <formally> provided by IBM it would be <formally> documented in the manuals
if it was simply IBM provided as a sample snippet in a <samplib> or <proclib> library
usually the <samples> are pretty well self documenting.
Back to top
View user's profile Send private message
Dsingh29

Active User


Joined: 16 Dec 2008
Posts: 132
Location: IBM

PostPosted: Thu Apr 12, 2012 12:24 pm
Reply with quote

Just a little bit of trial and error and you are there !!


Code:
SUBJECT 'TREEN TRAP SCHEDULED LIABILITY OWNERS SUPPLEMENTARY FILE+   
         FROM BRAZ' -                                               


Code:
SUBJECT 'TREEN TRAP SCHEDULED LIABILITY OWNERS SUPPLEMENTARY FILE - 
         FROM BRAZ' -                                               


Both worked just fine for me.
Back to top
View user's profile Send private message
krunalbafna
Warnings : 1

Active User


Joined: 18 Jan 2010
Posts: 143
Location: Pune

PostPosted: Thu Apr 12, 2012 12:27 pm
Reply with quote

I shall try above approach.
In between I have another issue the attachment name we provide can be in the fromat:
IN_FILE_MMDDYYYY.txt
where MMDDYYYY is picked up at the time of execution.

Regards
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1744
Location: Tirupur, India

PostPosted: Thu Apr 12, 2012 12:28 pm
Reply with quote

I searched the SYS1.SAMPLIB and SYS1.PROCLIB but unable to find SMTPBTCH there.

On this link www-01.ibm.com/support/docview.wss?uid=isg1PK75100
SMTPBTCH module was mentioned, So I assumed it was IBM supplied program/proc. But unable more documentation about it.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Thu Apr 12, 2012 12:35 pm
Reply with quote

the smtpbatch module was mentioned, but it looks like You did not read carefully the whole document.

Quote:
These errors are a result of some faulty logic in the ReadCCW
routine in SMTPBTCH PASCAL.


the apar applies to z/VM. is pretty old
Quote:
APAR Information
APAR numberPK75100
Reported component nameTCP/IP V2 FOR V
Reported component ID5735FAL00
Reported release530
StatusCLOSED PER
PENoPE
HIPERNoHIPER
Special AttentionNoSpecatt
Submitted date2008-11-05
Closed date2009-02-02


and relates to the z/VM SMTP SERVER side
not to zOS and user related stuff.
Back to top
View user's profile Send private message
krunalbafna
Warnings : 1

Active User


Joined: 18 Jan 2010
Posts: 143
Location: Pune

PostPosted: Thu Apr 12, 2012 12:35 pm
Reply with quote

Hi Dave:
Both approach u have mentioned is casing probelm:
********************************* TOP OF DATA *************
371 +++ FROM AMOD' -
371 +++ INTERPRET INTCMD
Error running SMTPBTCH, line 371: Unmatched "/*" or quote
READY
END

My subject line i have mentioned is:
SUBJECT='TREEN TRAP SCHEDULED LIABILITY OWNERS SUPPLEMENTARY FILE -
FROM BRAZ' -

I tried with + and SUBJECT also but not working.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Apr 12, 2012 12:37 pm
Reply with quote

Are you doing something with rexx?
Back to top
View user's profile Send private message
krunalbafna
Warnings : 1

Active User


Joined: 18 Jan 2010
Posts: 143
Location: Pune

PostPosted: Thu Apr 12, 2012 12:37 pm
Reply with quote

No, I am doing anything with REXx
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1744
Location: Tirupur, India

PostPosted: Thu Apr 12, 2012 12:41 pm
Reply with quote

@Enrico Thanks for your thoughts. Yes I did not read it properly.
Back to top
View user's profile Send private message
Dsingh29

Active User


Joined: 16 Dec 2008
Posts: 132
Location: IBM

PostPosted: Thu Apr 12, 2012 12:44 pm
Reply with quote

try cdate in your attachment name
Code:
&CDATE
replaced by current date yyyymmdd



and i am noticing "=" in your subject , try removing that.
Back to top
View user's profile Send private message
krunalbafna
Warnings : 1

Active User


Joined: 18 Jan 2010
Posts: 143
Location: Pune

PostPosted: Thu Apr 12, 2012 12:53 pm
Reply with quote

Hi dave,
I tried using without = sign also
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Thu Apr 12, 2012 1:33 pm
Reply with quote

Quote:
I am using SMTPBTCH to send my email using JCL.
The subject line is of length longer than i can be specified.


tell nothing useful to help
SMTPBTCH is some local ( to your environment ) procedure

ask Your support about it

and read the manuals on the length limits for the different tokens

at first glance, depending naturally on the tool being used, it might be simply using the wrong continuation style


Quote:
I am getting Maxcc=1 and it is showing command FROM BRAZ not recognized.


I confirm a wrong continuation style
the bolded part of the quoted sentence implies that TSO is interpreting the FROM BRAZ as a command

try to use something like
'TREEN TRAP SCHEDULED Liability OWNERS SUPPLEMENTARY FILE -' -
'FROM BRAZ.'

or

'TREEN TRAP SCHEDULED Liability OWNERS SUPPLEMENTARY FILE -' +
'FROM BRAZ.'

one of the two eats up the blanks the other does not, up to you to find in the tso manuals which is which
Back to top
View user's profile Send private message
Dsingh29

Active User


Joined: 16 Dec 2008
Posts: 132
Location: IBM

PostPosted: Thu Apr 12, 2012 2:22 pm
Reply with quote

hi Krunal,

Can you please whole post the control card, you are using.
Back to top
View user's profile Send private message
krunalbafna
Warnings : 1

Active User


Joined: 18 Jan 2010
Posts: 143
Location: Pune

PostPosted: Sun Apr 15, 2012 3:01 pm
Reply with quote

Following is my control card:
TO.0 = 1
TO.1 = 'krunalbaf@gmail.com'
CC.0 = 0
/********************************************************************/
/* TELL THE RECIPIENT WHO THE EMAIL IS FROM: */
/* ===> FOR PRODUCTION JOBS, THE 'FROM' ADDRESS BELOW IS SUGGESTED */
/* BUT A VALID EMAIL RETURN ADDRESS MAY BE SPECIFIED */
/********************************************************************/
FROM = 'Krunalbaf - DO NOT REPLY<krunalbaf@mail.co.in>'

/********************************************************************/
/* IS THE MAIN TEXT OF THE EMAIL IN "HTML" OR "TEXT" FORMAT */
/* (THE EMAIL MAIN TEXT FILE IS INPUT ON THE PROC'S //MAILTEXT DD) */
/********************************************************************/
TYPE = 'TEXT'
FILENAME.0 = 1
FILENAME.1 = 'kruanl.PDS'
PCFILENM.1 = 'TIME_BRAZ_DATA.TXT'
Back to top
View user's profile Send private message
krunalbafna
Warnings : 1

Active User


Joined: 18 Jan 2010
Posts: 143
Location: Pune

PostPosted: Sun Apr 15, 2012 3:03 pm
Reply with quote

TO.0 = 1
TO.1 = 'krunalbaf@gmail.com'
CC.0 = 0
/********************************************************************/
/* TELL THE RECIPIENT WHO THE EMAIL IS FROM: */
/* ===> FOR PRODUCTION JOBS, THE 'FROM' ADDRESS BELOW IS SUGGESTED */
/* BUT A VALID EMAIL RETURN ADDRESS MAY BE SPECIFIED */
/********************************************************************/
FROM = 'Krunal Bafna GROUP - DO NOT REPLY<MAILBaf@MAIL.COM>'

/********************************************************************/
/* IS THE MAIN TEXT OF THE EMAIL IN "HTML" OR "TEXT" FORMAT */
/* (THE EMAIL MAIN TEXT FILE IS INPUT ON THE PROC'S //MAILTEXT DD) */
/********************************************************************/
TYPE = 'TEXT'
FILENAME.0 = 1
FILENAME.1 = 'PDS file name'
PCFILENM.1 = 'TIME_BRAZ_DATA.TXT'
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Sun Apr 15, 2012 3:35 pm
Reply with quote

You were asked
Quote:
Are you doing something with rexx?

You replied
Quote:
No, I am doing anything with REXx


but the Your last two posts contradict You
those are not control cards are REXX statements to assign some values to some variables

posting contadictory replies and data makes everybody waste time icon_evil.gif
just take a decision
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts MacKinney Batch to CICS upgrade causi... CICS 7
No new posts Run rexx in batch job CLIST & REXX 7
No new posts Excuting store procedure via JCL batch JCL & VSAM 1
No new posts SORT on detail record, then repeat he... DFSORT/ICETOOL 3
No new posts batch SFTP job using AOPBATCH unable ... All Other Mainframe Topics 7
Search our Forums:

Back to Top