Post by Tony Harminc ***@gmail.com [hercules-390]Post by ***@btinternet.com [hercules-390]I have been unable to merge the shadow files for the disks.
This is the first time I have tried since changing my PC and OS
to Windows 10 from Windows XP.
I get a message HHC00324E 0:0A90 CCKD file[1]
C:/ZOS/ZOS19/Shadow/SZ9RES1_1.dsk: shadow file not merged: file[0]
cannot be opened read-write
I have set the attribute of the original file to R/W but it makes no difference.
Can anyone help please?
Is the base file in a "strange" Windows directory like "C:\Program
Files" or the like? I'm no Windows expert, but somewhere after XP
(Vista or 7) they assigned special permissions to various directories
such that even an Admin user can't write to files there despite the
files' own settings. You might want to look at the "Effective
Permissions" under the Security tab on the file properties. Also try
to create (via copy or Notepad or whatever) a new file (a .txt or
something) in that same directory to see if it complains.
Perhaps someone who knows Windows well can chime in. Fish?
No need; you've already mentioned the two most likely things it could be (besides being a bug in Hercules itself or a bug (or some new behavior I'm unfamiliar with) in Windows 10):
1. The base Hercules (non-shadow) dasd image file is indeed read-only (or has the 'readonly' option (or 'rdonly' option or 'ro' option) specified in the Hercules configuration file).
2. The directory containing the dasd image file (or the dasd image file itself) has unexpected permissions assigned to it, preventing it from being written to by the current user.
There is only one other thing that I can think of that it could be: another program -- perhaps a phantom(*) instance of Hercules -- still has that file opened. The Windows version of Hyperion was changed quite some time ago to prevent the same file from being accidentally specified twice in a configuration by always opening its files in "exclusive" read-write mode, such that only ONE thread (whether that thread is a thread within the same process or a thread within another completely different process) can have write access to the file. This was done to prevent the obvious file damage that would otherwise occur with multiple threads writing to the file at the same time.
I would like to see both your Hercules configuration file as well as your Hercules log file. What *exact* version of Hercules/Hyperion are you running?
I would also like to see a directory listing for the directory containing your dasd image files: "dir /q /-c /a-dr" and "dir /q /-c /a-d-r".
The "/a-dr" will list only read-only files and the "/a-d-r" lists only normal read-write files. Use "dir /?" for more information, or better, install and use "msls.exe" instead: https://u-tools.com/msls.htm (which is what I personally prefer using):
C:\Users\Fish\HercGUI\Disk Files\zOS 1.10s> ls -al
total 15362661
drwx------ 1 Fish 0 Nov 16 00:30 .\
drwx------ 1 Fish 0 Nov 16 00:30 ..\
-rw------a 1 Fish 6 Jun 21 2017 _Fish README.txt
drwx------ 1 Fish 0 Jun 22 2017 CTCI\
-R-------a 1 Fish 208535871 Jun 30 2015 jacic1.comp
-R-------a 1 Fish 1808 Jun 19 2017 jacic1_Shadow_1.comp
-R-------a 1 Fish 375697020 Jun 30 2015 jadb91.comp
-R-------a 1 Fish 1808 Jun 19 2017 jadb91_Shadow_1.comp
-R-------a 1 Fish 1537157725 Jun 30 2015 jadb92.comp
-R-------a 1 Fish 1808 Jun 19 2017 jadb92_Shadow_1.comp
-R-------a 1 Fish 92083113 Jun 30 2015 jadb93.comp
-R-------a 1 Fish 1808 Jun 19 2017 jadb93_Shadow_1.comp
-R-------a 1 Fish 559632220 Jun 30 2015 jadis1.comp
-R-------a 1 Fish 1808 Jun 19 2017 jadis1_Shadow_1.comp
-R-------a 1 Fish 501731324 Jun 30 2015 jadis2.comp
-R-------a 1 Fish 1808 Jun 19 2017 jadis2_Shadow_1.comp
-R-------a 1 Fish 262100923 Jun 30 2015 jadis3.comp
-R-------a 1 Fish 1808 Jun 19 2017 jadis3_Shadow_1.comp
-R-------a 1 Fish 782236800 Jun 30 2015 jadis4.comp
-R-------a 1 Fish 1808 Jun 19 2017 jadis4_Shadow_1.comp
-R-------a 1 Fish 606570555 Jun 30 2015 jadis5.comp
-R-------a 1 Fish 1808 Jun 19 2017 jadis5_Shadow_1.comp
-R-------a 1 Fish 863661769 Jun 30 2015 jadis6.comp
-R-------a 1 Fish 1808 Jun 19 2017 jadis6_Shadow_1.comp
-R-------a 1 Fish 302861909 Jun 30 2015 jaims1.comp
-R-------a 1 Fish 1808 Jun 19 2017 jaims1_Shadow_1.comp
-R-------a 1 Fish 726714958 Jun 30 2015 japrd1.comp
-R-------a 1 Fish 1808 Jun 19 2017 japrd1_Shadow_1.comp
-R-------a 1 Fish 498417073 Jun 30 2015 japrd2.comp
-R-------a 1 Fish 10168 Jun 19 2017 japrd2_Shadow_1.comp
-R-------a 1 Fish 1084218398 Jun 30 2015 japrd3.comp
-R-------a 1 Fish 1808 Jun 19 2017 japrd3_Shadow_1.comp
-R-------a 1 Fish 613052991 Jun 30 2015 jares1.comp
-R-------a 1 Fish 157275 Jun 19 2017 jares1_Shadow_1.comp
-R-------a 1 Fish 486808631 Jun 30 2015 jares2.comp
-R-------a 1 Fish 463934 Jun 19 2017 jares2_Shadow_1.comp
-R-------a 1 Fish 227570485 Jun 30 2015 jasys1.comp
-R-------a 1 Fish 72940852 Jun 19 2017 jasys1_Shadow_1.comp
-R-------a 1 Fish 681965791 Jun 30 2015 jauss1.comp
-R-------a 1 Fish 586972 Jun 19 2017 jauss1_Shadow_1.comp
-R-------a 1 Fish 1363150750 Jun 30 2015 jawas1.comp
-R-------a 1 Fish 1808 Jun 19 2017 jawas1_Shadow_1.comp
-R-------a 1 Fish 1748587171 Jun 30 2015 jawas2.comp
-R-------a 1 Fish 1808 Jun 19 2017 jawas2_Shadow_1.comp
-R-------a 1 Fish 1669066142 Jun 30 2015 jawas3.comp
-R-------a 1 Fish 1808 Jun 19 2017 jawas3_Shadow_1.comp
drwx------ 1 Fish 0 Jun 21 2017 LCS\
drwx------ 1 Fish 0 Jun 21 2017 QETH\
-R-------a 1 Fish 465341125 Jun 30 2015 sares1.comp
-R-------a 1 Fish 1808 Jun 19 2017 sares1_Shadow_1.comp
C:\Users\Fish\HercGUI\Disk Files\zOS 1.10s>
Hope that helps!
-----------------
(*) A phantom process can occur when, for whatever reason, an instance of Hercules is left running without any visible console. The only way to ensure no phantom Hercules process is still running is to log off of Windows and then log back on again, or use a utility such as Process Explorer (https://en.wikipedia.org/wiki/Process_Explorer) or Windows's Task Manager itself.
--
"Fish" (David B. Trout)
Software Development Laboratories
http://www.softdevlabs.com
mail: ***@softdevlabs.com