Leonard Berkowitz said...
> How can the following be true?
>
> HP32201A.09.00 EDIT/3000 THU, JUL 16, 1998, 8:58 AM
> (C) HEWLETT-PACKARD CO. 1993
>
> /K $NEWPASS,UNN
> $NEWPASS ALREADY EXISTS - RESPOND YES TO PURGE OLD AND KEEP NEW
> PURGE OLD?Y
> *** WARNING *** KEPT IN PERMANENT DOMAIN.
This is weird! I just tried this on both 5.5/3 and 5.0/6 and got the
following results on both machines:
Wally: editor
HP32201A.09.00 EDIT/3000 THU, JUL 16, 1998, 9:19 AM
(C) HEWLETT-PACKARD CO. 1993
/k $newpass,unn
$NEWPASS ALREADY EXISTS - RESPOND YES TO PURGE OLD AND KEEP NEW
PURGE OLD?yes
+-F-I-L-E---I-N-F-O-R-M-A-T-I-O-N---D-I-S-P-L-A-Y+
! ERROR NUMBER: 0 RESIDUE: 8 (WORDS) !
! BLOCK NUMBER: 131074 NUMREC: 3725 !
+------------------------------------------------+
*60*FCLOSE FAILURE (0)
END OF FILE (FSERR 0)
$NEWPASS is a system level file and as such, always "exists" in some way,
shape and form... to attempt to close it in this manner (an empty file)
should always generate an error (in this case, an EOF)
Was there anything between the banner and the K[eep] command in your example
above? (just noticing the blank line between the banner and the prompt for
EDITOR - we're using the same revision level here). If data was entered into
the file, then after a K[eep] to $NEWPASS should show up in the System
Temporary File $OLDPASS, as such:
Wally: editor
HP32201A.09.00 EDIT/3000 THU, JUL 16, 1998, 9:22 AM
(C) HEWLETT-PACKARD CO. 1993
/a
1 This is test line 1
2 This is test line 2
3 //
...
/k $newpass,unn
$NEWPASS ALREADY EXISTS - RESPOND YES TO PURGE OLD AND KEEP NEW
PURGE OLD?yes
/exit
END OF SUBSYSTEM
Wally: listfile $newpass;format=2
^
System-defined files--e.g., $NULL--cannot be specified. (CIERR 947)
Wally: listf $newpass,2
^
Unidentifiable file name. (CIERR 426)
Wally: listftemp,2
TEMPORARY FILES FOR <user.account,group - snipped>
ACCOUNT= <acct> GROUP= <group>
FILENAME CODE ------------LOGICAL RECORD----------- ----SPACE----
SIZE TYP EOF LIMIT R/B SECTORS #X MX
$OLDPASS 72B FA 2 2 3 16 1 1 (TEMP)
Wally: print $oldpass
This is test line 1
This is test line 2
Wally:
Go figure!
Best Regards,
Joe
Joe Geiser
CSI Business Solutions, LLC
** Your Client-Server and Internetworking Specialists **
140 Bristol-Oxford Valley Road, Suite 102
Langhorne, PA 19047-3083
Phone: +1 (215) 945.8100 Fax: +1 (215) 943.8408
Toll-Free (US/Canada): (800) 498-4802
|