View previous topic :: View next topic
|
Author |
Message |
krunalbafna Warnings : 1 Active User
Joined: 18 Jan 2010 Posts: 143 Location: Pune
|
|
|
|
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 |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1744 Location: Tirupur, India
|
|
|
|
SMTPBTCH - Is it a proc provided by IBM?
Could anyone please provide a link of more information about it?
Thanks, |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
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 |
|
|
Dsingh29
Active User
Joined: 16 Dec 2008 Posts: 132 Location: IBM
|
|
|
|
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 |
|
|
krunalbafna Warnings : 1 Active User
Joined: 18 Jan 2010 Posts: 143 Location: Pune
|
|
|
|
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 |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1744 Location: Tirupur, India
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
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 |
|
|
krunalbafna Warnings : 1 Active User
Joined: 18 Jan 2010 Posts: 143 Location: Pune
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Are you doing something with rexx? |
|
Back to top |
|
|
krunalbafna Warnings : 1 Active User
Joined: 18 Jan 2010 Posts: 143 Location: Pune
|
|
|
|
No, I am doing anything with REXx |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1744 Location: Tirupur, India
|
|
|
|
@Enrico Thanks for your thoughts. Yes I did not read it properly. |
|
Back to top |
|
|
Dsingh29
Active User
Joined: 16 Dec 2008 Posts: 132 Location: IBM
|
|
|
|
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 |
|
|
krunalbafna Warnings : 1 Active User
Joined: 18 Jan 2010 Posts: 143 Location: Pune
|
|
|
|
Hi dave,
I tried using without = sign also |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
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 |
|
|
Dsingh29
Active User
Joined: 16 Dec 2008 Posts: 132 Location: IBM
|
|
|
|
hi Krunal,
Can you please whole post the control card, you are using. |
|
Back to top |
|
|
krunalbafna Warnings : 1 Active User
Joined: 18 Jan 2010 Posts: 143 Location: Pune
|
|
|
|
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 |
|
|
krunalbafna Warnings : 1 Active User
Joined: 18 Jan 2010 Posts: 143 Location: Pune
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
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
just take a decision |
|
Back to top |
|
|
|