Exactly, that is what you need to do. Put your script into the Script Libary and have it take the reired parameters make accept the required parameters, perhaps clientID and the base directory where you keep client files. In the job script you will then code something like MainScript( 1, "g:\\root\\client_1" ) : I have scripts that I run for 25 clients that import : data via custom program, move files around, etc. : Rather than have 25 separate JAL scripts, I'd like to have : one MAIN script that I can pass the clientID variable to. : But in 24x7, I'd like to have 25 different schedule scripts : that can be scheduled independently. This way an operator can : run as needed or disable a specific client without affecting others. : The 25 scripts would simply reference the MAIN script but pass : the clientid variable to. : When I need to make global changes I can just edit the MAIN script. : I'd like to keep it in 24x7 and not use DOS variables, batch files, etc. : ideas? If I put my MAIN script in the script library, can I reference it : from the other scripts and set the variable there? : john
|