Well. we don't know your system, your desktop environments, your site standards, or anything else in order to offer much help based on what little information you've provided. All that is known at this point is that you want to transfer a file using a batch process.
Let's look at the options. You'll need to provide more details as necessary.
- FTP. File Transfer Protocol (FTP) is a client-server TCP/IP based standard. FTP requires a host server and a remote client. If you wish to initiate the transfer from the mainframe side, then the mainframe is the server and your local system is the server. That means that ir must have an FTP server running as a service. If your local machine does not have an FTP server enabled, which it most likely doesn't, then this can't work. However, most shops do have FTP-enabled servers where you can transfer your file to, and then access it by mapping that server as a drive.
- ISPF File Transfer. This is the ISPF Option 3.7. This is also a client-server application. If you can download and install the workstation client component (WSA.EXE) on your local machine, then you can use this. You can code a program that uses the ISPF Services for File Transfer and then call that program from a batch ISPF job.
- SMTP MIME. Many places will just send a file as an SMTP email MINE attachment. Certainly doable if you have the infrastructure/software to allow this.
- Other File Transfer methods. There are other products that can be used to transfer files from one system to another (Connect:Direct and XCOM are two major ones), but you of course need to have these products available and licensed for your use.