MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

HEX TO DISPLAY and vise versa

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
dohellwithmf
Beginner


Joined: 12 Jul 2007
Posts: 55
Topics: 23

PostPosted: Mon Jun 22, 2009 3:43 pm    Post subject: HEX TO DISPLAY and vise versa Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Mon Jun 22, 2009 5:30 pm    Post subject: Reply with quote

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
Code:

W-NUM  W 10 N 0


Code:

W-NUM  = W-BI-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
View user's profile Send private message Send e-mail Visit poster's website
dohellwithmf
Beginner


Joined: 12 Jul 2007
Posts: 55
Topics: 23

PostPosted: Wed Jul 01, 2009 4:35 pm    Post subject: Reply with quote

thanx Kolusu !!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group