× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



That may work. I will take a look.

--
Chris Bipes
Director of Information Services
CrossCheck, Inc.

707.665.2100, ext. 1102 - 707.793.5700 FAX
chris.bipes@xxxxxxxxxxxxxxx
www.cross-check.com
Notice of Confidentiality: This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information.  If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited.  If you have received this e-mail in error, please immediately notify me by e-mail (by replying to this message) or telephone (noted above) and permanently delete the original and any copy of any e-mail and any printout thereof.  Thank you for your cooperation with respect to this matter.


-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jon Paris
Sent: Monday, October 31, 2016 8:44 AM
To: Midrange-L Midrange-l <midrange-l@xxxxxxxxxxxx>
Subject: Re: ASCII to EBCDIC with Parity

Can’t you just use a simple %BITAND on each character Chris against a mask of x’7F’ ? Or in the past 35 years have I forgotten every thing I ever learned about parity bits?


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Oct 31, 2016, at 10:25 AM, Chris Bipes <chris.bipes@xxxxxxxxxxxxxxx> wrote:

We have always verified the LRC and built the packet with the STX ETX. The vendor says they do not look at the packet. All they do is upon answering, send the ENQ to trigger the POS device to send the data. Our OLD ICFF program took care of the Parity. Guess I will have to resurrect the translations that was done in that program. (Written in RPG II initially, translated to RPGIV years ago, and with all the BITON BITOFF very ugly.) Was also an external call.

Has anyone built a table for XLATE with 7 bit E parity ASCII characters?


Chris Bipes
Director of Information Services
CrossCheck, Inc.

-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Buck Calabro
Sent: Monday, October 31, 2016 7:08 AM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: ASCII to EBCDIC with Parity

On 10/28/2016 5:35 PM, Chris Bipes wrote:
The way this all works for clarification is:

Point of Sale device dials up to service provider using 7 bit, Even Parity, and 1 stop bit.
Service provider strips off the parity bit and send us the string in ASCII via TCP connection.
We convert to EBCDIC for processing
We convert the response back to ASCII before sending the socket.

That sounds right.

Point of Sale terminal packets look like this:

<STX>data packet is bracketed between two bytes<ETX><LRC><NULL>

<STX> is the Start of Text byte or x'02' with parity enabled it becomes x'80'
<ETX> is the End of Text byte or x'03'
<LRC> is a longitude Redundancy Check byte and is calculated using a special formula.

Packet is null terminated but the null is not included in the packet length and therefore not sent.

The crucial thing here is that YOU are not sending anything to the POS,
your vendor is.
This means that YOU do not need to worry about STX, ETX, LRC, baud rate,
parity -- your vendor does.

I need to account for the extra bit but need an easy way to calculate / strip it and get the correct data.

I was hoping someone has done this and had a table I could use.

I may have to write a Parity routine to strip before translation and add back after translation.

Your vendor should be getting regular, plain old ASCII from you.
Your vendor should be doing the buffering, parity, baud, framing with
the data they receive from you.

Is the vendor asking you to preformat the packets so they look exactly
like the POS wants? I think that's... unusual.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.