Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SMTP BATCH

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: SMTP BATCH
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: 1445
Location: Azeroth

PostPosted: Thu Apr 12, 2012 10:00 am    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Thu Apr 12, 2012 11:59 am    Post subject: Reply to: SMTP BATCH
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    Post subject: Reply to: SMTP BATCH
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    Post subject:
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: 1445
Location: Azeroth

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

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

On this link http://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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Thu Apr 12, 2012 12:35 pm    Post subject: Reply to: SMTP BATCH
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    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7226

PostPosted: Thu Apr 12, 2012 12:37 pm    Post subject: Reply to: SMTP BATCH
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    Post subject:
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: 1445
Location: Azeroth

PostPosted: Thu Apr 12, 2012 12:41 pm    Post subject:
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    Post subject: Reply to: SMTP BATCH
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    Post subject:
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Thu Apr 12, 2012 1:33 pm    Post subject: Reply to: SMTP BATCH
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    Post subject:
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    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Sun Apr 15, 2012 3:35 pm    Post subject: Reply to: SMTP BATCH
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
This topic is locked: you cannot edit posts or make replies. MIPS reduction for Batch job Virendra Shambharkar All Other Mainframe Topics 8 Mon Nov 07, 2016 4:02 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm
No new posts How to show message using batch jobs madprasy TSO/ISPF 7 Fri Sep 09, 2016 6:55 pm
No new posts Don't allow CICS to submit batch jobs prino JCL & VSAM 5 Mon Jul 25, 2016 3:26 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us