User Tools

Site Tools


command_file_parameters

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
command_file_parameters [2018/11/20 18:29] – summary/conclusion stmt lrickercommand_file_parameters [2019/11/12 16:02] (current) mmacgregor
Line 1: Line 1:
 ===== DCL Command File Parameters ===== ===== DCL Command File Parameters =====
  
-DCL command file processing provides for as many as eight (8) com-line parameters, which are used/known as local variables named ''P1'', ''P2'', ''P3'', ''P4'', ''P5'', ''P6'', ''P7'' and ''P8'' within the command file itself.  Each of these local "parameter-variables" //behaves exactly like any other programmer-created DCL local variables// within the script, __except__ for the fact that //their initial values are picked up from what the user types on the command line when invoking (running) that script//.+DCL command file processing provides for as many as eight (8) com-line parameters in all versions of OpenVMS (V8.4 and above actually have 16 now), which are used/known as local variables named ''P1'', ''P2'', ''P3'', ''P4'', ''P5'', ''P6'', ''P7'' and ''P8'' within the command file itself.  Each of these local "parameter-variables" //behaves exactly like any other programmer-created DCL local variables// within the script, __except__ for the fact that //their initial values are picked up from what the user types on the command line when invoking (running) that script//.
  
 In the DCL examples on wiki-page [[symbol_substitution#string_substitution_examples|DCL Symbol Substitution - String Substitution Examples]] and [[symbol_substitution#command_file_parameters_p1_thru_p8|Command File Parameters P1 thru P8]], you can see how ''P1'' is used in the first ''FANCYSHOW.COM'' script; all 8 parameter-variables are demonstrated in the last ''COM_FILE_PARAMETERS.COM'' script. In the DCL examples on wiki-page [[symbol_substitution#string_substitution_examples|DCL Symbol Substitution - String Substitution Examples]] and [[symbol_substitution#command_file_parameters_p1_thru_p8|Command File Parameters P1 thru P8]], you can see how ''P1'' is used in the first ''FANCYSHOW.COM'' script; all 8 parameter-variables are demonstrated in the last ''COM_FILE_PARAMETERS.COM'' script.
command_file_parameters.txt · Last modified: 2019/11/12 16:02 by mmacgregor

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki