John:
Well, if you used this formula for decades, then that is good enough for me. In any event, I’ll find out in a hurry one way or the other. Thanks a million! Paul From: John King [mailto:[email protected]] Sent: May-13-13 11:04 AM To: [email protected] Subject: RE: [EDI-L] JC Penney Check Digit Paul, JCP uses a variation of MOD10 (weighting factor = 1212) to calculate the check digit in the 5th pos. View the chart below in a fixed-font (Courier) for a couple of examples harvested from some old code that our company used to use. We used this algorithm for decades. The examples are based on a 9-char, zero-filled ShipTo_Id while you are probably just interested in the right-most four chars. JK * Calculate Mod10 check digit *------------------EXAMPLE--------------------------------------- * D=Double A=Add * Unit 000002132 0 0 0 0 0 2 1 3 2 Unit 01805 0 1 8 0 5 * D A D A D A D A D D A D A D *Add/Double 0 0 0 0 0 2 2 3 4 = 11 0 1 16 0 10 *2 digits sum to one digit 0 1 7 0 1 = 9 *Right most digit 11 >>> 1 9 >>> 9 * Check digit 10-1=9 10-9=1 *------------------------------------------------------------------- --- [email protected] wrote: From: Paul McTeigue <[email protected]> To: "'EDI-L'" <[email protected]> Subject: RE: [EDI-L] JC Penney Check Digit Date: Mon, 13 May 2013 10:20:31 -0400 No, it is not the UPC or the SSCC. It is the store number. 4 digits without check digit. They used to send the complete 5 digits that included the check digit, now they are just sending 4. Of course, all of the stores are set up in the internal database with the 5 digits, ergo, I need to add the check digit. From: [email protected] <mailto:EDI-L%40yahoogroups.com> [mailto:[email protected] <mailto:EDI-L%40yahoogroups.com> ] On Behalf Of Michael Mattias/LS Sent: May-13-13 8:54 AM To: EDI-L Subject: Re: [EDI-L] JC Penney Check Digit > Anybody know the logic for the JC Penney store number check digit > calculation? Or at least the name of the convention they use? UPC? SSCC-14/18? The one with 20 total (I think that's SSCC-20)? Google(r) is your friend. I've found all those rules online that way. eg "UPC check digit" The bigger question for me has always been,"do they send/receive with or without the check digit?" (visceral response: about 85 percent with). MCM [Non-text portions of this message have been removed] ------------------------------------ ... Please use the following Message Identifiers as your subject prefix: <SALES>, <JOBS>, <LIST>, <TECH>, <MISC>, <EVENT>, <OFF-TOPIC> Job postings are welcome, but for job postings or requests for work: <JOBS> IS REQUIRED in the subject line as a prefix.Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/EDI-L/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/EDI-L/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
