> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:ibm-m...@bama.ua.edu] On Behalf Of Donald Russell
> Sent: Monday, November 23, 2009 12:37 PM
> To: IBM-MAIN@bama.ua.edu
> Subject: FTP PUT RECFM=FBM files
> 
> A batch process creates a sequential dataset with 
> RECFM=FBM.... I transfer
> that to a zLinux system using FTPS in ASCII mode
> 
> Is there an FTP option to specify that says "don't send the carriage
> control" character?
> Either in the PARM= or through the SYSFTPD DD statement?
> 
> I haven't seen such a thing mentioned in any of the manuals 
> but thought I'd
> check here before deciding what my work-around solution will be. :-)
> 
> Thanks for any suggestion, or confirming there is no such option.
> 
> Cheers

No. But remember that the carriage control is always the first character of the 
record. So you can do a simple post process such as:

perl -np -i.bak -e 's/^.(.*)/$1/' downloaded.file

to remove the first column. I like this because the result is the original file 
renamed to have a .bak on the end and the changed file back into the original 
name. An alternate might be:

cut -b 2- <downloaded.file >downloaded.file.new
mv downloaded.file downloaded.file.bak
mv downloaded.file.new downloaded.file

if you don't want the backup in the second example, just don't bother with the 
first mv command. The second mv will then removed the "downloaded.file" before 
renaming "downloaded.file.new" to "downloaded.file".

There is likely an equivalent way in other languages as well. 

--
John McKown 
Systems Engineer IV
IT

Administrative Services Group

HealthMarkets(r)

9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone * (817)-961-6183 cell
john.mck...@healthmarkets.com * www.HealthMarkets.com

Confidentiality Notice: This e-mail message may contain confidential or 
proprietary information. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
HealthMarkets(r) is the brand name for products underwritten and issued by the 
insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance 
Company(r), Mid-West National Life Insurance Company of TennesseeSM and The 
MEGA Life and Health Insurance Company.SM

 

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

Reply via email to