View previous topic :: View next topic |
Author |
Message |
pvrajesh31 Beginner

Joined: 10 Aug 2004 Posts: 31 Topics: 11
|
Posted: Tue Jun 07, 2005 9:57 am Post subject: Syntax for appending data to a file using GET FTP command |
|
|
Hi,
I have to files in server SOURCE-FILE1,SOURCE-FILE2. I need to receive 2 source files into a single destination file using JCL.
I am using following GET command for this after connecting to server.
GET SOURCE-FILE1 'DEST-FILE' (REPLACE
GET SOURCE-FILE2 'DEST-FILE' (REPLACE
due to which only data of second file only moving into destination file.
Is there anyway to append data in 'SOURCE-FILE2' to 'DEST-FILE'.
Can somebody help me out ???
thanx in advance. _________________ Rajesh |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
pvrajesh31 Beginner

Joined: 10 Aug 2004 Posts: 31 Topics: 11
|
Posted: Tue Jun 07, 2005 11:41 am Post subject: |
|
|
Hi Kolusu,
But this command appends local file to a foreign file at server. But my requirement is in the reverse way. I want to append foriegn file to a local file.
i.e. in my case 'SOURCE-FILE1' and 'SOURCE-FILE2' are foreign files and 'DEST-FILE' is local file.
Is there any way for this. _________________ Rajesh |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
|
Posted: Tue Jun 07, 2005 3:04 pm Post subject: |
|
|
pvrajesh31,
Rajesh did you try the above mentioned ftp cards? Btw they work for appending the files on the mainframe also
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Tue Jun 07, 2005 7:52 pm Post subject: |
|
|
Seems to me it also would be just as easy to allocate the output dataset to its DD with DISP=MOD, and use two get statements:
Code: |
//SYSUT1 DD DSN=DESTFILE,DISP=MOD
//INPUT DD *
get SOURCE-FILE1 //DD:SYSUT1
get SOURCE-FILE2 //DD:SYSUT1
qui
|
|
|
Back to top |
|
 |
pvrajesh31 Beginner

Joined: 10 Aug 2004 Posts: 31 Topics: 11
|
Posted: Wed Jun 08, 2005 4:15 am Post subject: |
|
|
Hi Superk,
Two GET statements with output dataset as DISP=MOD is working fine.
Thanx a lot..... _________________ Rajesh |
|
Back to top |
|
 |
|
|