View previous topic :: View next topic |
Author |
Message |
dohellwithmf Beginner
Joined: 12 Jul 2007 Posts: 55 Topics: 23
|
Posted: Mon Jun 22, 2009 3:43 pm Post subject: HEX TO DISPLAY and vise versa |
|
|
Hi,
I need to convert a file having intiger type data to display. Following is the sample file:
. . P.
00D2
0179
I want the output file as:
120617
I need to use this field in EZT and I have to perform calculations also. What data type should I define in EZT for thes intiger fields? Is there any way in EZT to handle this???
Pls help...
TIA, Mayank |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Mon Jun 22, 2009 5:30 pm Post subject: |
|
|
dohellwithmf,
Integer type is Binary in easytrieve. S9(1) - S9(4) comp is 2 bytes and s9(5) - s(9) is 4 bytes and s9(10) to s9(18 ) is 8 bytes.
You can define it as
Code: |
W-BI-FIELD P 02 B 0
* p = pos of the binary field in the file
|
If you want to display the actual value in a file then move the binary var to numeric field
If you are writting to a report then you don''t have to do any thing special, it will automatically written out to readable format
Kolusu |
|
Back to top |
|
|
dohellwithmf Beginner
Joined: 12 Jul 2007 Posts: 55 Topics: 23
|
Posted: Wed Jul 01, 2009 4:35 pm Post subject: |
|
|
thanx Kolusu !! |
|
Back to top |
|
|
|
|