https://wiki.vmssoftware.com/index.php?title=LOGIN.COM&feed=atom&action=historyLOGIN.COM - Revision history2024-03-29T00:08:59ZRevision history for this page on the wikiMediaWiki 1.31.0https://wiki.vmssoftware.com/index.php?title=LOGIN.COM&diff=1535&oldid=prevJane.doe: Created page with "'''LOGIN.COM''', or the '''personal login command procedure''', is the default name for a command procedure that is executed before each user's Process..."2019-11-28T12:18:32Z<p>Created page with "'''LOGIN.COM''', or the '''personal login command procedure''', is the default name for a <a href="/Command_Procedure" class="mw-redirect" title="Command Procedure">command procedure</a> that is executed before each user's Process..."</p>
<p><b>New page</b></p><div>'''LOGIN.COM''', or the '''personal login command procedure''', is the default name for a [[Command Procedure|command procedure]] that is executed before each user's [[Process|process]] runs ([[Interactive Process|interactive]], [[Batch Process|batch]] or otherwise). Unless a different file specification is supplied in the user's [[SYSUAF]] record's LGICMD field, the system will look for a file called LOGIN.COM in the user's [[Default directory|default directory]] and if found execute the latest version of it. LOGIN.COM is usually used to customize the user's environment: set up their [[SET TERMINAL|terminal]], define [[Logical Name|logical names]], [[Symbol|symbols]] and [[Foreign Command|foreign commands]], [[SET PROMPT|set prompt]], display important information, etc. In case of a [[Captive Account|captive account]], the personal login command procedure limits the user's actions, usually providing a menu and never allowing the user access to [[DCL]].<br />
<br />
=Batch Considerations=<br />
LOGIN.COM executes before every [[Batch Job|batch job]] that a user runs, which could possibly lead to:<br />
* the batch process hanging if LOGIN.COM contains commands requiring terminal interaction, such as [[SET TERMINAL]]/INQUIRE or [[INQUIRE]], because there is no terminal<br />
* uncontrollable creation of batch processes if LOGIN.COM contains [[SUBMIT]] commands<br />
* longer execution times if LOGIN.COM is long and performs actions unnecessary for the purposes of the batch job etc.<br />
<br />
The following code determines the mode in which the process runs and branches to the commands specific to that mode:<br />
<nowiki><br />
$ GOTO 'F$MODE()' <br />
$INTERACTIVE: <br />
$! put your interactive commands here <br />
$<br />
$ <br />
$ EXIT<br />
$BATCH:<br />
$! put your batch mode commands here<br />
$ <br />
$ <br />
$ EXIT <br />
$NETWORK:<br />
$OTHER:<br />
$ EXIT <br />
</nowiki><br />
<br />
[[Category:Command Procedures]]</div>Jane.doe