Re: How to append s file in FTP statement



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Re: How to append s file in FTP statement

Postby kumar253 » Wed Aug 06, 2008 3:22 pm

I have two files in a server , they are in the folders

EDI\PROD\APPL\BC856_EDI_TST856O
EDI\PROD\APPL\BK856_EDI_TST856O

i want to append these 2 files to the file YYYT137.DATA.EDIDY.EV5.SYSPKUM3, this file is in mainframe, cany one help me.


Thanks
Kumar
kumar253
 
Posts: 3
Joined: Wed Aug 06, 2008 3:07 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to append s file in FTP statement

Postby cgurr » Wed Aug 06, 2008 3:43 pm

Hi Kumar,

Can you tell how you are uploading the files to mainframe, if you are doing it manually, I think there is an option to append or replace data while uploading the text file to mainframe. If you are doing this through a transmission job, then, i think you can have the first file transmitted in first step of the job and create another step using the same output file from first step, but, use DISP=MOD, so that the 2nd transmission step will append records to the same file.

Hope this will help you.

Cgurr.
cgurr
 
Posts: 1
Joined: Tue Aug 05, 2008 12:07 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to append s file in FTP statement

Postby kumar253 » Wed Aug 06, 2008 3:52 pm

actually i have to get it through a job onlylike using FTP statement, but i need it in only one step because i dont want seperate files for each of them in mainframe.

is there any way to get it done with one step
kumar253
 
Posts: 3
Joined: Wed Aug 06, 2008 3:07 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to append s file in FTP statement

Postby MrSpock » Wed Aug 06, 2008 4:28 pm

APPEND is a valid FTP sub-command. However, it would have to be issued on the client side. If you are running a batch job and need to "pull" these files with a GET sub-command, then I agree with Cgurr that you should just GET twice to a DD allocated with a DISP=MOD disposition.
User avatar
MrSpock
Global moderator
 
Posts: 809
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: How to append s file in FTP statement

Postby kumar253 » Wed Aug 06, 2008 5:28 pm

Thanks Spock and Cgurr, i will implement this ...
kumar253
 
Posts: 3
Joined: Wed Aug 06, 2008 3:07 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to append s file in FTP statement

Postby dick scherrer » Thu Aug 07, 2008 1:11 am

Hello,

If you are going to MOD onto existing data it is a good idea to make a copy of the existing data before starting the ftp process that appends data. With a copy beforehand, you can get back to the starting point if there is any problem with the transfer.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post