Both sides previous revisionPrevious revision | |
anatomy_of_your_login-dot-com_script [2018/11/21 21:36] – lricker | anatomy_of_your_login-dot-com_script [2018/11/21 21:54] (current) – lricker |
---|
$ SET TERMINAL /INQUIRE /INSERT | $ SET TERMINAL /INQUIRE /INSERT |
$ ! | $ ! |
$ CALL CreDir "LOGS" ! create a sub-dir for batch log-files ! *** | $ CALL CreDir "SYS$SCRATCH" ! separate sub-dir for temp-files ! *** |
| $ CALL CreDir "LOGS" ! a sub-dir for batch log-files ! *** |
$ ! | $ ! |
$ ! VMS-style command aliases (symbols) -- ! *** | $ ! VMS-style command aliases (symbols) -- ! *** |
The comments ''! ***'' mark the lines where are added to replace ''INTERACTIVE'' stanza Line 9 in the original template/skeleton, plus a line added to the ''BATCH'' stanza to make re-submits easier. | The comments ''! ***'' mark the lines where are added to replace ''INTERACTIVE'' stanza Line 9 in the original template/skeleton, plus a line added to the ''BATCH'' stanza to make re-submits easier. |
| |
This also includes a DCL subroutine, labelled ''CreDir'' (for "create directory") at the end of this script, to test for a user's home directory subdirectory, conditionally creating it plus a suitable logical name if it doesn't already exist. | This also includes a DCL subroutine, labelled ''CreDir'' (for "create directory") at the end of this script, to test for a user's home directory subdirectory, conditionally creating it plus a suitable logical name if it doesn't already exist. Here, two subdirectories are tested and created, one for ''SYS$SCRATCH'' (redirected from the user's home directory), and a ''LOGS'' subdirectory for batch log-files. |
| |
Note that these enhancement lines were easy to add right into the appropriate ''INTERACTIVE'' or ''BATCH'' stanza, and didn't take any complicated ''IF/THEN/ELSE'' logic to make things work right. It's always best to keep things simple... | Note that these enhancement lines were easy to add right into the appropriate ''INTERACTIVE'' or ''BATCH'' stanza, and didn't take any complicated ''IF/THEN/ELSE'' logic to make things work right. It's always best to keep things simple... |