Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How To Determine Encoding Of A File - And see the contents in Hex 1

Status
Not open for further replies.

klophockey

Programmer
May 25, 2016
41
0
0
US
I have a .dat file and would like to know if the format of it is ASCII, EBCDIC or whatever.

What is a simple way of knowing the format of the file.

I have looked at properties, tried Visual Studio but it say I need an app to open a .dat file.

Bottom line - I would like to know the format but would also like to look at hex values in the file.

I'm in a distributed environment so do not have the Mainframe Fileaid product available to me.

So, just assume I have a file on my Windows computer called myfile.dat and I want to see the contents of it in hex and would like to know its encoding.

Thank you.
 
Notepad++ has a built-in that shows the hex-level values. Try it.

Frank Clarke
--America's source for adverse opinions since 1943.
 
As a COBOL programmer, using the free editor SPFLite can be of much help. See
It is a mainframe look-alike editor with all kinds of commands, file profiles, .....

Also there is an old utility RCOPY from Computer Associates that can concert EBCDIC into ASCII and the other way around. It is very fast. It is free.

SPFSE365 is/was a commercial program that works excellent, has build in utilities to do all kinds of conversions. I am not sure if any representative can be found to buy it. 😥

I agree about notepad++, nice tool, but not typically helping for COBOL.

tell us how you are doing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top