View previous topic :: View next topic
|
Author |
Message |
steven bynum
New User
Joined: 30 Apr 2020 Posts: 4 Location: united states
|
|
|
|
I have a jcl that send emails. The email has a href in the body. the href is greater than 80 characters, so it is on multiple lines.
When I receive the email and click on the href, the page comes up not found.
The reason is after each line with the link it add a carriage return character. How do I stop the jcl from enter the carriage return character in the link
link EX:
atyourservice.verizon.com/aysid=ays_kb%0D_article&number=kb0026570
JCL example:
//ACDJxxxxx JOB (x,xxxxxx,xxxxx),'EM E-MAILS',
// CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1),USER=xxxxxxxx
//*
/*JBS BIND DB2DA01.UP
/*ROUTE PRINT LOCAL
//*
//CORPANYD JCLLIB ORDER=(xxxxxxx.PROCLIB)
//*
//*
//*
//*********************************************************************
//** SEND E-MAIL TO DA FOR TRANSFERS **
//*********************************************************************
//SENDLAN EXEC EMAIL
//SYSUT2 DD SYSOUT=(B,SMTP)
//SYSUT1 DD *
HELO S7TCP.SANYIN.xxxxx.xxxxxxx.COM
MAIL FROM: <DONOTREPLY@xxxxxxxx.COM>
RCPT TO: <DEBBIE.xxxxxx@ONE.xxxxxxx.COM>
RCPT TO: <STEVEN.xxxxxx@ONE.xxxxxxxx.COM>
DATA
TO: <DEBBIE.xxxxxxx@ONE.xxxxxx.COM>,
CC: <STEVEN.xxxxx@ONE.xxxxxxxx.COM>
SUBJECT:Employee Movement: Action required to maintain
ERRORS-TO: <security.mainframe@one.xxxxxxxxxx.com>
MIME-VERSION: 1.0
CONTENT-TYPE: TEXT/HTML; CHARSET=US-ASCII
CONTENT-DISPOSITION: INLINE
<HTML>
jcl body example:
Directions on how to log into <b>mACCESS</b> and submit a RACF CHANGE REQUEST
can be found <a href="https://atyourservice.verizon.com/ays?id=ays_kb_article&nu
mber=kb0026570">HERE</A>. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Instead of using //SYSUT1 DD * why not put the email into a data set and point //SYSUT1 DD to that data set? Then you can have up to 998 characters per line (which is the limit for SMTP); if your URL is longer than 998 characters then you have problems. This may require changes to whatever process is creating the SMTP statements. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
As this is nothing to do with mainframe job vacancies I have moved it. |
|
Back to top |
|
|
steven bynum
New User
Joined: 30 Apr 2020 Posts: 4 Location: united states
|
|
|
|
Thanks.... that work |
|
Back to top |
|
|
|