Sei sulla pagina 1di 3

FTP from Local Desktop in Batch:

Normally the FTP from your local desktop to mainframe is done using ISPF (option 6) TSO command prompt then selecting file transfer from action bar choice and then selecting for FTP. For small data transfer it is best option but what if your data runs into few MBs . Till the time the data transfer takes place your ISPF session will remain busy. Now you will say we can do the same task from DOS command prompt but what if you have to transfer many files? Doing transfer one by one is a cumbersome why not make the process in batch and easy. Make one job , mention all the files that needed to be FTPd and submit and you are free. But the problem comes normally FTP service not runs on your desktop. Main motive of this document to bring into knowledge how to make your desktops FTP service up rest you all are champions of robbing data via FTP (must have done it for BMC , CAs or Compuware products.)

Starting FTP service on your Local Desktop :


Follow these steps to run FTP service on your desktop 1. 2. 3. 4. 5. Click Start menu. Go to Control Panel Select Add or Remove Programs. On that window select Add or Remove Windows Component. Select Internet Information Services (IIS) and check with details then Select FTP service. Press OK and let this new IIS service to get install on your system. Configuring is needed to start FTP service.

Configuring FTP:
For FTP configuration on your local desktop follow these steps: 1. 2. 3. 4. 5. 6. Click on Start Menu. All ProgramsAdministrative ToolsInternet Information Services Click on the server to expand it.(server is local computer here). Click on FTP sites to expand it and then on default website. Right click on default websites to display properties. Click on home directory tab select Read and Log Visits (click off ) write check box is already selected. 7. Click on Security Tabs to select Allow only anonymous connections. 8. Save the settings.

9. For permission settings Right click on default FTP site. 10. On popup menu point All Tasksselect Permissions Wizards. 11. A new Permission Wizard window will open click Next 12. Select Select new securities and settings from a template 13. Click on Public FTP site then Next. 14. Choose Replace all directory and file permissions(recommended) 15. Then Next and Finish. FTP service is configured at your site and is ready to rock and roll.

Where to Host your folders that are visible to FTP?


Look for Inetpub folder where it is created at your local. Its path may be directly on your drive where IIS is installed(by default) or in some case may go at Program Files Folder(depends on your system.) Host your data for FTP on this path drive_name:\Inetpub\ftproot Now your folders are visible for FTP.

FTP Local Desktop and Mainframes :


As we are talking about things to go in batch here is the sample job that can be used (nothing new)

// Job information or Job card ////FTPSTEP EXEC PGM=FTP //SYSUDUMP DD SYSOUT=* //SYSPRINT DD SYSOUT=* //OUTPUT DD SYSOUT=* //INPUT DD * ftp 20.198.242.168 //* my locals ip address anonymous mjadwani@csc.com //* here its my email_id actually it can be anything just to make log. binary get folder_name_on_your_desktop+ 'dataset_name_in_mainframe' (replace quit /*

By default things are present at this path on your local drive_name:\Inetpub\ftproot. For changing directories simply write cd \foldername\filenameand so on. Submit the job and your FTP is complete. Note: FTP jobs Maxrc=0 is the case most of the times . This doesnt means job ran successfully better is to look sysout. (Nothing new).

Advantages of things documented here:


Until and unless advantages are not mentioned things are often ignored. I dont know about the client side but when working on Software Factory this FTP might be very useful in following cases. 1. Transferring book datasets from local to mainframe. Some book datasets run into MBs this job will help and speed up the process. 2. CA fixes upload my personal experience says doing things one by one is cumbersome try this method it will definitely make your life simple. Things written here are not new. Many of them might be using them or know them but its just the initiative how to make things simple in addition you will gain knowledge of your environment both Windows and Mainframes.

Manoj K Jadwani

Potrebbero piacerti anche