Portal | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Mainframe jcl job with href links not working

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Mainframe jcl job with href links not working
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:
https://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: 8555
Location: Dubuque, Iowa, USA

PostPosted: Sat Aug 29, 2020 12:54 am    Post subject: Reply to: Mainframe jcl job with href links not working
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: 2404
Location: Hampshire, UK

PostPosted: Sat Aug 29, 2020 2:22 am    Post subject: Reply to: Mainframe jcl job with href links not working
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    Post subject: Reply to: Mainframe jcl job with href links not working
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts A very ingenious mainframe automation... hefiproject.de CA Products 1 Thu Aug 13, 2020 2:59 pm
No new posts How to Assign a Function key to Mainf... upendrasri TSO/ISPF 4 Sat May 30, 2020 9:03 pm
No new posts Mainframe ISPREDIT Macro query upendrasri TSO/ISPF 3 Wed May 27, 2020 1:12 pm
No new posts Mainframe ASSEMBLER LEARNING MANUAL w... upendrasri PL/I & Assembler 2 Tue May 05, 2020 11:42 am
No new posts Typing the CENT sign ยข on mainframe,... Rod Hittle All Other Mainframe Topics 2 Wed Apr 15, 2020 7:06 pm

Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us