home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR24 / ATS2DE.ZIP / ATS.HLP (.txt) < prev    next >
OS/2 Help File  |  1993-08-23  |  45KB  |  1,658 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. ATS for OS/2 Menus ΓòÉΓòÉΓòÉ
  3.  
  4. File Menu: 
  5.  
  6. o Log Comment 
  7. o Exit 
  8.  
  9. Edit Menu: 
  10.  
  11. o Define Holidays 
  12. o Define Events 
  13. o Define Schedule 
  14. o System Configuration 
  15.  
  16. Reports Menu: 
  17.  
  18. o Defined Holidays Report 
  19. o Defined Events Report 
  20. o Defined Tasks Report 
  21.  
  22. Signal Event Menu: 
  23.  
  24. o Signal Event 
  25.  
  26. Windows Menu: 
  27.  
  28. o Log 
  29. o Status 
  30. o Running Tasks 
  31. o Tiling Display Windows 
  32.  
  33.  
  34. ΓòÉΓòÉΓòÉ 2. Extended Help for ATS for OS/2 ΓòÉΓòÉΓòÉ
  35.  
  36. With the constant increase of processing power on personal computers many 
  37. companies are migrating software systems off of minicomputers and mainframes. 
  38. As more and more systems are migrated, it is becoming increasingly obvious that 
  39. the availability of PC versions of system utilities that have been in use on 
  40. the larger computers for many years is now crucial. 
  41.  
  42. One such utility is a full function job scheduler. Years ago, jobs were 
  43. scheduled in the order that the card decks were placed in the readers. As time 
  44. went by, sophisticated programs were written to manage the scheduling of jobs 
  45. on mainframes and then on minicomputers. With the migration of mission critical 
  46. systems to the PC environment, it is evident that a full function job scheduler 
  47. is required. 
  48.  
  49. Many companies have developed their own in house scheduler to handle the most 
  50. common of their requirements while choosing to ignore the more obscure, but yet 
  51. important, other cases. ATS for OS/2 has been designed to allow you to build 
  52. complete job streams giving complete control of how and when to run each 
  53. program. 
  54.  
  55. Here are a few of the features of ATS for OS/2: 
  56.  
  57. o Build complete job streams. 
  58.  
  59. o Define any day to be a holiday. 
  60.  
  61. o Define if a job should run on a holiday, not run on a holiday or run either 
  62.   way. 
  63.  
  64. o Define what day of the week a job can run. 
  65.  
  66. o Define what day of the month a job can run. 
  67.  
  68. o Define what months a job can run. 
  69.  
  70. o Define what hours of the day a job can run. 
  71.  
  72. o Define a date range that a job can run within. 
  73.  
  74. o Define if a job should run on the last day of the month, last business day of 
  75.   the month, first business day of the month, last business day before the 
  76.   15th, or first business day after the 15th. 
  77.  
  78. o Define if the job should run in a window, full screen or as a Presentation 
  79.   Manager application. 
  80.  
  81. o Define a job to be dependent upon the completion of one or more scheduled 
  82.   jobs. 
  83.  
  84. o Define a job to be dependent upon one or more files being created or 
  85.   modified. 
  86.  
  87. o Define a job to be dependent upon the receipt of one or more external 
  88.   signals. 
  89.  
  90. o Logs all activity to a file and an on-line window. 
  91.  
  92. o Displays a list of all running jobs in an on-line window. 
  93.  
  94. ATS can be notified that an external event has occurred in one of three ways. 
  95. These methods are: an API that can be incorporated into an independently 
  96. developed application program, a supplied executable that can be executed at an 
  97. OS/2 command line or from within a REXX or OS/2 Command procedure, or through a 
  98. menu option on the ATS main window. 
  99.  
  100. ATS allows you to clear the flag that indicates that an event has occurred two 
  101. different ways. They are: an API that can be incorporated into an independently 
  102. developed application program or a supplied executable that can be executed at 
  103. an OS/2 command line or from within a REXX or OS/2 Command procedure. 
  104.  
  105. ATS allows you to define an unlimited number of tasks, dependencies, and 
  106. holidays. ATS logs all activity to disk. In addition, there are three display 
  107. windows that can be turned on or off at the users discretion, Log, Status, and 
  108. Running Tasks. The log window captures all log entries for real time on-line 
  109. viewing. The status window displays the current state of ATS. The Running Tasks 
  110. window displays a list of all programs that have been initiated by ATS and are 
  111. currently running. 
  112.  
  113. ATS for OS/2 requires IBM OS/2 2.0 or later. 
  114.  
  115. ATS for OS/2 is owned by MHR Software And Consulting. We can be reached by mail 
  116. at 2227 U.S. Highway #1,Suite 146, North Brunswick, NJ 08902 or by telephone at 
  117. (908) 821-0359. 
  118.  
  119.  
  120. ΓòÉΓòÉΓòÉ 3. Exit ΓòÉΓòÉΓòÉ
  121.  
  122. Selecting the Exit option on the File menu will terminate ATS. 
  123.  
  124.  
  125. ΓòÉΓòÉΓòÉ 4. ATS for OS/2 Syntax ΓòÉΓòÉΓòÉ
  126.  
  127. To run ATS, simply type ATS at an OS/2 command Prompt. 
  128.  
  129.  
  130. ΓòÉΓòÉΓòÉ 5. Installing ATS for OS/2 ΓòÉΓòÉΓòÉ
  131.  
  132. Included Files 
  133.  
  134. o ATS.EXE 
  135.  
  136. o ATS.HLP 
  137.  
  138. o ATSSGNL.EXE 
  139.  
  140. o ATSRESET.EXE 
  141.  
  142. o ATSRSETD.DLL 
  143.  
  144. o ATSRSETD.LIB 
  145.  
  146. o ATSRSET.H 
  147.  
  148. o ATSSGNL.DLL 
  149.  
  150. o ATSSGNL.LIB 
  151.  
  152. o ATSSGNL.H 
  153.  
  154. Installing ATS 
  155.  
  156. There are no special installation instructions for ATS. Copy all of the files 
  157. on the supplied diskette to a directory on your PC. 
  158.  
  159. If you will not be using the programming interface to ATS, then you do not need 
  160. any of the header (*.H) LIB (*.LIB) files. 
  161.  
  162. If you will not be using ASTRSET or ATSSGNL then you do not need ATSSGNL.EXE or 
  163. ATSRSET.EXE. 
  164.  
  165. If you will not be using the programming interface or the supplied executables, 
  166. then you do not need any of the DLL (*.DLL) files. 
  167.  
  168. If you do not want on-line help, then you do no need ATS.HLP. 
  169.  
  170.  
  171. ΓòÉΓòÉΓòÉ 6. Terms used in ATS for OS/2 ΓòÉΓòÉΓòÉ
  172.  
  173. Dependencies 
  174.  
  175. A dependency is a link between an event and a task. An event can be a 
  176. dependency for one or more tasks. A task can be dependent upon one or more 
  177. events. Actually, an event can be defined and not be a dependency of any task 
  178. and a task can be defined without having being dependent upon any event. 
  179.  
  180. Event 
  181.  
  182. An event is something that happens. This can be either a file being modified 
  183. (File Modification), the completion of a task that was scheduled through and 
  184. initiated by ATS (Task Completion), or notification that something has occurred 
  185. (Signal Event). Signal Event notification can come from either a provided API 
  186. that has been embedded in an application program, running the supplied program 
  187. ATSSGNL.EXE, or from selecting SIGNAL EVENT on the main menu of ATS. ATS allows 
  188. you to clear the flag that indicates that an event has occurred. There are two 
  189. different ways to do this. They are: an API that can be incorporated into an 
  190. independently developed application program or a supplied program, ATSRESET.EXE 
  191. that can be executed at an OS/2 command line or from within a REXX or OS/2 
  192. Command procedure. 
  193.  
  194. Holiday 
  195.  
  196. Any day of the year can be defined as a holiday. By defining certain days as 
  197. holidays, you are then able to schedule a task to execute on a particular day 
  198. if it is a holiday or if it is not a holiday. 
  199.  
  200. Task 
  201.  
  202. A task is a program that you wish to run. The program can be an OS/2 full 
  203. screen application, an OS/2 windowed application, or an OS/2 PM application. A 
  204. task can be scheduled to run at a certain time of day, on certain days of the 
  205. week, on certain days of the month, on holidays, or not on holidays. In 
  206. addition, a task can optionally have an unlimited, number of dependencies. 
  207.  
  208.  
  209. ΓòÉΓòÉΓòÉ 7. Watchdog ΓòÉΓòÉΓòÉ
  210.  
  211. Watchdog is a separate product that allows another program to register with it 
  212. and if the registered product ends without canceling its registration, Watchdog 
  213. will automatically restart that program. 
  214.  
  215. Since ATS has been designed to be used in mission critical and lights out 
  216. applications, it has been developed to interface with Watchdog. When ATS is 
  217. started, it attempts to register with Watchdog. When ATS is shut down by a 
  218. user, it cancels its registration. If Watchdog is not active when ATS is 
  219. invoked, ATS will issue a warning to the user that says "Watchdog is not 
  220. active". It will also log this fact. 
  221.  
  222. Watchdog is owned by MHR Software And Consulting. Further information can be 
  223. obtained by mail at 2227 U.S. Highway #1, Suite 146, North Brunswick, NJ 08902 
  224. or by telephone at (908) 821-0359. 
  225.  
  226.  
  227. ΓòÉΓòÉΓòÉ 8. ATS Shortcut Keys ΓòÉΓòÉΓòÉ
  228.  
  229. Key     Function 
  230.  
  231. Alt+A   Display the About screen. 
  232.  
  233. Alt+C   Display the Add Log Comment screen. 
  234.  
  235. Alt+E   Create the Defined Events report. 
  236.  
  237. Alt+F   Display the Log File screen. 
  238.  
  239. Alt+H   Create the Defined Holidays report. 
  240.  
  241. Alt+K   Create the Defined Tasks report. 
  242.  
  243. Alt+L   Add the Log display window to the ATS main window. 
  244.  
  245. Alt+R   Add the Running Tasks display window to the ATS main window. 
  246.  
  247. Alt+S   Add the Status display window to the ATS main window. 
  248.  
  249. Alt+T   Tile the visible display windows. 
  250.  
  251. Ctrl+E  Display the Define Events screen. 
  252.  
  253. Ctrl+G  Display the Signal Event screen. 
  254.  
  255. Ctrl+H  Display the Define Holidays screen. 
  256.  
  257. Ctrl+P  Display the Preferences screen. 
  258.  
  259. Ctrl+S  Display the Define Tasks screen. 
  260.  
  261. Ctrl+T  Display the Timers screen. 
  262.  
  263. F3      Shut down ATS. 
  264.  
  265. ESC     Cancel the currently active screen. 
  266.  
  267. Lower and Upper case letters work alike. 
  268.  
  269.  
  270. ΓòÉΓòÉΓòÉ 9. ATS Reports ΓòÉΓòÉΓòÉ
  271.  
  272. ATS for OS/2 provides the ability to produce hard copy documentation of all 
  273. holidays, events, and tasks that are defined to the system. The reports are 
  274. generated in the background and can be directed to any file. 
  275.  
  276. The generated files are ASCII text that are 80 columns wide and have 58 lines 
  277. per page. These files can be printed by using the OS/2 PRINT command. 
  278.  
  279. Related Topics: 
  280.  
  281. o Defined Holidays Report 
  282. o Defined Events Report 
  283. o Defined Tasks Report 
  284.  
  285.  
  286. ΓòÉΓòÉΓòÉ 10. Defined Holidays Report ΓòÉΓòÉΓòÉ
  287.  
  288. The Defined Holidays report provides a list of all of the holidays that have 
  289. been defined to ATS. The report looks very similar to the holiday list on the 
  290. Define Holidays screen. 
  291.  
  292. To create the Defined Holidays Report: 
  293.  
  294. o Select Reports from the main ATS menu. 
  295.  
  296. o Select Defined Holidays from the Reports menu. 
  297.  
  298. o Select the file that you want the report written to. 
  299.  
  300. o Click on the OK button. 
  301.  
  302. The keyboard short cut key is: Alt+H. 
  303.  
  304. Related Topics: 
  305.  
  306. o ATS Reports 
  307. o Defined Events Report 
  308. o Defined Tasks Report 
  309.  
  310.  
  311. ΓòÉΓòÉΓòÉ 11. Defined Events Report ΓòÉΓòÉΓòÉ
  312.  
  313. The Defined Events report provides a list of all of the events that have been 
  314. defined to ATS. The report provides all of the detail that can be specified for 
  315. each type of event. 
  316.  
  317. For all events, the report provides the event name, the event type, and a list 
  318. of all of the tasks that are dependent upon it. 
  319.  
  320. For Job Termination events, the report adds the name of the task that the event 
  321. is dependent upon and the minimum and maximum allowed return codes defined for 
  322. the event. 
  323.  
  324. For File Modification events, the report adds the name of the file that the 
  325. event is dependent upon. 
  326.  
  327. To create the Defined Events Report: 
  328.  
  329. o Select Reports from the main ATS menu. 
  330.  
  331. o Select Defined Events from the Reports menu. 
  332.  
  333. o Select the file that you want the report written to. 
  334.  
  335. o Click on the OK button. 
  336.  
  337. The keyboard short cut key is: Alt+E. 
  338.  
  339. Related Topics: 
  340.  
  341. o ATS Reports 
  342. o Defined Holidays Report 
  343. o Defined Tasks Report 
  344.  
  345.  
  346. ΓòÉΓòÉΓòÉ 12. Defined Tasks Report ΓòÉΓòÉΓòÉ
  347.  
  348. The Defined Tasks report provides a list of all of the tasks that have been 
  349. defined to ATS. The report provides all of the detail that can be specified for 
  350. each task. 
  351.  
  352. For all defined tasks, the report provides the task name, the type of OS/2 
  353. session that the program runs in, the eligible date and time ranges, the 
  354. maximum number of concurrent occurrences that can be started by ATS, the full 
  355. path to and program name of the task, the input parameters for the task, the 
  356. working directory, for each day of the week and each day of the month, whether 
  357. the program should not be run, run only if it falls on a holiday, run if it 
  358. does not fall on a holiday or run regardless of if it is a holiday, and, for 
  359. special days of the month, whether the program should be run or not be run. 
  360.  
  361. D Don't Run 
  362.  
  363. R Run (regardless of holiday status) 
  364.  
  365. H Run only if it falls on a holiday 
  366.  
  367. N Run if it does not fall on a holiday 
  368.  
  369. To create the Defined Tasks Report: 
  370.  
  371. o Select Reports from the main ATS menu. 
  372.  
  373. o Select Defined Tasks from the Reports menu. 
  374.  
  375. o Select the file that you want the report written to. 
  376.  
  377. o Click on the OK button. 
  378.  
  379. The keyboard short cut key is: Alt+K. 
  380.  
  381. Related Topics: 
  382.  
  383. o ATS Reports 
  384. o Defined Holidays Report 
  385. o Defined Events Report 
  386.  
  387.  
  388. ΓòÉΓòÉΓòÉ 13. Display Windows ΓòÉΓòÉΓòÉ
  389.  
  390. The display windows give the user information about the current state of ATS, 
  391. what ATS has done in the current invocation, and what ATS invoked tasks are 
  392. currently executing. 
  393.  
  394. Related Topics: 
  395.  
  396. o View Log 
  397. o Status 
  398. o Running Tasks 
  399. o Tiling Display Windows 
  400.  
  401.  
  402. ΓòÉΓòÉΓòÉ 13.1. Tiling Display Windows ΓòÉΓòÉΓòÉ
  403.  
  404. When you select the Tiling option on the Windows menu, ATS will divide the 
  405. space in the ATS screen evenly and stack each of the visible windows one on top 
  406. of the other. 
  407.  
  408. The order of stacking is constant. The ATS Log window, if visible, is always on 
  409. the top. The ATS Running Tasks window, if visible, is always on the bottom. The 
  410. ATS Status window, if visible, is on the top if the ATS Log window is not 
  411. visible, on the bottom if the ATS Running Tasks window is not visible, and in 
  412. the middle if all three windows are visible. 
  413.  
  414. When the ATS main window is re-sized, the display windows will be automatically 
  415. re-tiled. 
  416.  
  417. To tile the display windows: 
  418.  
  419. o Select Windows from the main ATS menu. 
  420.  
  421. o Select Tile from the Windows menu 
  422.  
  423. The keyboard short cut key is: Alt+T 
  424.  
  425. Related Topics: 
  426.  
  427. o View Log 
  428. o Status 
  429. o Running Tasks 
  430.  
  431.  
  432. ΓòÉΓòÉΓòÉ 13.2. Log Display Window ΓòÉΓòÉΓòÉ
  433.  
  434. Selecting the Log option on the Windows menu will cause the log window to be 
  435. opened if it is not already. If it is, choosing this option will close it. The 
  436. log window contains a record for each notable event that takes place within the 
  437. ATS system. 
  438.  
  439. The ATS Log window displays the all of the messages that have been written to 
  440. the ATS log during the current ATS session. When the on-line log fills up, the 
  441. log is refreshed by clearing out all of the entries and starting over. 
  442.  
  443. To display the Log display window: 
  444.  
  445. o Select Windows from the main ATS menu. 
  446.  
  447. o Select Log from the Windows menu. 
  448.  
  449. The keyboard short cut key is: Alt+L 
  450.  
  451. Related Topics: 
  452.  
  453. o Status 
  454. o Running Tasks 
  455. o Log Comment 
  456. o Tiling Display Windows 
  457. o On Line Log Size 
  458.  
  459.  
  460. ΓòÉΓòÉΓòÉ 13.3. Status Display Window ΓòÉΓòÉΓòÉ
  461.  
  462. Selecting the Status option on the Windows menu will cause the status window to 
  463. be opened if it is not already. If it is, choosing this option will close it. 
  464.  
  465. The ATS Status window displays the current state of ATS. It provides you with 
  466. all of the current ATS statistics. 
  467.  
  468. The following information is displayed: 
  469.  
  470. o The date and time the current ATS session was started. 
  471.  
  472. o The date and time of the latest clock check. 
  473.  
  474. o The date and time of the latest file check. 
  475.  
  476. o The current clock check interval setting. 
  477.  
  478. o The current file check interval setting. 
  479.  
  480. o The current on-line log size setting. 
  481.  
  482. o The name of the current log file. 
  483.  
  484. o The number of defined holidays. 
  485.  
  486. o The date, name and day of week of each defined holiday. 
  487.  
  488. o The number of defined events. 
  489.  
  490. o The name of each defined event and optionally the task name or file name 
  491.   associated with it. 
  492.  
  493. o The number of defined tasks. 
  494.  
  495. o The name and program name of each task. 
  496.  
  497. o The number of dependencies for each task. 
  498.  
  499. o The name of each dependency for each task and whether it has occurred (TRUE) 
  500.   or not (FALSE). 
  501.  
  502. To display the Status display window: 
  503.  
  504. o Select Windows from the main ATS menu. 
  505.  
  506. o Select Status from the Windows menu. 
  507.  
  508. The Keyboard short cut key is: Alt+S 
  509.  
  510. Related Topics: 
  511.  
  512. o Log 
  513. o Running Tasks 
  514. o Tiling Display Windows 
  515.  
  516.  
  517. ΓòÉΓòÉΓòÉ 13.4. Running Tasks Display Window ΓòÉΓòÉΓòÉ
  518.  
  519. Selecting the Running Tasks option on the Windows menu will cause the Running 
  520. Tasks window to be opened if it is not already. If it is, choosing this option 
  521. will close it. 
  522.  
  523. The ATS Running Tasks window displays a list of all of the currently executing 
  524. child tasks and all of the independent sessions that were started by ATS during 
  525. the current ATS session. 
  526.  
  527. The following information is displayed for each invoked task: 
  528.  
  529. o Task Name. 
  530.  
  531. o Start Date and Time. 
  532.  
  533. o Session ID (000 for Independent Sessions). 
  534.  
  535. o Process ID (0000 for Independent Sessions). 
  536.  
  537. Tasks invoked as child sessions will be automatically removed from the Running 
  538. Tasks display window when they terminate. Tasks invoked as independent sessions 
  539. will remain in the display until ATS is shut down. 
  540.  
  541. To display the Running Tasks display window: 
  542.  
  543. o Select Windows from the main ATS menu. 
  544.  
  545. o Select Running Tasks from the Windows menu. 
  546.  
  547. The keyboard short cut key is: Alt+R 
  548.  
  549. Related Topics: 
  550.  
  551. o Status 
  552. o Running Tasks 
  553. o Tiling Display Windows 
  554.  
  555.  
  556. ΓòÉΓòÉΓòÉ 14. Logging ΓòÉΓòÉΓòÉ
  557.  
  558. ATS logs all activity that takes place during the ATS sessions. This includes, 
  559. but is not limited to, creating, editing and deleting tasks, events, and 
  560. holidays, initiation and termination of tasks, modification of options, and 
  561. errors. 
  562.  
  563. Related Topics: 
  564.  
  565. o Log Comment 
  566. o Specifying The Log File 
  567.  
  568.  
  569. ΓòÉΓòÉΓòÉ 15. Log Comment ΓòÉΓòÉΓòÉ
  570.  
  571. Selecting the Log Comment option on the File menu will cause a dialog box to be 
  572. displayed in which the user can enter text that will be written into the ATS 
  573. for OS/2 log. 
  574.  
  575. You can insert a comment into the log at any point. Log comments go into the 
  576. log with the standard log entry prefix of date and time. 
  577.  
  578. To display the Add Log Comment screen: 
  579.  
  580. o Select File from the main ATS menu. 
  581.  
  582. o Select Log Comment from the File menu. 
  583.  
  584. The keyboard short cut key is: Alt+F. 
  585.  
  586. To insert Comments Into the Log File: 
  587.  
  588. o Enter any text that you wish into the entry field. You can enter a maximum of 
  589.   116 characters per log entry. 
  590.  
  591. o Click on the Add button if you wish to add more than one comment. 
  592.  
  593. o Click on the Add/Quit button if you wish to add the current comment and 
  594.   dismiss the dialog box. 
  595.  
  596. o Click on the Cancel button if you do not wish to add the current comment and 
  597.   want to dismiss the dialog box. 
  598.  
  599. Related Topics: 
  600.  
  601. o View Log 
  602. o Specifying The Log File 
  603.  
  604.  
  605. ΓòÉΓòÉΓòÉ 16. Specifying The Log File ΓòÉΓòÉΓòÉ
  606.  
  607. To display the Log File screen: 
  608.  
  609. o Select File from the main ATS menu. 
  610.  
  611. o Select Log File from the File menu. 
  612.  
  613. The keyboard short cut key is: Alt+F. 
  614.  
  615. Specifying a New Log File 
  616.  
  617. To open a new ATS log file, enter the new log file name in the Open filename 
  618. field or use the Drive, Directory, and File list boxes to select on. 
  619.  
  620. Log File Initialization 
  621.  
  622. If the selected log file already exists, ATS will prompt you to specify if it 
  623. should truncate the data in the new file or append new data to it. 
  624.  
  625. ATS will write one entry to the old log file indicating that it is being closed 
  626. and another indicating the name of the new log file. 
  627.  
  628. When ATS opens the new log file, it will write one entry to the new log file 
  629. indicating that it has just been opened and another one indicating the name of 
  630. the previous one. 
  631.  
  632. Related Topics: 
  633.  
  634. o Log Comment 
  635. o View Log 
  636.  
  637.  
  638. ΓòÉΓòÉΓòÉ 17. Holidays ΓòÉΓòÉΓòÉ
  639.  
  640. You can define an unlimited number of holidays. Any day of the year can be 
  641. defined as a holiday. A holiday definition consists of a date, a name, and a 
  642. day of week. By defining certain days as holidays, you are then able to 
  643. schedule a task to execute on a particular day if it is a holiday or if it is 
  644. not a holiday. 
  645.  
  646. To display the Define Holidays screen: 
  647.  
  648. o Select Edit from the main ATS menu. 
  649.  
  650. o Select Holidays from the Edit menu. 
  651.  
  652. The keyboard short cut key is: Ctrl+H. 
  653.  
  654. Related Topics: 
  655.  
  656. o Adding A New Holiday 
  657. o Editing An Existing Holiday 
  658. o Deleting An Existing Holiday 
  659.  
  660.  
  661. ΓòÉΓòÉΓòÉ 17.1. Adding A New H.oliday ΓòÉΓòÉΓòÉ
  662.  
  663. Insure that you are in Add Mode. The mode is indicated in the title bar of the 
  664. dialog box. If you are in Add Mode, the title will be "ATS for OS/2 - Define 
  665. Holidays (Add)" and the Mode Change button (located in the lower right corner 
  666. of the dialog box will be labeled "Edit Mode". If you are not in Add Mode, 
  667. click on the Mode Change button (it will be labeled "Add Mode"). 
  668.  
  669. Steps: 
  670.  
  671. o Enter a valid date in the Date field. 
  672.  
  673. o Enter text in the Holiday field that describes the holiday. You can enter a 
  674.   maximum of 32 characters. 
  675.  
  676. o Click on the Add button. 
  677.  
  678. If the date that you entered is invalid or is already defined as a holiday, an 
  679. error message will be displayed. 
  680.  
  681. If the date is valid and is not already defined as a holiday, the day of week 
  682. field will be updated, the holiday will be added to the ATS calendar, and the 
  683. entry will appear in the list box. 
  684.  
  685. Related Topics: 
  686.  
  687. o Holidays 
  688. o Editing An Existing Holiday 
  689. o Deleting An Existing Holiday 
  690.  
  691.  
  692. ΓòÉΓòÉΓòÉ 17.2. Deleting An Existing Holiday ΓòÉΓòÉΓòÉ
  693.  
  694. Insure that you are in Edit Mode. The mode is indicated in the title bar of the 
  695. dialog box. If you are in Edit Mode, the title will be "ATS for OS/2 - Define 
  696. Holidays (Edit)" and the Mode Change button (located in the lower right corner 
  697. of the dialog box will be labeled "Add Mode". If you are not in Edit Mode, 
  698. click on the Mode Change button (it will be labeled "Edit Mode"). 
  699.  
  700. Steps: 
  701.  
  702. o Select the entry in the list box that you wish to delete. 
  703.  
  704. o Click on the Delete button. 
  705.  
  706. If the "Warn on Delete" option on the Preferences screen was selected, a 
  707. message box will appear asking you to confirm the deletion. 
  708.  
  709. If "Warn on Delete" is off or if you answered yes to the deletion confirmation, 
  710. the holiday will be removed from the ATS calendar, and the entry will be 
  711. removed from the list box. 
  712.  
  713. Related Topics: 
  714.  
  715. o Holidays 
  716. o Adding A New Holiday 
  717. o Editing An Existing Holiday 
  718.  
  719.  
  720. ΓòÉΓòÉΓòÉ 17.3. Editing An Existing Holiday ΓòÉΓòÉΓòÉ
  721.  
  722. Insure that you are in Edit Mode. The mode is indicated in the title bar of the 
  723. dialog box. If you are in Edit Mode, the title will be "ATS for OS/2 - Define 
  724. Holidays (Edit)" and the Mode Change button (located in the lower right corner 
  725. of the dialog box will be labeled "Add Mode". If you are not in Edit Mode, 
  726. click on the Mode Change button (it will be labeled "Edit Mode"). 
  727.  
  728. Steps: 
  729.  
  730. o Select the entry in the list that you wish to edit. 
  731.  
  732. o Enter a valid date in the Date field. 
  733.  
  734. o Enter text in the Holiday field that describes the holiday. You can enter a 
  735.   maximum of 32 characters. 
  736.  
  737. o Click on the OK button. 
  738.  
  739. If the "Warn on Edit" option on the Preferences screen was selected, a message 
  740. box will appear asking you to confirm the changes. 
  741.  
  742. If the date that you entered is invalid or is already defined as a holiday, an 
  743. error message will be displayed. 
  744.  
  745. If the date is valid and is not already defined as a holiday, the day of week 
  746. field will be updated, the holiday will be edited in the ATS calendar, and the 
  747. entry will be refreshed in the list box. 
  748.  
  749. Related Topics: 
  750.  
  751. o Holidays 
  752. o Adding A New Holiday 
  753. o Deleting An Existing Holiday 
  754.  
  755.  
  756. ΓòÉΓòÉΓòÉ 18. Signal Event ΓòÉΓòÉΓòÉ
  757.  
  758. Selecting the Signal Event option on the ATS main menu will cause the Signal 
  759. Event screen to be displayed. 
  760.  
  761. This is one of three ways that a Signal Event can be flagged as having 
  762. occurred. The other two are the ATSSGNL.EXE program provided, or embedding the 
  763. provided API into your own application. 
  764.  
  765. When an event is flagged as having occurred, it is flagged for all tasks that 
  766. currently have that event defined as a dependency of it. 
  767.  
  768. To display the Signal Event screen: 
  769.  
  770. o Select Signal Event from the main ATS menu. 
  771.  
  772. The keyboard short cut key is: Ctrl+G. 
  773.  
  774. Signaling an Event 
  775.  
  776. o Select the event from the Events list box. 
  777.  
  778. o Click on the Signal button. 
  779.  
  780. o Click on Cancel to dismiss the screen or repeat the above steps to signal 
  781.   another event. 
  782.  
  783. Double clicking on an entry in the Events list box is the same as doing the 
  784. first two steps above. 
  785.  
  786.  
  787. ΓòÉΓòÉΓòÉ 19. Define Events ΓòÉΓòÉΓòÉ
  788.  
  789. You use the Define Events screen to create, modify and remove events that will 
  790. be used as dependencies for scheduled tasks. 
  791.  
  792. An event is something that happens. This can be either a file being modified 
  793. (File Modification), the completion of a task that was scheduled through and 
  794. initiated by ATS (Task Completion), or notification that something has occurred 
  795. (Signal Event). Signal Event notification can come from either a provided API 
  796. that has been embedded in an application program, running the supplied program 
  797. ATSSGNL.EXE, or from selecting SIGNAL EVENT on the main menu of ATS. ATS allows 
  798. you to clear the flag that indicates that an event has occurred. There are two 
  799. different ways to do this. They are: an API that can be incorporated into an 
  800. independently developed application program or a supplied program that can be 
  801. executed at an OS/2 command line or from within a REXX or OS/2 Command 
  802. procedure. 
  803.  
  804. To display the Define Events screen: 
  805.  
  806. o Select Edit from the main ATS menu. 
  807.  
  808. o Select Events from the Edit menu. 
  809.  
  810. The keyboard short cut key is: Ctrl+E. 
  811.  
  812. Types of Events 
  813.  
  814. o Job Termination 
  815.  
  816. o File Modification 
  817.  
  818. o Signal Event 
  819.  
  820. Screen Elements 
  821.  
  822. o Common Elements 
  823.  
  824. o Job Termination Elements 
  825.  
  826. o File Modification Elements 
  827.  
  828. Defining Events 
  829.  
  830. o Adding A New Event 
  831.  
  832. o Editing An Existing Event 
  833.  
  834. o Deleting An Existing Event 
  835.  
  836. Related Topics: 
  837.  
  838. o Define Schedule 
  839. o Define Dependencies 
  840.  
  841.  
  842. ΓòÉΓòÉΓòÉ 19.1. Job Termination Events ΓòÉΓòÉΓòÉ
  843.  
  844. A Job Termination event is an event that will be flagged as having occurred 
  845. when the associated job (a task that is scheduled and executed through ATS) 
  846. completes and the associated jobs return code falls within the defined return 
  847. code range. In order for a task to be used as a Job Termination event, it must 
  848. run as a child process of ATS. Any task that is scheduled through ATS and does 
  849. not have the Independent Session option selected on the Task Edit screen will 
  850. run as a child process of ATS. 
  851.  
  852.  
  853. ΓòÉΓòÉΓòÉ 19.2. File Modification Events ΓòÉΓòÉΓòÉ
  854.  
  855. A File Modification event is an event that will be flagged as having occurred 
  856. when the associated file is updated and is available for reading and writing. 
  857. The file is checked periodically to see if its statistics have changed and if 
  858. it is available. The interval between file checks is determined by the setting 
  859. of the File Check timer. 
  860.  
  861.  
  862. ΓòÉΓòÉΓòÉ 19.3. Signal Events ΓòÉΓòÉΓòÉ
  863.  
  864. A Signal Event event is an event that will be flagged as having occurred when a 
  865. signal is received from either an API that has been incorporated into an 
  866. independently developed application program, a supplied executable, 
  867. ATSSGNL.EXE, that can be executed at an OS/2 command line or from within a REXX 
  868. or OS/2 Command procedure, or through a menu option on the ATS main window. 
  869.  
  870.  
  871. ΓòÉΓòÉΓòÉ 19.4. Common Event Elements ΓòÉΓòÉΓòÉ
  872.  
  873. Event Name 
  874. The name given to a particular event by the user. This name must be unique 
  875. among all events. The Event Name can be up to 12 characters long. This field is 
  876. required for all event definitions. 
  877.  
  878. Event Type 
  879. Defines the characteristics of the event and how it is flagged as having 
  880. occurred. The three possibilities are: Job Termination, File Modification, and 
  881. Signal Event. This field is required for all event definitions. 
  882.  
  883.  
  884. ΓòÉΓòÉΓòÉ 19.5. Job Termination Event Elements ΓòÉΓòÉΓòÉ
  885.  
  886. Minimum Return Code 
  887. The lowest possible value returned by the dependent task that will cause this 
  888. event to be flagged as having occurred. This value can be up to 5 digits or 4 
  889. digits and a leading sign. This value must be less than the Maximum Return 
  890. Code. This field is only required for Job Termination events. 
  891.  
  892. Maximum Return Code 
  893. The highest possible value returned by the dependent task that will cause this 
  894. event to be flagged as having occurred. This value can be up to 5 digits or 4 
  895. digits and a leading sign. This value must be greater than the Minimum Return 
  896. Code. This field is only required for Job Termination events. 
  897.  
  898. Task 
  899. The name of the task which this event is dependent upon. The task is specified 
  900. by selecting one task from the Tasks list box. A scheduled task can not be 
  901. dependent upon its own completion. Therefore, a Signal Event event can not be 
  902. defined as a dependency of the task of which it is dependent upon. This field 
  903. is only required for Job Termination events. 
  904.  
  905.  
  906. ΓòÉΓòÉΓòÉ 19.6. File Modification Event Elements ΓòÉΓòÉΓòÉ
  907.  
  908. Full File Name 
  909. The drive, path, and name of the file that is being monitored for this event. 
  910. The drive, path and name can contain a maximum of 255 characters. This field is 
  911. only required for File Modification events. 
  912.  
  913.  
  914. ΓòÉΓòÉΓòÉ 19.7. Adding A New Event ΓòÉΓòÉΓòÉ
  915.  
  916. Insure that you are in Add Mode. The mode is indicated in the title bar of the 
  917. dialog box. If you are in Add Mode, the title will be "ATS for OS/2 - Define 
  918. Events (Add)". and the Mode Change button (located in the lower right corner of 
  919. the dialog box will be labeled "Edit Mode". If you are not in Add Mode, click 
  920. on the mode change button (it will be labeled "Add Mode"). 
  921.  
  922. Steps: 
  923.  
  924. o Fill in the required fields. 
  925.  
  926. o Click on the Add button. 
  927.  
  928. If the name that you entered is already defined or a required field is missing 
  929. or out of range, an error message will be displayed. 
  930.  
  931. If all required fields are filled in and within range, the event will be added 
  932. to the ATS event list, and the event name will appear in the Events list box. 
  933.  
  934.  
  935. ΓòÉΓòÉΓòÉ 19.8. Deleting An Existing Event ΓòÉΓòÉΓòÉ
  936.  
  937. Insure that you are in Edit Mode. The mode is indicated in the title bar of the 
  938. dialog box. If you are in Edit Mode, the title will be "ATS for OS/2 - Define 
  939. Events (Edit)". and the Mode Change button (located in the lower right corner 
  940. of the dialog box will be labeled "Add Mode". If you are not in Edit Mode, 
  941. click on the mode change button (it will be labeled "Edit Mode"). 
  942.  
  943. Steps: 
  944.  
  945. o Select the entry in the Events list box that you wish to delete. 
  946.  
  947. o Click on the Delete button. 
  948.  
  949. If the "Warn on Delete" option on the Preferences screen was selected, a 
  950. message box will appear asking you to confirm the deletion. 
  951.  
  952. If "Warn on Delete" is off or if you answered yes to the deletion confirmation, 
  953. the event will be removed from the ATS event list, and the entry will be 
  954. removed from the Events list box. 
  955.  
  956.  
  957. ΓòÉΓòÉΓòÉ 19.9. Editing An Existing Event ΓòÉΓòÉΓòÉ
  958.  
  959. Insure that you are in Edit Mode. The mode is indicated in the title bar of the 
  960. dialog box. If you are in Edit Mode, the title will be "ATS for OS/2 - Define 
  961. Events (Edit)". and the Mode Change button (located in the lower right corner 
  962. of the dialog box will be labeled "Add Mode". If you are not in Edit Mode, 
  963. click on the mode change button (it will be labeled "Edit Mode"). 
  964.  
  965. steps 
  966.  
  967.  1. Select the entry in the Events list box that you wish to edit. 
  968.  
  969.  2. Enter the changes that you want, insuring that you fill in all of the 
  970.     required fields. 
  971.  
  972.  3. Click on the OK button. 
  973.  
  974. If the "Warn on Edit" option on the Preferences screen was selected, a message 
  975. box will appear asking you to confirm the changes. 
  976.  
  977. If the name that you entered is already defined or a required field, as defined 
  978. above in Section 5.2. Event Characteristics is missing or out of range, an 
  979. error message will be displayed. 
  980.  
  981. If all required fields are filled in and within range, the event will be added 
  982. to the ATS event list, and the event name will appear in the Events list box. 
  983.  
  984.  
  985. ΓòÉΓòÉΓòÉ 20. Define Dependencies ΓòÉΓòÉΓòÉ
  986.  
  987. You use this screen to link events to tasks. An event can be a dependent of 
  988. zero, one or more tasks. A task can have zero, one or more dependencies. 
  989.  
  990. A dependency is a link between an event and a task. An event can be a 
  991. dependency for one or more tasks. A task can be dependent upon one or more 
  992. events. Actually, an event can be defined and not be a dependency of any task 
  993. and a task can be defined without having being dependent upon any event. 
  994.  
  995. To display the Define Task Dependencies screen: 
  996.  
  997. o Select Edit from the main ATS menu. 
  998.  
  999. o Select Tasks from the Edit menu. 
  1000.  
  1001.   The keyboard short cut key is: Ctrl+S. 
  1002.  
  1003. o Select the task that you want to add/edit/delete dependencies for. 
  1004.  
  1005. o Click on the Dependencies button. 
  1006.  
  1007. Defining Dependencies 
  1008.  
  1009. o Adding A Dependency 
  1010.  
  1011. o Removing A Dependency 
  1012.  
  1013. o Defining An Event 
  1014.  
  1015. Related Topics: 
  1016.  
  1017. o Define Schedule 
  1018. o Define Events 
  1019.  
  1020.  
  1021. ΓòÉΓòÉΓòÉ 20.1. Adding A Dependency ΓòÉΓòÉΓòÉ
  1022.  
  1023. Steps: 
  1024.  
  1025. o Select the event, from the Defined Events list box, that you want to be a 
  1026.   dependency of the current task. 
  1027.  
  1028. o Click on the Add>> button. 
  1029.  
  1030. If the task is already listed in the Dependencies list box, ATS will just beep. 
  1031.  
  1032. If you did not select a task from the Defined Events list box, ATS will just 
  1033. beep. 
  1034.  
  1035. If the selected event is not already in the Dependencies list box, ATS will add 
  1036. the event as a dependency of the current task and add it to the Dependencies 
  1037. list box. 
  1038.  
  1039.  
  1040. ΓòÉΓòÉΓòÉ 20.2. Removing A Dependency ΓòÉΓòÉΓòÉ
  1041.  
  1042. Steps: 
  1043.  
  1044. o Select the event, from the Dependencies list box, that you want to remove. 
  1045.  
  1046. o Click on the Remove<< button. 
  1047.  
  1048. If you did not select a task from the Dependencies list box, ATS will just 
  1049. beep. 
  1050.  
  1051. ATS will remove the event as a dependency of the current task and remove it 
  1052. from Dependencies list box. 
  1053.  
  1054.  
  1055. ΓòÉΓòÉΓòÉ 20.3. Defining An Event ΓòÉΓòÉΓòÉ
  1056.  
  1057. Clicking on the Define Event button on the Define Task Dependencies screen will 
  1058. bring up the Define Events screen. You can add new events, delete existing 
  1059. events, or edit existing events. When you return to the Define Task 
  1060. Dependencies screen, the Defined Events list box and the Dependencies list box 
  1061. will be refreshed. 
  1062.  
  1063. If an event is deleted, it is removed as a dependency from all tasks. 
  1064.  
  1065.  
  1066. ΓòÉΓòÉΓòÉ 21. Define Tasks ΓòÉΓòÉΓòÉ
  1067.  
  1068. To display the Task Selection screen: 
  1069.  
  1070. o Select Edit from the main ATS menu. 
  1071.  
  1072. o Select Tasks from the Edit menu. 
  1073.  
  1074. The keyboard short cut key is: Ctrl+S. 
  1075.  
  1076. Defining Tasks 
  1077.  
  1078. o Adding A New Task 
  1079.  
  1080. o Editing An Existing Task 
  1081.  
  1082. o Deleting An Existing Task 
  1083.  
  1084. o Task Definition Elements 
  1085.  
  1086. Related Topics: 
  1087.  
  1088. o Define Events 
  1089. o Define Dependencies 
  1090.  
  1091.  
  1092. ΓòÉΓòÉΓòÉ 21.1. Adding A New Task ΓòÉΓòÉΓòÉ
  1093.  
  1094. Click on the New Task button on the Task Selection screen. When you select this 
  1095. option, the Define Task screen will be brought up. If no tasks are defined when 
  1096. you select the Schedule Tasks option on the Edit menu of the main ATS window, 
  1097. this screen will be bypassed and the Define Task screen will be brought up 
  1098. directly. 
  1099.  
  1100.  
  1101. ΓòÉΓòÉΓòÉ 21.2. Deleting An Existing Task ΓòÉΓòÉΓòÉ
  1102.  
  1103. Steps: 
  1104.  
  1105. o Select a task by clicking on it in the Task Selection list box. 
  1106.  
  1107. o Click on the Delete Task button. 
  1108.  
  1109. If the "Warn on Delete" option on the Preferences screen was selected, a 
  1110. message box will appear asking you to confirm the deletion. 
  1111.  
  1112. If "Warn on Delete" is off or if you answered yes to the deletion confirmation, 
  1113. the event will be removed from the ATS task list and the entry will be removed 
  1114. from the Task Selection list box. 
  1115.  
  1116.  
  1117. ΓòÉΓòÉΓòÉ 21.3. Editing An Existing Task ΓòÉΓòÉΓòÉ
  1118.  
  1119. Steps: 
  1120.  
  1121. o Select a task by clicking on it in the Task Selection list box. 
  1122.  
  1123. o Click on the OK button. 
  1124.  
  1125. Double clicking on the entry in the Task Selection list box is the same as 
  1126. doing both of the above steps. 
  1127.  
  1128.  
  1129. ΓòÉΓòÉΓòÉ 21.4. Task Definition Elements ΓòÉΓòÉΓòÉ
  1130.  
  1131. Task Name 
  1132.  
  1133. Task Name is the name given to a particular task by the user. This name must be 
  1134. unique among all tasks. The Task Name can be up to 12 characters long. This 
  1135. field is required for all task definitions. 
  1136.  
  1137. Day of Week 
  1138.  
  1139. You can select the days of the week that you want the task to be allowed to 
  1140. run. You can further define if the task should run if the particular day of the 
  1141. week is a holiday, if it is not a holiday, or regardless of its holiday status. 
  1142. If you have set the slider to "Don't Run", then even if all of the dependencies 
  1143. for this task are satisfied, the task will not be initiated. If you have set 
  1144. the slider to "Run", then if all of the dependencies for this task are 
  1145. satisfied, the task will be initiated. If you have set the slider to "Holiday", 
  1146. then if all of the dependencies for this task are satisfied and the day of the 
  1147. week falls on a defined holiday, the task will be initiated. If you have set 
  1148. the slider to "Non-Holiday", then if all of the dependencies for this task are 
  1149. satisfied and the day of the week does not fall on a defined holiday, the task 
  1150. will be initiated. 
  1151.  
  1152. If you set all of the days of the week to "Don't Run", a warning message will 
  1153. be displayed informing you that the task will never run. 
  1154.  
  1155. Valid Months 
  1156.  
  1157. You can select which months a particular task is allowed to run in. If the 
  1158. radio button to the left of the months abbreviation is selected, the task is 
  1159. eligible to run in that month. If the month is not selected, if all of the 
  1160. other criteria for running the job are satisfied, the job will not be invoked. 
  1161.  
  1162. If you fail to select any month, a warning message will be displayed informing 
  1163. you that the task will never run. 
  1164.  
  1165. Dates and Times 
  1166.  
  1167. You can specify the hours during the day that a particular task can be 
  1168. initiated. If all of the other criteria are satisfied but the current time is 
  1169. not within the start/end time range, the task will not be started. The start 
  1170. and end times can be from 00:00 to 23:59. The start time does not have to be 
  1171. earlier than the end date. If it is not, then the time range will be assumed to 
  1172. span midnight. 
  1173.  
  1174. You can specify the dates that a particular task can be initiated. If all of 
  1175. the other criteria are satisfied but the current date is not within the 
  1176. start/end date range, the task will not be started. The start and end dates can 
  1177. be from 01/01/1993 to 12/31/2025. The start date must be before the end date or 
  1178. a warning message will be displayed. 
  1179.  
  1180. The allowed date and time ranges are independent of each other. 
  1181.  
  1182. Refer to Section 10. Invoking Tasks for more information on how the date and 
  1183. time fields are used to determine when a task will be started. 
  1184.  
  1185. Day of Month 
  1186.  
  1187. You can select the days of the month that you want the task to be allowed to 
  1188. run. You can further define if the task should run if the particular day of the 
  1189. month is a holiday, if it is not a holiday, or regardless of its holiday 
  1190. status. If you have set the slider to "Don't Run", then even if all of the 
  1191. dependencies for this task are satisfied, the task will not be initiated. If 
  1192. you have set the slider to "Run", then if all of the dependencies for this task 
  1193. are satisfied, the task will be initiated. If you have set the slider to 
  1194. "Holiday", then if all of the dependencies for this task are satisfied and the 
  1195. day of the month falls on a defined holiday, the task will be initiated. If you 
  1196. have set the slider to "Non-Holiday", then if all of the dependencies for this 
  1197. task are satisfied and the day of the month does not fall on a defined holiday, 
  1198. the task will be initiated. 
  1199.  
  1200. There are 5 special days of the month. They are 1) "L" the last day of the 
  1201. month, 2) "LB" the last business day of the month, 3) "FB" the first business 
  1202. day of the month, 4) "B15" the last business day of the month before the 15th, 
  1203. and 5) "A15" the first business day of the month after the 15th. Saturdays, 
  1204. Sundays, and holidays are considered to be non-business days. 
  1205.  
  1206. If you set all of the days of the month to "Don't Run", a warning message will 
  1207. be displayed informing you that the task will never run. 
  1208.  
  1209. Program Details 
  1210.  
  1211. Program Name is the drive, path, and name of the executable associated with 
  1212. this task that is to be run when all of the dependencies for the task are 
  1213. satisfied. The drive, path and name can contain a maximum of 255 characters. 
  1214. This field is required for all tasks. 
  1215.  
  1216. Parameters is a string that is passed to the executable when it is invoked by 
  1217. ATS. The Parameters field can contain a maximum of 255 characters. This field 
  1218. is optional. 
  1219.  
  1220. Working Directory is the drive and path where the executable will be invoked 
  1221. from. The drive and path can contain a maximum of 255 characters. This field is 
  1222. optional. 
  1223.  
  1224. Session Type 
  1225.  
  1226. You must select how the task should be run. The options are Full Screen, OS/2 
  1227. Window, PM, or CMD File. Additionally, you can specify that the program be run 
  1228. in the background. If you do not select the background option, ATS will attempt 
  1229. to make the executed task the active session. Sometimes this is not possible. 
  1230.  
  1231. Independent Session 
  1232.  
  1233. You must also decide if the task should run as a child process of ATS or as an 
  1234. independent session. If the task runs as a child of ATS, then when the program 
  1235. ends, the system will notify ATS and provide the return code from the scheduled 
  1236. task. ATS will use this information to signal any dependent tasks, remove the 
  1237. item from the Running Tasks window, and place an entry in the ATS log 
  1238. indicating that the task has ended. 
  1239.  
  1240. Independent tasks are recorded in the ATS log and in the Running Tasks window. 
  1241. However, because the system does not notify ATS when the task ends, they are 
  1242. not removed from the Running Tasks window and no termination entry is placed in 
  1243. the ATS log. Because ATS can not determine when an independent session has 
  1244. ended, it is recommended that all scheduled tasks be run as child processes 
  1245. unless it is absolutely necessary to run it as an independent session. 
  1246.  
  1247. If ATS is terminated, whether normally or abnormally, any task that is a child 
  1248. of ATS will be terminated by the system. If there are active child tasks 
  1249. running and a user attempts to shut down ATS, ATS will display a warning 
  1250. message. 
  1251.  
  1252. Dependencies 
  1253.  
  1254. The Dependencies box on the ATS Task Edit screen displays the number of 
  1255. dependencies, by type, that the current task has. The information in this box 
  1256. is for display only and can not be changed by the user. 
  1257.  
  1258. Edit Dependencies 
  1259.  
  1260. Clicking on the Dependencies button will bring up the ATS Define Task 
  1261. Dependencies dialog box. This screen is used to link events with the current 
  1262. task. For further information, refer to Section 7. Dependencies. 
  1263.  
  1264. Concurrent Occurrences 
  1265.  
  1266. The Concurrent Occurrences field is used to limit how many concurrent 
  1267. occurrences of this task ATS can invoke. i.e. If this number is set to 1 and 
  1268. the task is active, even if all of the dependencies and other criteria are 
  1269. satisfied, ATS will not invoke the transaction. This does not apply to 
  1270. independent sessions since ATS does not know if the task is truly active. 
  1271.  
  1272. If you set this value to 0 (zero), then ATS will never invoke this task. This 
  1273. can be used as a way of archiving a task for a period of time without having to 
  1274. remove it from ATS and then rebuild it at a later date. This does apply to 
  1275. independent tasks. 
  1276.  
  1277.  
  1278. ΓòÉΓòÉΓòÉ 22. Invoking Tasks ΓòÉΓòÉΓòÉ
  1279.  
  1280. ATS will attempt to invoke tasks either when the clock timer or file timer 
  1281. elapse. ATS will perform the following steps to determine if a task should be 
  1282. invoked: 
  1283.  
  1284. o Determine if another occurrence of the task can be invoked. 
  1285. o Determine if the current date is within the specified date range. 
  1286. o Determine if the current time is within the specified time range. 
  1287. o Determine if all dependencies are satisfied. 
  1288. o Determine if the task can be run on the current day of the week. 
  1289. o Determine if the task can be run on the current day of the month. 
  1290. o Determine if the task can be run in the current month. 
  1291.  
  1292. After invoking a task, ATS will unflag all dependent events for the started 
  1293. task. If an event is a dependency of more than one task, only the event for the 
  1294. invoked task is unflagged. The flag indicating that an event has occurred is 
  1295. maintained at a task level. 
  1296.  
  1297. Considerations 
  1298.  
  1299. The date range and time range are independent of each other. They define the 
  1300. days and time of day that ATS is allowed to run the task. 
  1301.  
  1302. For example, if you set the start date to 11/14/1993 and the end date to 
  1303. 12/21/1993 then even if all of the other criteria for initiating the task are 
  1304. satisfied, ATS will not start the task if the current system date is not within 
  1305. the specified date range. Likewise, if you set the start time to 10:00 and the 
  1306. end time to 11:00, then ATS will only start the task if the current system time 
  1307. is between 10:00 and 11:00. 
  1308.  
  1309. Short Running Tasks with No Dependencies 
  1310.  
  1311. Because of the robustness of ATS, short running tasks present a problem. The 
  1312. problem is that the task might be initiated multiple times even if that is not 
  1313. what you had wanted. 
  1314.  
  1315. For a particular task, assume that you set the start time to 13:00 and the end 
  1316. time to 13:00. You would assume that ATS will only star that task if the 
  1317. current clock reading is 13:00. However, this is not totally true. Since the 
  1318. computer that ATS runs on allows anyone with keyboard access to adjust the 
  1319. system clock, ATS had to be designed to ensure that every job that is supposed 
  1320. to run does even if the system clock is changed. In order to handle this, each 
  1321. time ATS checks the system clock, it will initiate any task that has a start 
  1322. time that falls between the current system clock time and the system clock time 
  1323. from the previous check. This also allows you to set the check interval to 10 
  1324. minutes and not worry that a particular task will not get started because its 
  1325. start time did not exactly match a system clock reading. 
  1326.  
  1327. The problem for short running tasks with no dependencies is as follows. Assume, 
  1328. once again, that the start time for the task is 13:00 and the end time is 13:00 
  1329. and you have set the clock check interval on the Options/Timers screen to 30 
  1330. seconds. The task that is being initiated runs for only 5 seconds. At 13:00:04 
  1331. ATS checks your task and decides that all of the criteria to run the task are 
  1332. satisfied (i.e. day, month, date...) so it starts it. At 13:00:09, the task 
  1333. ends. At 13:00:34, ATS once again checks your task and since it is still 13:00, 
  1334. decides that all of its criteria to run are still satisfied and initiates it 
  1335. again. At 13:01:04, ATS again checks your task. Now, remember that ATS will 
  1336. start any task whose valid start time range falls between the previously 
  1337. checked system clock time and the current system clock time. Since 13:00 is 
  1338. definitely between 13:00:34 and 13:01:04, ATS will start your task again. 
  1339.  
  1340. Therefore, it is recommended that any job that may run for less than one minute 
  1341. have some dependency. 
  1342.  
  1343. MHR Software and Consulting understand that this is not the optimal solution 
  1344. and will be adding to the next release the ability to specify how often within 
  1345. a given period of time a particular may be started. The given period of time 
  1346. may be specified in minutes, hours, calendar days, weeks, months and years. 
  1347. Until then please be careful when scheduling short running tasks. 
  1348.  
  1349.  
  1350. ΓòÉΓòÉΓòÉ 23. System Configuration ΓòÉΓòÉΓòÉ
  1351.  
  1352. The System Configuration screens allow the user to customize ATS to suit their 
  1353. particular needs. 
  1354.  
  1355. Related Topics: 
  1356.  
  1357. o Preferences 
  1358. o Timers 
  1359.  
  1360.  
  1361. ΓòÉΓòÉΓòÉ 23.1. Preferences ΓòÉΓòÉΓòÉ
  1362.  
  1363. There are six user configurable options on the Preferences screen. These 
  1364. options control how ATS interacts with the user. 
  1365.  
  1366. To display the Preferences screen: 
  1367.  
  1368. o Select Edit from the main ATS menu. 
  1369.  
  1370. o Select System Configuration from the Edit menu. 
  1371.  
  1372. o Select Preferences from the Options menu. 
  1373.  
  1374. The keyboard short cut key is: Ctrl+P. 
  1375.  
  1376. Adjusting Preferences 
  1377.  
  1378. Clicking on the OK button will save the changes that you made and dismiss the 
  1379. Preferences dialog box. If the "Warn on Edit" option on the Preferences screen 
  1380. was previously selected, a message box will appear asking you to confirm the 
  1381. changes. 
  1382.  
  1383. Clicking on the Cancel button will dismiss the Preferences dialog box. If any 
  1384. changes were made, a message box will appear asking you if you really want to 
  1385. exit without saving your changes. 
  1386.  
  1387. Clicking on the Default button will reset all of the options to their default 
  1388. value. Refer to the following sections for the default values. 
  1389.  
  1390. Preferences: 
  1391.  
  1392. o Warn On Edit 
  1393. o Warn On Delete 
  1394. o Sound 
  1395. o Truncate Log On Startup 
  1396. o Save Screen Positions Upon Exit 
  1397. o On Line Log Size 
  1398.  
  1399. Related Topics: 
  1400.  
  1401. o Timers 
  1402.  
  1403.  
  1404. ΓòÉΓòÉΓòÉ 23.1.1. Warn On Edit ΓòÉΓòÉΓòÉ
  1405.  
  1406. Turning this on will cause a warning box to appear each time you try to save an 
  1407. event, task, or holiday that has been modified before the changes are committed 
  1408. to the ATS data file. 
  1409.  
  1410. The default value is on. 
  1411.  
  1412.  
  1413. ΓòÉΓòÉΓòÉ 23.1.2. Warn On Delete ΓòÉΓòÉΓòÉ
  1414.  
  1415. Turning this on will cause a warning box to appear each time you try to delete 
  1416. an event, task or holiday before the object is actually deleted from the ATS 
  1417. data file. 
  1418.  
  1419. The default value is on. 
  1420.  
  1421.  
  1422. ΓòÉΓòÉΓòÉ 23.1.3. Sound ΓòÉΓòÉΓòÉ
  1423.  
  1424. ATS will beep when certain things happen. These include task initiation, task 
  1425. termination, file modification, etc. If this option is not selected, ATS will 
  1426. not beep in these cases. 
  1427.  
  1428. The default value is on. 
  1429.  
  1430. Note:  ATS will always beep when a error or warning message box is displayed on 
  1431.        the screen.
  1432.  
  1433.  
  1434. ΓòÉΓòÉΓòÉ 23.1.4. Truncate Log On Startup ΓòÉΓòÉΓòÉ
  1435.  
  1436. Each time ATS is started, the currently selected log file is opened up. If this 
  1437. option is selected, all of the entries in the log file will be deleted before 
  1438. any new entries are added. If this option is not selected, the new log entries 
  1439. are appended to the end of the current log file. 
  1440.  
  1441. The default value is off. 
  1442.  
  1443.  
  1444. ΓòÉΓòÉΓòÉ 23.1.5. Save Positions Upon Exit ΓòÉΓòÉΓòÉ
  1445.  
  1446. If this option is selected, when ATS is shut down, the physical size and 
  1447. location of the ATS main window are saved as are the states of the three 
  1448. display windows, refer to Section 10. Display Windows for further information. 
  1449. If this option is selected, when ATS is started, it will be restored to the 
  1450. same state it was in when it was last shutdown. If this option is not selected, 
  1451. when ATS is started, it will be in the size and location as provided and no 
  1452. display windows will be opened. 
  1453.  
  1454. The default value is off. 
  1455.  
  1456.  
  1457. ΓòÉΓòÉΓòÉ 23.1.6. On Line Log Size ΓòÉΓòÉΓòÉ
  1458.  
  1459. All of the entries that are written out to the ATS log file are also stored in 
  1460. memory and optionally displayed in the ATS Log display window. This parameter 
  1461. allows you to select how much RAM is used to store the log file. When the 
  1462. on-line log file is full, ATS will clear it and start fresh. 
  1463.  
  1464. The default value is 3K. 
  1465.  
  1466.  
  1467. ΓòÉΓòÉΓòÉ 23.2. Timers ΓòÉΓòÉΓòÉ
  1468.  
  1469. There are two timers that are user configurable that control how often ATS 
  1470. checks whether or not to run a job. 
  1471.  
  1472. To display the Timers screen: 
  1473.  
  1474. o Select Edit from the main ATS menu. 
  1475.  
  1476. o Select System Configuration from the Edit menu. 
  1477.  
  1478. o Select Timers from the Options menu. 
  1479.  
  1480. The keyboard short cut key is: Ctrl+T. 
  1481.  
  1482. Adjusting Timers 
  1483.  
  1484. Clicking on the OK button will save the changes that you made and dismiss the 
  1485. Timers dialog box. If the "Warn on Edit" option on the Preferences screen was 
  1486. selected, a message box will appear asking you to confirm the changes. 
  1487.  
  1488. Clicking on the Cancel button will dismiss the Timers dialog box. If any 
  1489. changes were made, a message box will appear asking you if you really want to 
  1490. exit without saving your changes. 
  1491.  
  1492. Clicking on the Default button will reset all of the options to their default 
  1493. value. Refer to the following sections for the default values. 
  1494.  
  1495. Timers: 
  1496.  
  1497. o File Check Interval 
  1498. o Clock Check Interval 
  1499.  
  1500. Related Topics: 
  1501.  
  1502. o Preferences 
  1503.  
  1504.  
  1505. ΓòÉΓòÉΓòÉ 23.2.1. File Check Interval ΓòÉΓòÉΓòÉ
  1506.  
  1507. The File Check Interval is used by ATS to determine how often to check to see 
  1508. if a file has been modified. This value can range from 30 seconds to 10 minutes 
  1509. in thirty second intervals. 
  1510.  
  1511. The default value is 1 minute. 
  1512.  
  1513.  
  1514. ΓòÉΓòÉΓòÉ 23.2.2. Clock Check Interval ΓòÉΓòÉΓòÉ
  1515.  
  1516. The Clock Check Interval is used by ATS to determine how often to check to see 
  1517. if any task should be started. This value can range from 30 seconds to 10 
  1518. minutes in thirty second intervals. 
  1519.  
  1520. The default value is 1 minute. 
  1521.  
  1522.  
  1523. ΓòÉΓòÉΓòÉ 24. Interfaces to ATS ΓòÉΓòÉΓòÉ
  1524.  
  1525. ATS comes with two programs that interface with it to set and reset Signal 
  1526. Events. ATS also comes with all of the necessary files to allow you to write 
  1527. your own programs to interface with ATS. 
  1528.  
  1529. o ATSSGNL.EXE sets Signal Events. 
  1530.  
  1531. o ATSRSET.EXE resets Signal Events. 
  1532.  
  1533. o ATSSGNLD.DLL contains routines that can be called from your program to set 
  1534.   Signal Events. 
  1535.  
  1536. o ATSRSETD.DLL contains routines that can be called from your program to reset 
  1537.   Signal Events. 
  1538.  
  1539. Related Topics: 
  1540.  
  1541. o ATSSGNL.EXE 
  1542. o ATSRSET.EXE 
  1543. o ATSSGNLD.DLL 
  1544. o ATSRSETD.DLL 
  1545.  
  1546.  
  1547. ΓòÉΓòÉΓòÉ 24.1. ATSSGNL.EXE ΓòÉΓòÉΓòÉ
  1548.  
  1549. ATSSGNL is a supplied executable that will flag a Signal Event as having 
  1550. occurred.  The syntax for ATSSGNL is as follows: 
  1551.  
  1552. ATSSGNL eventname 
  1553.  
  1554. where eventname is the name of the event that you want to signal to ATS as 
  1555. having occurred. 
  1556.  
  1557. Note:  ATS is case sensitive.  If you create an event in upper, lower, or mixed 
  1558.        case, you must supply the event name in the same case to the ATSSGNL command.
  1559.  
  1560. Related Topics: 
  1561.  
  1562. o ATSRSET.EXE 
  1563. o ATSSGNLD.DLL 
  1564. o ATSRSETD.DLL 
  1565.  
  1566.  
  1567. ΓòÉΓòÉΓòÉ 24.2. ATSRSET.EXE ΓòÉΓòÉΓòÉ
  1568.  
  1569. ATSRSET is a supplied executable that will reset all Signal Event dependencies 
  1570. for a given task, reset a specific Signal Event for all tasks that are 
  1571. dependent upon it, or reset a specific Signal Event for a particular task.  The 
  1572. syntax for ATSRSET is as follows: 
  1573.  
  1574. ATSRSET T taskname 
  1575.  
  1576. ATSRSET E eventname 
  1577.  
  1578. ATSRSET B taskname eventname 
  1579.  
  1580. where taskname is the name of the task that you want affected eventname is the 
  1581. name of the event that you want affected. 
  1582.  
  1583. ATSRSET works as follows.  If you specify ATSRSET T taskname, all Signal Events 
  1584. for the named task will be reset as if they have not occurred.  If you specify 
  1585. ATSRSET E eventname, the named Signal Event will be reset for all tasks that 
  1586. are dependent upon it as if it had not occurred.  If you specify ATSRSET B 
  1587. taskname eventname, the named Signal Event will be reset for the named task as 
  1588. if it had never occurred. 
  1589.  
  1590. Note:  ATS is case sensitive.  If you create an event and/or task in upper, 
  1591.        lower, or mixed case, you must supply the event name and/or task name in 
  1592.        the same case to the ATSRSET command.
  1593.  
  1594. Related Topics: 
  1595.  
  1596. o ATSSGNL.EXE 
  1597. o ATSSGNLD.DLL 
  1598. o ATSRSETD.DLL 
  1599.  
  1600.  
  1601. ΓòÉΓòÉΓòÉ 24.3. ATSSGNLD.DLL ΓòÉΓòÉΓòÉ
  1602.  
  1603. ATSSGNL is a dynamic link library that contains one API. The format of the API 
  1604. is as follows: 
  1605.  
  1606. ATSSignalEvent(char[]); 
  1607.  
  1608. ATSSignalEvent returns a ULONG.  and expects a null terminated string as input. 
  1609. The null terminated string is the name of the Signal Event that is to be 
  1610. flagged as having occurred. 
  1611.  
  1612. Note:  ATS is case sensitive.  If you create an event in upper, lower, or mixed 
  1613.        case, you must supply the event name in the same case to the 
  1614.        ATSSignalEvent API.
  1615.  
  1616. The possible return codes that ATSSignalEvent returns are listed in ATSSGNL.H. 
  1617.  
  1618. ATSSignalEvent provides the same functionality as ATSSGNL but has the 
  1619. flexibility of being inserted into a custom program. 
  1620.  
  1621. Related Topics: 
  1622.  
  1623. o ATSSGNL.EXE 
  1624. o ATSRSET.EXE 
  1625. o ATSRSETD.DLL 
  1626.  
  1627.  
  1628. ΓòÉΓòÉΓòÉ 24.4. ATSRSETD.DLL ΓòÉΓòÉΓòÉ
  1629.  
  1630. ATSRSET is a dynamic link library that contains one API.  The format of the API 
  1631. is as follows: 
  1632.  
  1633. ATSReset(short, char[]. char[]); 
  1634.  
  1635. ATSReset returns a ULONG.  and expects a short and two null terminated string 
  1636. as input.  The short is the action code.  The first null terminated string is 
  1637. the name of the Signal Event if the action code is ATS_RESET_EVENT or the name 
  1638. of the task if the action code is either ATS_RESET_TASK or ATS_RESET_LINK 
  1639. (ATS_RESET_LINK will rest a specific Signal Event for a particular task).The 
  1640. second null terminated string is the name of the Signal Event if the action 
  1641. code is ATS_RESET_LINK or a null string if the action code is either 
  1642. ATS_RESET_TASK or ATS_RESET_EVENT. 
  1643.  
  1644. Note:  ATS is case sensitive.  If you create an event and/or task in upper, 
  1645.        lower, or mixed case, you must supply the event name and/or task name in 
  1646.        the same case to the ATSReset API.
  1647.  
  1648. The possible return codes that ATSReset returns are listed in ATSRSET.H. 
  1649.  
  1650. ATSReset provides the same functionality as ATSRSET but has the flexibility of 
  1651. being inserted into a custom program. 
  1652.  
  1653. Related Topics: 
  1654.  
  1655. o ATSSGNL.EXE 
  1656. o ATSRSET.EXE 
  1657. o ATSSGNLD.DLL 
  1658.