You have several options: 1. If the file name always the same create a job that has [no schedule] for the schedule and code FTPPutFile in the job script. To run this job from DOS window, you can use "24x7.exe /JOB job_id" command where you replace job_id with the actual job id. 2. 1) If the file name is variable you can call 24x7 JDL commands that dynamically modify the job (as in option 1) and then call 24x7 /JOB command, For more info please see JDL interface (DOS commands) in the 24x7 manual or help file. 2) or you can still use option 1, but make the script to read from some place name of the file into a variable and then FTP it. In your DOS batch you will need to save name of the file somewhere, for example in a text file that you will read from 24x7 3) or copy file to an empty directory and then use FTPPutFile with a file mask to FTP all files from that directory and then delete them 3. Use DOS version of FTP with command line parameters. : Hi : I would like to know if and how I can call the FTPPutFile function from a DOS : window. : I am running a SAS program and I would like to FTP : a file from windows to unix while executing a SAS program. : I would like to call the FTPPutFile function after I open a DOS windows : from inside a SAS program. : Do I need to do anything special??? : Set the windows Path variable? : Thanks Vic
|