View previous topic :: View next topic
|
Author |
Message |
t_ctaram
New User
Joined: 15 May 2007 Posts: 20 Location: mumbai
|
|
|
|
Hi all,
i need to do a e-mail validation using the assembler code. could any one please help me with the initail validation logic.
I will get a E-mail (eg. abc@yahoo.com) as an input and i need to validate it in the assembler language and tell that its a valid e-mail format or not.
Sitaram |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
If you're going to be writing in Assembler, please review the TRT (Translate and Test) instruction in the "Principles of Operation" manual.
TRT's are used in COBOL (under the covers), for NUMERIC validation, some forms of INSPECT, the ALPHABETIC and ALPHANUMERIC class test and many other scenarios.
You could also use a BCT loop, which is similar to a COBOL In-Line PERFORM.
Do you have any Assembler experience?
Regards, |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
do you want to validate the e-mail
or
do you want to validate the format of e-mail send-to address?
I assume you want to validate the format of the e-mail address.
I would first search the IBM site and then general google.
IBM may have a routine that you could CALL that would perform e-mail address validation.
I am sure that there are about a gazillion JAVA routines.
Maybe someone has already coded an assembler routine that you could find thru google. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Google is your friend. Googling email address validation returns over 8 million hits. Why reinvent the wheel if you don't have to (I know, expat, a futile question around here)? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
have You devised the logic yet ??
the logic does not depend on the programming language
searching for
"email address validation rules" will return links to the logic
and for
"email address validation C" will return links to c language samples |
|
Back to top |
|
|
t_ctaram
New User
Joined: 15 May 2007 Posts: 20 Location: mumbai
|
|
|
|
hi all,
i am looking for validating the format of the e-mail using assembler language. i have come up with a Pseudo code for the as below:
• Special Character validation must include only “@” and “.”
• Email id cannot start with _ or @
• Email id can include a-z, A-Z , 0-9, -_, @ and .
• The name part excludes any character other then a-z, A-Z, 0-9, .(dot), _(Underscore).
• The @ or . Character should not precede or follow each other when the user is entering data against the email and confirm email address fields.
• The email ID must end with 2-4 chars( example: john@yahoo.com , john@yahoo.ca , john@something.info )"
i also google is my first priority for serching generic codes. but i have not found any coding in assembler for my requirement.
If any one of you can help me in coming up with a routine which this validation, it would be of great help.
Thanks,
Sitaram |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
why assembler ??
it looks like You are not comfortable with it
but just show what You have come up with and somebody will be here to help |
|
Back to top |
|
|
t_ctaram
New User
Joined: 15 May 2007 Posts: 20 Location: mumbai
|
|
|
|
i have no choice ... i need to code it in assembler
i was trying using TRT instruction for alfpha numeric validation as well for validating "_","." and "@"
Your guidance would really help me in speeding up my coding..
thanks,
Sitaram |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
|