|
Hi Eduard The positioning in the returned data structure begins at 1. You have to add 1 to the offset shown in the documentation to get the correct starting position, so the byte you're interested in is actually in position 69 and not 68. Bit counting usually begins with bit 0 as the right most bit of the byte, so bit 4 would actually be the first bit of the high end nybble which shows as "1" in your example. Of course that doesn't mean that the IBM documentation does it that way so check you're picking up the correct byte first. Hope it helps Jonathan -----Original Message----- From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Eduard Spanninger Sent: 22 August 2006 06:39 To: Midrange Systems Technical Discussion Subject: API QDBRtvFD and DDM files / 2 I'm afraid, my first posting hasn't reached the forum. Therefore once again ... Hello, maybe (and hopefully) anyone can help me; searching the net didn't gave a suitable answer. It concerns reading file information for DDM files: i can't even decide wheater a file is a DDM file or not. Using DspFD a file has the following attributes: system: *lcl file type: device device type: DDM and DDM attributs are shown. So far, so good. But I'll get these information with API QDBRtvFD. In format Qdb_Qdbfh, positions 68 to 69 (counting begins at zero) is field Qaaf2 (additional attribute flags); bit 4 (counting also begins at zero) of the second byte should by ON if it is the a DDM file. But this bit always is OFF: b'0001 0000'. Where is the error? Eduard Spanninger STAMAG Stadlauer Malzfabrik GesmbH -- 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.
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.