EMail Validation via COBOL

I have file with customer details and I need to process only those records who is having valid email id, so how we can validated these records using COBOL?

Showing Answers 1 - 9 of 9 Answers

Raghava Pasupuleti

  • Jan 5th, 2017
 

EMail Validation via COBOL: Using inspect we can solve this problem
Step1: Inspect the "@" symbol in mail-id field
Step2 : @ counter should be 1 then only the maid-id is valid one.

  Was this answer useful?  Yes

PRAVEEN SAINI

  • Feb 12th, 2017
 

It is partially correct answer @ symbol is part of the answer we have to check (.) for valid mail id ..
Correct me if I am wrong

  Was this answer useful?  Yes

neha

  • Jan 29th, 2018
 

MOVE @ TO WS-CHAR
you can use INSPECT EMAILID TALLYING WS-COUNT-1 FOR ALL INITIAL WS-CHAR
IF WS-COUNT > 0 (means there is @)
proceed
ELSE
ERROR OUT

  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