Gad,
The first thought to come to my RPG/AS400 mind is
use RPG to loop through characters in the iSeries
files, replacing characters < X'40' with X'40'
The following assumes the iSeries files have been
converted to standard EBCDIC
rpg code:
* data file - program described
FPGMF1 UF F 512 DISK
* data file - program described needs I Specs
IPGMF1 NS 01
I 1 512 F1REC must = PGMF1 reclen
D xBlank C X'40'
D chMax C Const(512) must = PGMF1 reclen
D DS
D ch# 1 512A DIM(512) must = PGMF1 reclen
D ch@ S 10I 0 index ch#
* Start: Loop to replace characters less than blank with blank -----------
C For ch@ = 1 By 1 To chMax
C If ch#(ch@) < xBlank
C Eval ch#(ch@) = xBlank
C End
C EndFor
C Eval *INLR = *On
C RETURN
* End : Loop to replace characters less than blank with blank -----------
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Gad Miron
Sent: Monday, June 04, 2012 1:12 AM
To: midrange-l@xxxxxxxxxxxx
Subject: Unprint(display)able in Data files
Hello Guys
need some help with "Gibberish" an Data files.
We extensively use a home grown Java utility to upload customer files to the iSeries machine.
File formats are text fixed, text delimited, xls, xlsx .
File encoding may be ANSI, UTF8, UTF16.
The data are written to simple DB files on the iSeries.
When displaying these data on a green screen the unprintable characters are mostly displayed as RI rectangles and sometimes even cause an undesirable new line to appear on screen .
Does anybody know a technique to cleanse these "white noise" characters using RPG (Xlate ?) or SQL?
Thanks
Gad
--
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.
As an Amazon Associate we earn from qualifying purchases.