JCL to Send SMS to Mobile

How to send SMS to mobile using only JCL (no REXX or other language)?
Write a JCL code to trigger an email whenever a JOB failed with “JCL ERROR”.

Questions by abhaykothiyal

Showing Answers 1 - 6 of 6 Answers

ramalingam

  • Oct 12th, 2016
 

/**********************************************************************
//STEP0001 EXEC PGM=IEBGENER
//**********************************************************************
//*$ SEND SMS TO A MOBILE *
//**********************************************************************
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT2 DD SYSOUT=(B,SMTP),DEST=(RNE)
//SYSUT1 DD *
HELLO HOST
MAIL FROM:XYZ@HOTMAIL.COM
RCPT TO:< mobile number >@< cellular service provider domain >
DATA
SUBJECT: TEST SPREADSHEET
MIME-VERSION: 1.0
CONTENT-DISPOSITION: ATTACHMENT;FILENAME="TEST file type"
CONTENT-TYPE: TEXT/PLAIN
/*

  Was this answer useful?  Yes

MOHAMMAD AKIM HASSAN

  • Nov 29th, 2016
 

Thanks for this code Ramalingam. The code goes with MAXCC 00, however the message is not being received on the mobile. Is there anything else which needs to be done?

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions