开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: How to save CMS system?


 

On Wed, Feb 26, 2025 at 8:35?AM M Verpelli via <marco.verpelli=[email protected]> wrote:
Here I am again to ask one last thing (I hope).
From what I understand, when you want to move a program to minidisk
MNT19E 19E Y/S to make it available to all other users, you have to (re)save the CMS system.

Yes.? That's specifically because CMS keeps a copy of the file directory of the S and Y disks in the saved system, so if you don't do this, the CMS users won't see the change.? CMS refers to these directory copies as the "shared S-stat" and "shared Y-stat" accordingly.
?
So:
1) acc 19E z, to make it available for writing
2) copyfile my program a = = z

As Dave has already?mentioned, any file you put on the S or Y disks needs to be mode 2 (e.g., TYPE MODULE S2).? That's because when CMS creates the shared S and Y stats, it only puts the mode-2 files in them.

3) read the MAINT MEMO B and?
3.1) vmsetup cms

You don't need to do VMSETUP, and in fact the next command shuts CMS down and undoes it :-)\

3.2) cp define stor 16m

CP should respond:

STORAGE = 16384K
CP ENTERED; DISABLED WAIT PSW '00020000 00000000'
?
3.3) ipl 190 clear

At which point CMS puts out the "greeting message":

VM Community Edition V1 R1.2

3.4) savesys cms

You need to type that exactly as seen - no #CP, no other words or punctuation (but upper/lower case doesn't matter), and no pressing ENTER beforehand.? CMS checks the line entered in response to the greeting message for several special cases, including the SAVESYS response.

?Note that if you accidentally issue the CP SAVESYS command instead of responding SAVESYS to the greeting, it's anybody's guess what will happen.? When you do it correctly, CMS prepares itself for saving and then issues the actual CP SAVESYS command itself, via Diagnose 8.

4) shutdown and reipl
That's not necessary.? After your SAVESYS, any user (including MAINT) that does IPL CMS will get the newly-saved system.

5) with any user after logon I get:
DMSFRE161T INVALID DMSFRET CALL FROM F87AE8, ERROR NUMBER 5.
DMSFRE164T LOW-CORE NUCLEUS STORAGE POINTERS DESTROYED (INTERNAL ERROR CODE 5) RE-IPL CMS.? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
DMSFRE165T CHAIN HEADER AT 0036F0: 0001EC20 0000000B 000011B8 10F00200.
CP ENTERED; DISABLED WAIT PSW '00020000 00F812B6'

My best guess is that CP got the SAVESYS, not CMS, and that it was processed at an inopportune moment.? The proper sequence looks like this (just captured from my on VM/CE 1.1.2 system):

L MAINT CPCMS
DASD 19D LINKED R/W; R/O BY 004 USERS
DASD 19E LINKED R/W; R/O BY 004 USERS
DASD 290 LINKED R/W; R/O BY 004 USERS
DASD 190 LINKED R/W; R/O BY 004 USERS
DASD 194 LINKED R/W; R/O BY CPWATCH
LOGON AT 17:54:10 EDT WEDNESDAY 02/26/25
VM Community Edition V1 R1.2

CP DEF STOR 16M
STORAGE = 16384K
CP ENTERED; DISABLED WAIT PSW '00020000 00000000'
I 190 CLEAR
VM Community Edition V1 R1.2
savesys cms
SYSTEM SAVED
VM Community Edition V1 R1.2

Y (19E) R/O
Segment GCCLIB is not loaded because virtual machine memory is in use.
U (19D) R/O
B (5E5) R/O
Z (1FF) R/O
CP SET PF7 RETRIEVE
SET RDYMSG SMSG
Ready;

Note that "SYSTEM SAVED" message - CMS issues that when it saves the system.? If you don't get that, it didn't happen correctly.
Ross

Join [email protected] to automatically receive all group messages.