Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Can FTP just convert some part of the records in the files ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
zos5415

New User


Joined: 29 Aug 2008
Posts: 18
Location: China

PostPosted: Mon Mar 09, 2009 4:42 pm    Post subject: Can FTP just convert some part of the records in the files ?
Reply with quote

Hi,Guys,

In actual, I just want to know whether FTP have this function that just convert some part of the records in the files ?

such as If file length is FB=231, But I just want to FTO first 200 byte of the records .

Can FTP support this ?
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7932
Location: Bellevue, IA

PostPosted: Mon Mar 09, 2009 4:57 pm    Post subject:
Reply with quote

FTP transfers files. If you only want the first 200 bytes of each record, write a program or use a utility to extract the data you want into another file and then FTP that file.
Back to top
View user's profile Send private message
zos5415

New User


Joined: 29 Aug 2008
Posts: 18
Location: China

PostPosted: Tue Mar 10, 2009 9:30 am    Post subject:
Reply with quote

o, This is to say the FTP can just transfer the whole files or can omit the space in the end of the records ?

I think It can omit the space in the trail of each records , it should be some function can support the first segment of the records.

of course, Just for the first segment, DFSORT can help us .
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7932
Location: Bellevue, IA

PostPosted: Tue Mar 10, 2009 4:41 pm    Post subject:
Reply with quote

Okay, you're now asking a different question. Perhaps if you clarify exactly what you're wanting to know, that would help.

1. If you are asking about sending only the first 200 bytes of a 231 byte record, FTP will not do this. FTP transfers files -- not parts of files, not pieces of files, not some records in the file -- entire, whole, complete files.

2. If you are saying the last 31 bytes of each and every record are spaces, you can use the FTP system option TRAILINGBLANKS FALSE to omit them from the FTP transfer. However, if there are 37 trailing blanks on a record all 37 of them will be omitted -- you can't specify only to get rid of the last 31 trailing blanks. Either ALL of the trailing blanks go away, or NONE of the trailing blanks are discarded.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Convert +9999999999999.99 to S9(12)V9(3) vnktrrd DFSORT/ICETOOL 8 Thu Nov 17, 2016 8:15 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us