Hi
My requirement is to read a configuration flat file which will contain Mainframe file names, IP address of the destination, destination folder, destination file name.
I need to read the config file sequentially and transfer each of the mainframe file and FTP it to the particular IP address mentioned against the mainframe file.
Can someone let me know if it is feasible?
Thanks
Prasanna G.
FTP Multiple files
- Prasanna G
- Posts: 71
- Joined: Tue Apr 12, 2011 9:49 pm
- Skillset: JCL, Cobol, DB2
- Referer: Internet
-
- Global moderator
- Posts: 2105
- Joined: Thu Jun 03, 2010 6:21 pm
- Skillset: Assembler, JCL, utilities
- Referer: zos.efglobe.com
Re: FTP Multiple files
Is the (I presume) FTP client running on a workstation, in a TSO session, or as a batch job?
- Prasanna G
- Posts: 71
- Joined: Tue Apr 12, 2011 9:49 pm
- Skillset: JCL, Cobol, DB2
- Referer: Internet
Re: FTP Multiple files
The source (both the configuration file and the files mentioned in the configuration file) is in mainframes and the destination is a Linux box.
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: FTP Multiple files
It is feasible. For example, a Perl program could be used -- transfer the z/OS data set to a Unix System Services file, then use the Perl FTP interface to transfer the files. This is not the only way to accomplish this task on the mainframe.
However, whether or not it is feasible to do this AT YOUR SITE is an entirely different question that may have a different answer. Mainframe sites customize many things to meet their specific needs, so what is installed and working at one site may not be available at another site. You need to contact your site support group and work with them to determine whether or not what you want to do can be done at your site.
However, whether or not it is feasible to do this AT YOUR SITE is an entirely different question that may have a different answer. Mainframe sites customize many things to meet their specific needs, so what is installed and working at one site may not be available at another site. You need to contact your site support group and work with them to determine whether or not what you want to do can be done at your site.
-
- Global moderator
- Posts: 2105
- Joined: Thu Jun 03, 2010 6:21 pm
- Skillset: Assembler, JCL, utilities
- Referer: zos.efglobe.com
Re: FTP Multiple files
TSO or batch?
The "configuration file" might as well be FTP control statements the TS/OP can use running FTP in batch:
OPEN url
userid
password
CD directory
PUT datasetname filename
CLOSE
OPEN next-url
userid
password
CD directory
PUT datasetname filename
CLOSE
or something like that.
Another possibility would be a Rexx script or a program to transform the "configuration file" to FTP commands.
As Mr. Sample says, the exact requirements depend on the local and remote systems. The general outline should be viable everywhere.
The "configuration file" might as well be FTP control statements the TS/OP can use running FTP in batch:
OPEN url
userid
password
CD directory
PUT datasetname filename
CLOSE
OPEN next-url
userid
password
CD directory
PUT datasetname filename
CLOSE
or something like that.
Another possibility would be a Rexx script or a program to transform the "configuration file" to FTP commands.
As Mr. Sample says, the exact requirements depend on the local and remote systems. The general outline should be viable everywhere.
- Pedro
- Posts: 686
- Joined: Thu Jul 31, 2008 9:59 pm
- Skillset: ISPF
- Referer: google
- Location: Silicon Valley
Re: FTP Multiple files
It is easier if the linux box has an FTP server. I am not familiar with linux... perhaps it is a given that it is running an FTP server, but most Windows systems do not run an FTP server.
You were not specific enough... most people responding have assumed you are trying to automate this but your post did not state that. Do you know how to do this task manually? Show us how you would do it manually.
I need to read the config file sequentially and transfer each ... file ... to the particular IP address
You were not specific enough... most people responding have assumed you are trying to automate this but your post did not state that. Do you know how to do this task manually? Show us how you would do it manually.
Pedro Vera
- Pedro
- Posts: 686
- Joined: Thu Jul 31, 2008 9:59 pm
- Skillset: ISPF
- Referer: google
- Location: Silicon Valley
Re: FTP Multiple files
Steve Myers has outlined the commands needed. From rexx, the process I have seen is to QUEUE the responses to prompts and other FTP commands first and then finally to launch FTP.
Pedro Vera
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Extract first record from multiple files
by Prasanna G » Wed Jan 13, 2021 2:14 pm » in DFSORT/ICETOOL/ICEGENER - 5
- 1758
-
by Prasanna G
View the latest post
Wed Jan 13, 2021 11:16 pm
-
-
-
Merge multiple fixed length files of different record length
by corvette1982 » Mon Mar 01, 2021 11:46 pm » in JCL - 8
- 5267
-
by willy jensen
View the latest post
Tue Mar 02, 2021 3:02 am
-
-
-
Joining 2 vb files into vsam files ended error
by newbiemainframe » Thu Nov 12, 2020 7:59 am » in JCL - 1
- 1749
-
by NicC
View the latest post
Thu Nov 12, 2020 7:15 pm
-
-
- 9
- 3416
-
by samb01
View the latest post
Thu Oct 14, 2021 1:29 pm
-
- 11
- 3944
-
by Pedro
View the latest post
Tue Apr 27, 2021 10:06 am