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
Question about formatting the output chris1234 UNIX for Dummies Questions & Answers 1 07-07-2008 06:17 AM
Question about output to file beeloo Shell Programming and Scripting 1 04-25-2008 03:20 PM
wget output question sertansenturk UNIX for Dummies Questions & Answers 1 04-19-2008 12:01 PM
A question about output. HOUSCOUS High Level Programming 2 04-18-2003 12:48 PM
Further question on 'ifconfig' output mint1981 UNIX for Dummies Questions & Answers 1 09-10-2002 11:49 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-01-2009
Mihirjani Mihirjani is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 4
Output file question

I am running a shell script which executes a bteq script and the output of the BTEQ script is dumped in the standard output file. The output of the bteq execution is a table with 30 columns and the width of the output would be about 800 characters for each record.

My current output only shows 3 columns and i do not see the remaining 27 columns (I guess because the length of the record is above the limit). How do i increase the width of the output file so that i see all the columns in a record?

Thanks in advance.
  #2 (permalink)  
Old 07-01-2009
vidyadhar85's Avatar
vidyadhar85 vidyadhar85 is offline Forum Staff  
Moderator(The Tutor)
  
 

Join Date: Jun 2008
Location: INDIA
Posts: 1,382
can you post your shell script??
  #3 (permalink)  
Old 07-01-2009
Mihirjani Mihirjani is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 4
Script

The script is very simple....I am running a sql script rec_dly_clms.txt on bteq and the standard output is captured in rec_out file. My output has long fields with 30 columns. This data does not fit in my output file and the data I see in my output file is truncated (only 3 columns, instead of 30).

Code:
echo "Script On"
bteq < rec_dly_clms.txt  > rec_out 
.set errorout STDOUT
.set width 600$

Last edited by Yogesh Sawant; 07-05-2009 at 09:51 AM.. Reason: added code tags
  #4 (permalink)  
Old 07-01-2009
vidyadhar85's Avatar
vidyadhar85 vidyadhar85 is offline Forum Staff  
Moderator(The Tutor)
  
 

Join Date: Jun 2008
Location: INDIA
Posts: 1,382
can you post your rec_dly_clms.txt content...
Sponsored Links
Reply

Bookmarks

Tags
file width, standard output

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 04:17 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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