×
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.
I've tried below and haven't had any luck:
SELECT count(*) FROM qtemp/myFile WHERE (substr(lw9,4,1))
in (x'13',
x'33', x'53', x'73', x'93', x'B3', x'D3', x'F3')
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Lim Hock-Chai
Sent: Thursday, May 22, 2008 1:18 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: How to use SQL to select data by binary pattern
If the DDS of myFile is as below:
A R RECDHDR
A LW9 4H
Is there a way to query this file where the last 5 bits of LW9 binary
pattern is = 10011?
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.