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 

replacing hexadecimal

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


Joined: 21 Sep 2005
Posts: 14
Topics: 9

PostPosted: Wed Sep 21, 2005 6:56 am    Post subject: replacing hexadecimal Reply with quote

during the validation i found the hexadecimal values that is comp1 and comp2 values in my file ..i want to replace it with characters ..plse suggest me the programming logic that converts all hex values to characters....waiting for ur reply
_________________
VICTOR
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Wed Sep 21, 2005 7:00 am    Post subject: Reply with quote

victor

Quote:

....waiting for ur reply


I don't want to be Harsh on you. but don't demand for immediate response.

Thanks,
Phantom
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Wed Sep 21, 2005 7:07 am    Post subject: Reply with quote

Once you read the dataset (using COBOL) move the numeric fields (comp1 & comp2) to some working storage variables defined with the same picture clause but without COMP.

This should be simplest way. Since your file has both COMP1 and COMP2 you cannot have a single convertion logic to convert everything back to readable numeric digits.

Thanks,
Phantom
Back to top
View user's profile Send private message
ANIL SARATHY
Beginner


Joined: 30 Aug 2005
Posts: 88
Topics: 3
Location: Syracuse,New york

PostPosted: Wed Sep 21, 2005 7:26 am    Post subject: Reply with quote

COMP-1 is single word floating and COMP-2 is double word floating

for COMP-1 move value to a S9(9) or more.

for COMP-2 move value to a S9(15) or more.

Smile
_________________
Anil Sarathy
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming 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