> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of John Dawes
> Sent: Friday, July 28, 2006 7:12 AM
> To: [email protected]
> Subject: SEQUENCE NUMBERS
> 
> 
> I noticed that when I perform a FTP function from Mainframe 
> (I am using FTP to retrieve jcls) to my pc I notice that 
> sequence numbers appear on the file.  
>    
>   How can I prevent these annoying sequence numbers from 
> appearing on the output?
>    
>   Thanks

Remove them on the mainframe. FTP does not have the ability to strip
data out. If you have Perl on your desktop, I can give you a rather
small program which will remove the data from columns 73-<end of line>.

#!/usr/bin/perl
use strict;
use warnings;
while (<>) {
        chomp;
        s/^(.{1,72}).*$/$1/;
        s/^(.*?) *$/$1;
        print $_,"\n";
}

perl noseq.pl <input.file.with.seq.numbers
>output.file.without.seq.numbers

Note that I don't say the above is the absolute best way to do this.
Somebody else could likely use "sed" or "awk" or ???

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

This message (including any attachments) contains confidential
information intended for a specific individual and purpose, and its
content is protected by law.  If you are not the intended recipient, you
should delete this message and are hereby notified that any disclosure,
copying, or distribution of this transmission, or taking any action
based on it, is strictly prohibited. 
 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to