FTP mainframe file to server



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

FTP mainframe file to server

Postby bperkows » Thu Dec 09, 2010 12:02 am

Is there a way to FTP a file from the mainframe to a server and include the current date as a part of the server file name. I have accomplished this on other platforms, but not from the mainframe.

Any advice is appreciated.
bperkows
 
Posts: 4
Joined: Wed Dec 08, 2010 11:34 pm
Has thanked: 0 time
Been thanked: 0 time

Re: FTP mainframe file to server

 

Re: FTP mainframe file to server

Postby Robert Sample » Thu Dec 09, 2010 12:06 am

Sure -- have a process (in Unix, or a programming language, or REXX, or ...) create the FTP commands (including the date) in one step, then the next step will be the FTP executing the commands created in the previous step.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 222 times

Re: FTP mainframe file to server

Postby bperkows » Thu Dec 09, 2010 12:11 am

Thanks for your response. I did find something like that and I am checking it, now. Again,
thanks.
bperkows
 
Posts: 4
Joined: Wed Dec 08, 2010 11:34 pm
Has thanked: 0 time
Been thanked: 0 time

Re: FTP mainframe file to server

Postby steve-myers » Thu Dec 09, 2010 12:14 am

Mr. Sample's solution is the way to do it. The FTP command on the mainframe would be

PUT mainframe-dataset-name server-file-name

where you would incorporate today's date in the server-file-name string.
steve-myers
Global moderator
 
Posts: 1886
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

Re: FTP mainframe file to server

Postby bperkows » Thu Dec 09, 2010 12:20 am

Thanks, Steve.
bperkows
 
Posts: 4
Joined: Wed Dec 08, 2010 11:34 pm
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post