× 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.



Use %BIN to convert that byte to a numeric value. Then use multiplication, division and subtraction to isolate the bit.

Joe

Folks:

I am working on a project where I have to determine if a file is a
source file or physical file. The problem is it will be too slow to
call DSPFD to an outfile and read it for each of the files that will be
looked at. So I was trying to use the API QDBRTVFD which is perfect for
the problem, except: The data structure IBM used for the attributes is a
16 _BIT_ field. (Maybe Bruce can explain the logic behind that choice)



Constraints: Must use CL and must work at V5R4.

Any ideas how to get after that fifth bit?




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.