BBBB A TTTTTTT CCCC H H B B AA T C C H H B B A A T C H H BBBBBB A A T C HHHHHH B B AAAAAA T C H H B B A A T C C H H BBBB A A T CCCC H H BATCH - CREATION OF DETACHED JOBS UNDER TSX+ 1 When operating on TSX+, have you ever wanted to run a DETACHed job on the fly, but couldn't be bothered to, because you had to go into the editor and create a Command File on SY: that you could DETach. Well, BATCH will now do this for you automatically. When BATCH is run, it will ask you for the command you wish to run. You simply enter a one line command string, which is then written to SY: as a Command File. This Command File is then run as a Detached Job. When execution of this file is stopped, a message will be sent to the line that initiated BATCH, telling the user that the job is finished. Jobs that use BATCH must have ACCESS (R/W) to SY:, and DETACHED LINES must be available under TSX+, otherwise, the system will abort the job. If no Detached Lines are currently available, an error message will be sent. If the command file is not executed properly, the user can examine the file SY:LINEnn.DET. this is the file that BATCH DETACHes. It is deleted on successful execution of the command line. BATCH - CREATION OF DETACHED JOBS UNDER TSX+ 2 A sample run of BATCH and the file it will produce is shown below. Comments are added for clairity. R BATCH ! START BATCH COMMAND? FORT FTEST ! COMPILE FTEST WHAT IS YOUR DK:? RK1: ! DO ALL WORK ON RK1 [: IS OPTIONAL] ! BATCH NOW PROCESSES THE COMMAND STOP - ! AND RUNS IT . *12* DETACHED JOB DONE ! BATCH HAS EXECUTED SUCCESSFULLY BATCH will Detach this file: SET ERROR NONE ! DO NOT BOMB MEM 56 ! ALLOW AS MUCH MEMORY AS POSSIBLE FORT FTEST ! DO THIS COMMAND SEND,02 DETACHED JOB DONE ! SEND THE JOB A MESSAGE DEL/NOQ SY:LINE02.DET ! DELETE THIS COMMAND FILE BATCH - CREATION OF DETACHED JOBS UNDER TSX+ 3 Note that BATCH can also be used to Detach exitsing command file. Simply enter '@FILENAME' when asked for the command.