The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to use assembler (as) in UNIX? [I got errors using assembler] meili100 High Level Programming 5 03-15-2008 02:55 PM
PSI consolidates IBM mainframe, Unix, Linux and Windows on single box - Search390.com iBot UNIX and Linux RSS News 0 09-26-2007 11:30 AM
Moving file from Mainframe to Unix satyaj_99 Shell Programming and Scripting 2 12-05-2006 06:46 PM
USS (unix) on the Mainframe Javagate UNIX for Dummies Questions & Answers 2 04-13-2004 09:41 PM
USS (unix) on the Mainframe Javagate Post Here to Contact Site Administrators and Moderators 2 04-13-2004 05:53 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-23-2007
thambi thambi is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 32
Question 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?.
  #2 (permalink)  
Old 08-23-2007
craigp84 craigp84 is offline
Registered User
  
 

Join Date: May 2007
Location: Glasgow, Scotland
Posts: 59
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:01 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0