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

Mainframe jcl job with href links not working


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
steven bynum

New User


Joined: 30 Apr 2020
Posts: 4
Location: united states

PostPosted: Fri Aug 28, 2020 10:02 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sat Aug 29, 2020 12:54 am
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Sat Aug 29, 2020 2:22 am
Reply with quote

As this is nothing to do with mainframe job vacancies I have moved it.
Back to top
View user's profile Send private message
steven bynum

New User


Joined: 30 Apr 2020
Posts: 4
Location: united states

PostPosted: Mon Aug 31, 2020 6:14 pm
Reply with quote

Thanks.... that work
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts PD not working for unsigned packed JO... DFSORT/ICETOOL 5
No new posts Def PD not working for unsigned packe... JCL & VSAM 3
No new posts Mainframe Programmer with CICS Skill... Mainframe Jobs 0
Search our Forums:

Back to Top