That works. Thank you
-----Original Message-----
From: Alan Shore via RPG400-L [mailto:rpg400-l@xxxxxxxxxxxxxxxxxx]
Sent: Thursday, January 16, 2020 4:00 PM
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Cc: Alan Shore <ashore@xxxxxxxx>
Subject: RE: Find special characters in RPG source
Hi Justin
The problem that I have been having is that what is copied is special characters that cannot be displayed on the AS/400 I built this SQL
with nontrans as
(SELECT rrn(a), a.CHNUM,
TRANSLATE(UPPER(a.CHTXT), ' ',
'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*()-=+/\{}[];:.,<>?
½¾ÀÁÉÍÑÚ~¢¦¬_`"|''') as TRANSL
, CHTXT
FROM nbjdta.csthistp a
WHERE
(TRANSLATE(UPPER(a.CHTXT), ' ',
'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*()-=+/\{}[];:.,<>?
½¾ÀÁÉÍÑÚ~¢¦¬_`"|''')
<> ' ')
order by rrn(a))
select hex(substr(trim(x.TRANSL), 1, 1)),
x.* from nontrans x
where substr(trim(x.TRANSL), 1, 1) < x'40'
and hex(substr(trim(x.TRANSL), 1, 1)) not in ('1A', '36')
This will display those characters
You can manipulate the above to remove the | from the translation and see the results
Alan Shore
E-mail : ASHORE@xxxxxxxx
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
'If you're going through hell, keep going.'
Winston Churchill
-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Justin Taylor
Sent: Thursday, January 16, 2020 4:52 PM
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: [EXTERNAL] Find special characters in RPG source
I regularly paste text into RPG source (in RDi). Sometimes the text contains special characters (e.g. tabs). Does anyone know of a good way to check a source member for special characters?
TIA
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.