openvms:openvms-cheatsheet
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
openvms:openvms-cheatsheet [2023/06/29 07:22] – [Error levels] dodger | openvms:openvms-cheatsheet [2023/07/01 08:10] (current) – dodger | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== [CHEATSHEET] OpenVMS ====== | ====== [CHEATSHEET] OpenVMS ====== | ||
+ | |||
+ | ====== Main concepts ====== | ||
===== Keywords ===== | ===== Keywords ===== | ||
Line 8: | Line 10: | ||
| DCL | Digital Command Language | '' | | DCL | Digital Command Language | '' | ||
| CDU | Command definition utility | It's a kind of IDE or '' | | CDU | Command definition utility | It's a kind of IDE or '' | ||
+ | | RMS | Record Management Services | '' | ||
+ | | JBC | Job Controller | Queues | | ||
+ | | Symbol | - | A variable... | | ||
Line 19: | Line 24: | ||
| '' | | '' | ||
| '' | | '' | ||
+ | | '' | ||
- | ==== Error levels ==== | + | |
+ | ===== Error levels | ||
^ alpha ^ numeric ^ level ^ | ^ alpha ^ numeric ^ level ^ | ||
Line 29: | Line 36: | ||
| '' | | '' | ||
+ | ====== Programming ====== | ||
+ | More or less | ||
+ | ===== Symbols (Variables) | ||
+ | |||
+ | ^ Creation ^ Description ^ | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | ===== Aliases through symbols ===== | ||
+ | Create an alias '' | ||
+ | <code DCL> | ||
+ | EDT :== EDIT/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | Replace a command with the command you want: | ||
+ | <code DCL> | ||
+ | PRINT :== PRINT/ | ||
+ | </ | ||
+ | This will replace the command '' | ||
+ | |||
+ | ===== Operations with symbols ===== | ||
+ | |||
+ | ==== Arithmetic operations (integers) ==== | ||
+ | |||
+ | <code DCL> | ||
+ | $ APPLES = 10 | ||
+ | $ SHOW SYMBOL APPLES | ||
+ | APPLES = 10 Hex = 0000000A | ||
+ | |||
+ | $ APPLES = 2 * (4+5) | ||
+ | $ SHOW SYMBOL APPLES | ||
+ | APPLES = 18 Hex ... | ||
+ | $ ORANGES = 15 | ||
+ | $ TOTAL_FRUIT = APPLES + ORANGES | ||
+ | $ SHOW SYMBOL TOTAL_FRUIT | ||
+ | TOTAL_FRUIT = 33 | ||
+ | </ | ||
+ | |||
+ | === List of operations === | ||
+ | ^ Operation ^ | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | ''/'' | ||
+ | |||
+ | ==== String operations ==== | ||
+ | |||
+ | <code DCL> | ||
+ | $ APPLES = " | ||
+ | $ SHOW SYMBOL APPLES | ||
+ | APPLES = " | ||
+ | $ FRUIT = " | ||
+ | $ SHOW SYMBOL FRUIT | ||
+ | FRUIT = " | ||
+ | </ | ||
+ | |||
+ | ==== Using subshells in commands ==== | ||
+ | |||
+ | Sub-shell is invoqued with '' | ||
+ | <code DCL> | ||
+ | $ FILETYPE = " | ||
+ | $ TYPEIT = "TYPE '' | ||
+ | $ SHOW SYMBOL TYPEIT | ||
+ | "TYPE login.com" | ||
+ | </ | ||
+ | |||
+ | <WRAP center round tip 60%> | ||
+ | Take care with string usage '': | ||
+ | </ | ||
+ | What works and what not (as a sub-shell): | ||
+ | * Works: | ||
+ | <code DCL> | ||
+ | $ FILETYPE := " | ||
+ | $ TYPEIT := "TYPE '' | ||
+ | $ SHOW SYMBOL TYPEIT | ||
+ | "TYPE login.com" | ||
+ | </ | ||
+ | |||
+ | * DON'T Work (as a literal) | ||
+ | <code DCL> | ||
+ | $ FILETYPE := " | ||
+ | $ TYPEIT := " | ||
+ | $ SHOW SYMBOL TYPEIT | ||
+ | "TYPE FILENAME" | ||
+ | </ | ||
+ | |||
+ | <WRAP center round tip 60%> | ||
+ | In the other hand, without forcing string assignment | ||
+ | </ | ||
+ | Both are assigned as a variable: | ||
+ | <code DCL> | ||
+ | $ FILETYPE = " | ||
+ | $ TYPEIT = "TYPE '' | ||
+ | $ SHOW SYMBOL TYPEIT | ||
+ | "TYPE login.com" | ||
+ | </ | ||
+ | <code DCL> | ||
+ | $ FILETYPE = " | ||
+ | $ TYPEIT = " | ||
+ | $ SHOW SYMBOL TYPEIT | ||
+ | "TYPE login.com" | ||
+ | </ | ||
====== Startup ====== | ====== Startup ====== |
openvms/openvms-cheatsheet.1688023323.txt.gz · Last modified: 2023/06/29 07:22 by dodger