.ENABLE SUBSTITUTION .; .; BATCH command file to take the command lines supplied and submit .; a batch job to execute them for you. .; .; Seperate command lines can be invoked with a vertical bar "|" .; The vertical bar seems to decode as a backslash "\". .; .; Data for programs can be passed with the &data option .; .; @BATCH RUN PROGRAM&DATA LINE 1&DATA LINE 2|PURGE *.* .; .OPEN BATCH.BAT .DATA $JOB/TIME:(2:0) BATCH .PARSE COMMAN " \" CMD CMDL1 CMDL2 .IF CMDL1 EQ "" .GOTO 10 .GOTO 7 .5: .PARSE CMDL2 "\" CMDL1 CMDL2 .IF CMDL1 = "" .GOTO SUB .7: .PARSE CMDL1 "&" CMD PDATA .DATA $'CMD' .8: .IF PDATA = "" .GOTO 5 .PARSE PDATA "&" ARG PDATA .DATA 'ARG' .GOTO 8 .10: .ASKS CMDL1 Enter command line .IF CMDL1 = "" .GOTO SUB .DATA $'CMDL1' .GOTO 10 .SUB: .DATA $EOJ .CLOSE .ENABLE QUIET .DISABLE DISPLAY SUBMIT/NOPRINT BATCH.BAT