User Tools

Site Tools


openvms:openvms-cheatsheet

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
openvms:openvms-cheatsheet [2023/07/01 07:45] dodgeropenvms:openvms-cheatsheet [2023/07/01 07:54] dodger
Line 36: Line 36:
 | ''-F-'' | ''4'' | SEVERE | | ''-F-'' | ''4'' | SEVERE |
  
 +====== Programming ====== 
 +More or less
 ===== Symbols (Variables)  ===== ===== Symbols (Variables)  =====
  
 ^ Creation ^ Description ^ ^ Creation ^ Description ^
-| ''SYMBOL = <value> '' | Creates a **local** symbol (string or integer) | +| ''SYMBOLNAME = <value> '' | Creates a **local** symbol (string or integer) | 
-| ''SYMBOL == <value> '' | Creates a **global** symbol (string or integer) | +| ''SYMBOLNAME == <value> '' | Creates a **global** symbol (string or integer) | 
-| ''SYMBOL := <value> '' | Creates a **local** STRING symbol | +| ''SYMBOLNAME := <value> '' | Creates a **local** STRING symbol | 
-| ''SYMBOL :== <value> '' | Creates a **global** STRING symbol |+| ''SYMBOLNAME :== <value> '' | Creates a **global** STRING symbol | 
 +| ''DELETE/SYMBOL SYMBOLNAME'' | Destroy local variable''SYMBOLNAME''
 +| ''DELETE/SYMBOL/GLOBAL SYMBOLNAME'' | Destroy global variable ''SYMBOLNAME''
 +| ''SHOW SYMBOL SYMBOLNAME'' | Show content of the variable ''SYMBOLNAME''
 + 
 +===== Aliases through symbols ===== 
 +Create an alias ''EDT' with a frequently used command: 
 +<code DCL> 
 +EDT :== EDIT/EDT/COMMAND=SYS$LOGIN:EDTINI.DDT 
 +</code> 
 + 
 + 
 +Replace a command with the command you want: 
 +<code DCL> 
 +PRINT :== PRINT/NOBURST/NOFLAG/NOTRAILER/NOTIFY 
 +</code> 
 +This will replace the command ''PRINT'' with ''PRINT/NOBURST/NOFLAG/NOTRAILER/NOTIFY'' everytime you launch it. 
 + 
 +===== Operations with symbols ===== 
 + 
 +==== Arithmetic operations (integers) ==== 
 + 
 +<code DCL> 
 +$ APPLES = 10 
 +$ SHOW SYMBOL APPLES 
 +  APPLES = 10    Hex = 0000000A    Octal = 00000000012 
 +</code>
  
  
openvms/openvms-cheatsheet.txt · Last modified: 2023/07/01 08:10 by dodger