Mod 10 Function or 4.53 CDF guidance

Questions and Answers about DataEase for DOS

Mod 10 Function or 4.53 CDF guidance

Postby Adrian Jones » Wed Feb 27, 2013 5:00 pm

Am wondering if there is amongst hand/power/shower/tools etc a function that handles the mod 10 check digit for credit cards, etc.

Failing that, is there any guide anyway to writing CDFs for 4.53? Or even an example in source code?

Plus a guide to how to complete the CDF form in 4.53. Mainly, the OS type (presumably DOS) and do the memory requirement and entry point values matter (I note my copy of the handtools demo has no memory req but does have things like '10:5AB4' for the entry point).

Thanks!
User avatar
Adrian Jones
 
Posts: 2000
Joined: Tue Sep 11, 2007 2:38 pm
Location: Cornwall, UK
Has thanked: 5 times
Been thanked: 4 times
 

Re: Mod 10 Function or 4.53 CDF guidance

Postby Fred Kingston » Wed Feb 27, 2013 5:28 pm

There's a Mod10 function in Jerry's Jada.exe...
Fred Kingston
 
Posts: 281
Joined: Sun Aug 01, 2010 10:54 pm
Has thanked: 0 time
Been thanked: 0 time
 

Re: Mod 10 Function or 4.53 CDF guidance

Postby Adrian Jones » Wed Feb 27, 2013 5:47 pm

Oh, fantastic. Where do I get a copy now?
User avatar
Adrian Jones
 
Posts: 2000
Joined: Tue Sep 11, 2007 2:38 pm
Location: Cornwall, UK
Has thanked: 5 times
Been thanked: 4 times
 

Re: Mod 10 Function or 4.53 CDF guidance

Postby Phil Winkler » Wed Feb 27, 2013 6:12 pm

Adrian, email Debe. I'd be amazed if we didn't have one on the shelf still.
Phil Winkler
PLM Consulting, Inc.
pwinkler@plmconsulting.com
Phil Winkler
 
Posts: 889
Joined: Fri Sep 07, 2007 12:45 pm
Has thanked: 0 time
Been thanked: 0 time
 

Re: Mod 10 Function or 4.53 CDF guidance

Postby Adrian Jones » Thu Feb 28, 2013 6:38 pm

Hi Phil,

As you'll have gathered, apparently not.
User avatar
Adrian Jones
 
Posts: 2000
Joined: Tue Sep 11, 2007 2:38 pm
Location: Cornwall, UK
Has thanked: 5 times
Been thanked: 4 times
 

Re: Mod 10 Function or 4.53 CDF guidance

Postby KjetilUrne » Thu Feb 28, 2013 7:45 pm

A couple of stupid questions:

1) A 'newer' cdf won't work? What's the criteria?
2) I've done similar tests in Excel. Did you consider implementing the test in DE? After all, it's only pure calculations, isn't it?
KjetilUrne
 
Posts: 602
Joined: Mon Oct 08, 2007 8:21 am
Location: Norway
Has thanked: 4 times
Been thanked: 1 time
 

Re: Mod 10 Function or 4.53 CDF guidance

Postby Fred Kingston » Thu Feb 28, 2013 8:11 pm

Adrian...

I sent you a PM but I don't think this private message thing works because the PM is still sitting in a stupid Outgoing folder...

Send me your current email...
Fred Kingston
 
Posts: 281
Joined: Sun Aug 01, 2010 10:54 pm
Has thanked: 0 time
Been thanked: 0 time
 

Re: Mod 10 Function or 4.53 CDF guidance

Postby KjetilUrne » Thu Feb 28, 2013 9:37 pm

Fred Kingston wrote:PM is still sitting in a stupid Outgoing folder...


It will stay there until Adrian open it
KjetilUrne
 
Posts: 602
Joined: Mon Oct 08, 2007 8:21 am
Location: Norway
Has thanked: 4 times
Been thanked: 1 time
 

Re: Mod 10 Function or 4.53 CDF guidance

Postby Adrian Jones » Fri Mar 01, 2013 9:56 am

Thanks Fred,

It's in my signature ...
User avatar
Adrian Jones
 
Posts: 2000
Joined: Tue Sep 11, 2007 2:38 pm
Location: Cornwall, UK
Has thanked: 5 times
Been thanked: 4 times
 

Re: Mod 10 Function or 4.53 CDF guidance

Postby Adrian Jones » Fri Mar 01, 2013 10:00 am

Hi Kjetil,

I'm not sure I understand your questions. By 'newer' CDF, do you mean one I've written myself, or someone elses?

If my own -- I've not tried to write one yet. I've written many functions for windows, but I don't know what issues there are with DOS here. Can't find any documentation in that area, and really, I'd rather get something off the shelf.

And I'm just following up on a client's request. They've implemented something, but its complex and he wants to simplify it. What could be simpler than a single function!
User avatar
Adrian Jones
 
Posts: 2000
Joined: Tue Sep 11, 2007 2:38 pm
Location: Cornwall, UK
Has thanked: 5 times
Been thanked: 4 times
 

Re: Mod 10 Function or 4.53 CDF guidance

Postby KjetilUrne » Fri Mar 01, 2013 4:07 pm

Adrian Jones wrote:I'm not sure I understand your questions. By 'newer' CDF, do you mean one I've written myself, or someone elses?


I was thinking of Jeff Page's "Luhn check". It's the same thing, isn't it?
KjetilUrne
 
Posts: 602
Joined: Mon Oct 08, 2007 8:21 am
Location: Norway
Has thanked: 4 times
Been thanked: 1 time
 

Re: Mod 10 Function or 4.53 CDF guidance

Postby Adrian Jones » Thu Mar 14, 2013 8:33 pm

OK, I'm a little confused by this cdf.

I don't understand what the return value is. Is it supposed to be the check digit? Cos however I enter a card number (all the digits other than the last one, omit the first few digits, etc), it does not consistently match the three test cards on my desk.

I'm probably being completely thick, of course!
User avatar
Adrian Jones
 
Posts: 2000
Joined: Tue Sep 11, 2007 2:38 pm
Location: Cornwall, UK
Has thanked: 5 times
Been thanked: 4 times
 

Re: Mod 10 Function or 4.53 CDF guidance

Postby Fred Kingston » Thu Mar 14, 2013 10:15 pm

I'm not sure which one you're using... Mod-10 is just that... Google Luhn algorithms... and credit card checking... You'll probably need to do some additional math/derivation withe returned value to get something meaningful...

http://www.ee.unb.ca/cgi-bin/tervo/luhn.pl?N=

Use this link to test your results...
Fred Kingston
 
Posts: 281
Joined: Sun Aug 01, 2010 10:54 pm
Has thanked: 0 time
Been thanked: 0 time
 

Re: Mod 10 Function or 4.53 CDF guidance

Postby Graham Smith » Fri Mar 15, 2013 12:01 pm

I wrote a procedure in DFD to check a credit card number and I think it was published in either our IDUA newsletter or in Dialog. Not sure if that would help or if I could find it.
Graham Smith
DataSmith, Delaware
"For every expert there is an equal and opposite expert.", Arthur C. Clarke (1917 - 2008)
"X-Clacks-Overhead: GNU Terry Pratchett"
User avatar
Graham Smith
 
Posts: 2501
Joined: Fri Sep 07, 2007 11:31 am
Location: Delaware, USA
Has thanked: 0 time
Been thanked: 1 time
 

Re: Mod 10 Function or 4.53 CDF guidance

Postby Adrian Jones » Fri Mar 15, 2013 1:25 pm

Hi Fred,

Jerry's Mod10 as per the library you mentioned.

If I type the whole of the credit card number from three cards in front of me into the link, all return 0 -- i.e. pass.

If I type the same numbers into a field in DOS, another field derived "mod10 ( CardNo )" returns 0 on two of the cards and 1 for the third (which i assumes means it has not passed the test, as per your link).
User avatar
Adrian Jones
 
Posts: 2000
Joined: Tue Sep 11, 2007 2:38 pm
Location: Cornwall, UK
Has thanked: 5 times
Been thanked: 4 times
 
 
Next

Return to DataEase for DOS

Who is online

Users browsing this forum: No registered users and 3 guests

cron