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








Hello Jonathan,

as i mentioned in my posting, i use the 4. bit of the second byte.

Bit counting begins - as i read the documentation of the api - with zero.
But from the left. All other bit-status i check are correct if i interpret
them so.



Eduard Spanninger
STAMAG Stadlauer Malzfabrik GesmbH


midrange-l-bounces@xxxxxxxxxxxx schrieb am 22.08.2006 11:34:41:

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.





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

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.