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/05/31 08:32] – dodger | openvms:openvms-cheatsheet [2023/07/01 08:10] (current) – dodger | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== [CHEATSHEET] OpenVMS ====== | ====== [CHEATSHEET] OpenVMS ====== | ||
+ | ====== Main concepts ====== | ||
+ | |||
+ | ===== Keywords ===== | ||
+ | |||
+ | ^ sort code ^ Full name ^ Translation to linux ^ | ||
+ | | UAF | User authorization File | It's a combination of '' | ||
+ | | UIC | User Identification CODE | '' | ||
+ | | DCL | Digital Command Language | '' | ||
+ | | CDU | Command definition utility | It's a kind of IDE or '' | ||
+ | | RMS | Record Management Services | '' | ||
+ | | JBC | Job Controller | Queues | | ||
+ | | Symbol | - | A variable... | | ||
+ | |||
+ | |||
+ | ===== key concepts ===== | ||
+ | |||
+ | ^ OpenVMS ^ Linux ^ Comment ^ | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | |||
+ | ===== Error levels ===== | ||
+ | |||
+ | ^ alpha ^ numeric ^ level ^ | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | ====== 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 ====== | ||
===== Show available boot devices ===== | ===== Show available boot devices ===== | ||
- | < | + | < |
show device | show device | ||
</ | </ | ||
===== boot from device ===== | ===== boot from device ===== | ||
- | < | + | < |
boot [DEVICE] | boot [DEVICE] | ||
</ | </ | ||
ex: | ex: | ||
- | < | + | < |
boot DKA0 | boot DKA0 | ||
</ | </ | ||
Line 18: | Line 161: | ||
===== Login ===== | ===== Login ===== | ||
**root** is '' | **root** is '' | ||
- | < | + | < |
| | ||
Username: SYSTEM | Username: SYSTEM | ||
Password: | Password: | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ===== Logout ===== | ||
+ | <code DCL> | ||
+ | LOGOUT | ||
+ | </ | ||
+ | |||
+ | <code DCL> | ||
+ | LOGOUT/FULL | ||
</ | </ | ||
Line 28: | Line 182: | ||
===== df ===== | ===== df ===== | ||
- | < | + | < |
SHOW DEVICE SYS$SYSDEVICE | SHOW DEVICE SYS$SYSDEVICE | ||
</ | </ | ||
Line 34: | Line 188: | ||
===== See system parameters ===== | ===== See system parameters ===== | ||
To check the values of your system parameters, enter the following command: | To check the values of your system parameters, enter the following command: | ||
- | < | + | < |
RUN SYS$SYSTEM: | RUN SYS$SYSTEM: | ||
</ | </ | ||
And then under '' | And then under '' | ||
- | < | + | < |
SHOW WSMAX | SHOW WSMAX | ||
</ | </ | ||
- | |||
===== Show system pagelets ===== | ===== Show system pagelets ===== | ||
- | < | + | < |
WRITE SYS$OUTPUT F$GETSYI(" | WRITE SYS$OUTPUT F$GETSYI(" | ||
</ | </ | ||
===== Show free pagelets ===== | ===== Show free pagelets ===== | ||
- | < | + | < |
WRITE SYS$OUTPUT F$GETSYI(" | WRITE SYS$OUTPUT F$GETSYI(" | ||
</ | </ | ||
===== Generate more pagelets ===== | ===== Generate more pagelets ===== | ||
- | < | + | < |
AUTOGEN | AUTOGEN | ||
</ | </ | ||
===== Find how many pagelets are used by EXE ===== | ===== Find how many pagelets are used by EXE ===== | ||
In this case '' | In this case '' | ||
- | < | + | < |
DIRECTORY/ | DIRECTORY/ | ||
</ | </ | ||
Line 67: | Line 220: | ||
===== change system config ===== | ===== change system config ===== | ||
You have to edit: | You have to edit: | ||
- | < | + | < |
SYS$SYSTEM: | SYS$SYSTEM: | ||
</ | </ | ||
Line 73: | Line 226: | ||
===== update system parameters and reboot ===== | ===== update system parameters and reboot ===== | ||
- | < | + | < |
@SYS$UPDATE: | @SYS$UPDATE: | ||
</ | </ | ||
- | ===== Change dynamic parameters ===== | + | ===== Change dynamic parameters |
- | Using sysgen: | + | ==== Run SYSGEN ==== |
- | < | + | < |
</ | </ | ||
+ | ==== SYSGEN: Modify parameter ==== | ||
And (example): | And (example): | ||
- | < | + | < |
SYSGEN> USE ACTIVE | SYSGEN> USE ACTIVE | ||
SYSGEN> SET GBLPAGES 100000 | SYSGEN> SET GBLPAGES 100000 | ||
Line 91: | Line 245: | ||
+ | ==== SYSGEN: List all parameters | ||
+ | <code DCL> | ||
+ | SHOW /ALL | ||
+ | </ | ||
===== empty ===== | ===== empty ===== | ||
- | < | + | < |
</ | </ | ||
openvms/openvms-cheatsheet.1685521960.txt.gz · Last modified: 2023/05/31 08:32 by dodger