mainframe assembler file into Unix

Hi,

I have received a mainframe file ( VSAM file ) . I would like to handle that file in Unix. i.e I would like to take the last record of the file. I have given wc -l <file_name> , it gives 0 lines. Even though It has some lines , it is not giving count exactly. When I gave file <file_name> command, it gives,

s500 assembler program text

it seems Unix is not able to handle the assembler type file which is recevied from mainframe. Please help me on this. How to handle this file in Unix?.

Hi,

I think it's just a case of converting the file from EBCDIC to ASCII format so the unix utilities will work properly with it.

You can make the conversion with the dd command. See the man page or google.

Hope this helps,

-c