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
 

 

Appending files using FTP

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

New User


Joined: 11 Aug 2005
Posts: 45
Location: India

PostPosted: Wed Apr 30, 2008 11:26 am    Post subject: Appending files using FTP
Reply with quote

Hi,

In FTP, Append command appends a dataset on the local host to a file on the foreign host.

I want an FTP command which performs the reverse function. I want to retrieve a file from other server and it should be appended to the mainframe dataset.

For eg. I have a mainframe dataset SAMPLE.TEST.FILE . Every day i will be pulling some data from an Unix Server using FTP. That data should be appended to my mainframe dataset SAMPLE.TEST.FILE. If i use GET command i guess the data will be replaced. Is there any append command as such.

Please help me out. Thanks in advance.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Apr 30, 2008 11:39 am    Post subject:
Reply with quote

Hello,

I do not believe you want to append as part of the file transfer. If there are problems, you could corrupt or completly destroy the existing data.

I believe a better way would be to transfer the new data into a new dataset and then "combine" them later.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4649
Location: Raleigh, NC, USA

PostPosted: Wed Apr 30, 2008 3:08 pm    Post subject: Re: Appending files using FTP
Reply with quote

Ganesh Kalam wrote:
If i use GET command i guess the data will be replaced. Is there any append command as such.


No, but you can allocate the host dataset with DISP=MOD in your JCL.
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 getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts Compare two files and subtract values ameetmund DFSORT/ICETOOL 7 Fri Mar 31, 2017 3:35 pm


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