Processing scanned data that is delimited by ASCII code 029

7935 pts.
Tags:
5250 emulator
ASCII 029
Barcode
RPGLE
scan
Data that is provided by a vendor is to be scanned and processed, however instead of a fixed format, this data is "group separator" (ASCII Code 029) delimited. In the 5250 session screen field that the scanner writes to, the data is being loaded but the group separators are being stripped out. So it is impossible to process the data into the separate elements. Has anyone dealt with this before and can point me in the right direction? Tried Google, but all I could find was a post to a different site asking the same question from 6 years ago, and no replies. :(

Software/Hardware used:
Client Access 5250 emulator, barcode scanner

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 10  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • philpl1jb
    The fact that it doesn't show on a 5250 screen doesn't mean it isn't there..look at the hex values.
    49,600 pointsBadges:
    report
  • BigKat
    sorry, that is what I meant, the character has literally been stripped out expecting: x'01020329010203' getting: x'010203010203'
    7,935 pointsBadges:
    report
  • BigKat
    same scanner used with a non-5250 screen does have the separator character properly included
    7,935 pointsBadges:
    report
  • philpl1jb
    So you are scanning paper using an I-series program or a pc program? I suspect you've got a translation table issue...but your I-series program could be cleansing the data.   Phil
    49,600 pointsBadges:
    report
  • TomLiotta
    same scanner used with a non-5250 screen does have the separator character properly included   Can you clarify this part then:   expecting: x’01020329010203′getting: x’010203010203′   You show hex values. Are those actual values? I.e., does X'01' actually work as valid input through the 5250 display, and x'29' is the (only?) value dropped? Or were the values just examples? What really comes in?   Tom
    125,585 pointsBadges:
    report
  • Splat
    Hex values from x'20' through x'29' are 5250 control characters (I can't recall if x'2A' through x'2F' are also). 
    6,895 pointsBadges:
    report
  • TomLiotta
    Hex values from x’20′ through x’29′ are 5250 control characters...   They are display attributes. X'29' would be 'Red, reverse image'.   But the original question was about ASCII code 029 which should be x'1D', not x'29'. And x'1D' isn't a display attribute, nor a 5250 control code that I'm aware of. It's an Interchange Group Separator generally for BSC compression on AS/400s. See for example Convert Character to BSC (CVTCB).   The difference between "ASCII code 029" and "x'29'" was one reason for asking what the data actually is that gets into a 5250 display.   Tom
    125,585 pointsBadges:
    report
  • BigKat
    doh, you are correct.  I was trying to make up a simple example and I should have typed 1D but had 29 on my mind.  anyway, colleague talked with scanner support tech and was told that the 1D character does not work with a 5250 screen and the scanner will need to be programmed to translate it to something else.
    7,935 pointsBadges:
    report
  • TomLiotta
    Are you the 'lucky' one who gets to do the reconfiguration? Tom
    125,585 pointsBadges:
    report
  • BigKat
    probably  :)
    7,935 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following