AW: AW: Binaries data file

Archive of postings to DataStageUsers@Oliver.com. This forum intended only as a reference and cannot be posted to.

Moderators: chulett, rschirm

Locked
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

AW: AW: Binaries data file

Post by admin »

This is a topic for an orphaned message.
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

Post by admin »

Thanks a lot Wolfgang and all who has answered. Your answers are very helpfull.

Best regards,Alexandre Stoulov
------------------------------
Consultant. Business Intelligence Projects
TERN Company
mailto:alexs@tern.ru

whgd> If you look into the helpfiles you will find for sure functions to
whgd> convert any byte in bits and process them.

whgd> For example I wrote this function for to transfer Bytes to Bits:

whgd> ------------------------------------------------------
whgd> FUNCTION BYTE2BIT(Arg1)
whgd> MyByte=Arg1
whgd> MyNumber=SEQ(MyByte)
whgd> Ans=""
whgd> FOR X=7 TO 0 STEP -1
whgd> IF MyNumber > 2^X
whgd> THEN Ans=Ans:1;MyNumber=MyNumber-2^X
whgd> ELSE Ans=Ans:0
whgd> NEXT X
whgd> Return(Ans)
whgd> -------------------------------------------------------
Locked