Tape data to disc files and setting Posix time
October 20, 2010
I have some information on a tape. I’d like to create a store to disc file with it — how do I do that?
Jack Connor replies:
There are several solutions. The first and easiest is to simply restore the info to a system (RESTORE *T;/;SHOW;CREATE;ACCOUNT=WORKSTOR) where WORKSTOR is an account you create to pull the data in. Then a simple FILE D=REGSFILE;DEV=DISC and STORE /WORKSTOR/;*D;whatever else should create the disc store.
The second is to use FCOPY. You'll have to research the STORE format, but I believe it's FILE TAPEIN;DEV=TAPE;REC=8192,,U,BINARY.
The third (also easy, but you need the software) is to use Allegro's tool TAPECOPY, which moves from tape store to disc store and back.
John Pitman adds:
Do you mean copy it off tape to disk store file? I’m not sure if that can be done, as in my experience of tapes, there is a file mark between files, and EOT is signified by multiple file marks in a row... but anything may be possible. If you do a file equate and FCOPY as shown below, you should be able to look at the raw data, and it should show separate files, after a file list at the front.
FILE TX;DEV=TAPE;REC=32767
FCOPY
FROM=*TX;TO=;CHAR;FILES=ALL
Here is our current store command, and the message it provokes. MAXTAPEBUF speeds it up somewhat
STORE !INSTOREX.NEW.STOCK2K;*DDS777;FILES=100000;DIRECTORY;MAXTAPEBUF
Why is the date/time in the Posix shell way off from the time on MPE, and what can be done to fix it? It’s over three weeks off.
Homesteading Editor Gilles Schipper replies:
First, check to ensure your timezone offset is correct and there are no pending time clock changes.
:showclock
SYSTEM TIME: TUE, OCT 19, 2010, 5:46:38 PM
CURRENT TIME CORRECTION: 0 SECONDS
TIME ZONE: 4 HOURS 0 MINUTES WESTERN HEMISPHERE
If incorrext timezone and/or time correction is non-zero, you can fix both with the :SETCLOCK command.
Next, ensure that the TZ variable is appropriately set. This can be done with a system logon UDC that executes the following:
comment the following is for Eastern Time
SETVAR TZ "EST5EDT"
comment use the following for california
comment SETVAR TZ "PST8PDT"
Do you mean copy it off tape to disk store file? I’m not sure if that can be done, as in my experience of tapes, there is a file mark between files, and EOT is signified by multiple file marks in a row... but anything may be possible. If you do a file equate and FCOPY as shown below, you should be able to look at the raw data, and it should show separate files, after a file list at the front.
FILE TX;DEV=TAPE;REC=32767
FCOPY
FROM=*TX;TO=;CHAR;FILES=ALL
Here is our current store command, and the message it provokes. MAXTAPEBUF speeds it up somewhat
STORE !INSTOREX.NEW.STOCK2K;*DDS777;FILES=100000;DIRECTORY;MAXTAPEBUF
Why is the date/time in the Posix shell way off from the time on MPE, and what can be done to fix it? It’s over three weeks off.
Homesteading Editor Gilles Schipper replies:
First, check to ensure your timezone offset is correct and there are no pending time clock changes.
:showclock
SYSTEM TIME: TUE, OCT 19, 2010, 5:46:38 PM
CURRENT TIME CORRECTION: 0 SECONDS
TIME ZONE: 4 HOURS 0 MINUTES WESTERN HEMISPHERE
If incorrext timezone and/or time correction is non-zero, you can fix both with the :SETCLOCK command.
Next, ensure that the TZ variable is appropriately set. This can be done with a system logon UDC that executes the following:
comment the following is for Eastern Time
SETVAR TZ "EST5EDT"
comment use the following for california
comment SETVAR TZ "PST8PDT"