Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
EMAIL ADRESS VALIDATION

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
darshansai

New User


Joined: 18 May 2019
Posts: 2
Location: INDIA

PostPosted: Thu Jun 13, 2019 12:40 pm    Post subject: EMAIL ADRESS VALIDATION
Reply with quote

hi im new to this forum i have been assigned a new task,i need to validate a email adress based on some set of rules:
Email address contains ['@','.'].
Email address contains multiple ['@'].
Email address starts with ['@','.'].
Email address ends with ['@','.'].
Email address contains consecutive ['.'].
Domain-extension contains ['0-9'].
Domain-extension is less than [2].
Domain-server is less than [2].
Email address is less than [7].
Email address is greater than [50].
Email address contains a character outside the allowed list: ['A-Z','a-z','0-9','-','_','.','+','@'].
Domain contains a character outside the allowed list: ['A-Z','a-z','0-9','.','-'].
could you please provide me a solution for this. i need a cobol program for this
Back to top
View user's profile Send private message

enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10609
Location: italy

PostPosted: Thu Jun 13, 2019 12:51 pm    Post subject: Reply to: EMAIL ADRESS VALIDATION
Reply with quote

Quote:
could you please provide me a solution for this. i need a cobol program for this


unfortunately this is a help forum, not a provide me the code one

let' s go step by step ...
where is that You are facing problems ...
the logic or the code ?
Back to top
View user's profile Send private message
sergeyken

Active User


Joined: 29 Apr 2008
Posts: 471
Location: Maryland

PostPosted: Thu Jun 13, 2019 7:49 pm    Post subject: Re: EMAIL ADRESS VALIDATION
Reply with quote

darshansai wrote:
could you please provide me a solution for this. i need a cobol program for this

In order to achieve this you may need to follow the steps below:

1) read, and learn about computers
2) read, and learn about programs
3) read, and learn about algorithms
4) read, and learn about COBOL language
5) design an algorithm to validate the E-Mail as per given requirements
6) code the designed algorithm using COBOL language
7) compile your code using COBOL compiler
8) create a load module using the BINDER program
9) create a test job (likely, in JCL; did you hear about that?), and then run your test
10) present your results here; you'll have a chance to get some advices from the visitors of the forum

Good luck!
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Using the SAS module to email mainfra... elixir1986 JCL & VSAM 3 Thu Mar 14, 2019 10:04 pm
No new posts JCL to send email along with formated... wik123 JCL & VSAM 5 Thu Aug 09, 2018 9:48 am
No new posts Need Help on sending email by includi... wik123 JCL & VSAM 9 Mon Jul 30, 2018 2:59 pm
No new posts Rexx to send an email without SMTP Se... upendrasri All Other Mainframe Topics 12 Sun Nov 19, 2017 7:59 pm
No new posts sending email from jcl using the mail... niloyarp JCL & VSAM 5 Tue Oct 10, 2017 12:32 pm

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