IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

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:
Use [URL] BBCode for Links%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: 8566
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: 2431
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 All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts Proc print in Mainframe All Other Mainframe Topics 4
No new posts Need opinion on mainframe to cloud mi... General Talk & Fun Stuff 4
No new posts FSET not working on my receive CICS 3
No new posts Looking for Mainframe Project Manager Mainframe Jobs 0
No new posts A very ingenious mainframe automation... CA Products 1

Back to Top