SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
FTPPutFile

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
FTPPutFile
Author Message
Victor Neto



Joined: 03 Nov 2004
Posts: 17

Post FTPPutFile Reply with quote

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


Thu Jun 30, 2005 3:22 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7975

Post Re: FTPPutFile Reply with quote

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

Thu Jun 30, 2005 3:51 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.