RTP Series - RTP49
VERBatim - V18
QTIPS - Amending non-Attached Files
Set_Attach_Sub and Attach images
QTIPS - Modifying EasyWriter To Display Field Descriptions
Utility Diskette # 3 - Part I
SecureUser
VERBatim - V25
@ATTACK - @Files.System
Advanced Revelation Initialisation Sequence (Overview) by Mike Pope
REVMEDIA Revisted
Set_Attach_Sub and Attach images
QTIPS - Command Line Options
QTIPS - Invalid Code and Command
QTIPS - Code/Command Help
Utility Diskette # 4
REVMEDIA Revisted
Set_Attach_Sub and Attach images
Utility Diskette # 4
Version 3 Technical Highlights - Customising NewApplication Creation
QTIPS - AREV Logon
What Happens At Logon
QTIPS - Undocumented Logon Options
QTIPS - Video Characteristics for Logon Messages
QTIPS - Using @Upper.Case and @Lower.Case with Foreign Languages
@ATTACK - @Lower.Case
@ATTACK - @Upper.Case
Sorting out Collation Sequences by Mike Pope
File Variables
LINEAR HASH FILE STRUCTURES - Part 1
QTIPS - File Handle Structure
Set_Attach_Sub and Attach images
@ATTACK - @Attrbt.Ptr
@ATTACK - @Query.Table
REVMEDIA Revisited
Uncommon Knowledge - WC_Table_Exit_Mode%
QTIPS - New Catalyst Option
Version 3 Technical Highlights - Deleting Tables Programmatically
Version 3 Technical Highlights - Aliasing Tables Programmatically
Version 3 TCL Subroutines - Creating Tables
Version 3 TCL Subroutines - Deleting Tables
Version 3 TCL Subroutines - Aliasing Tables
Symbol Table Structure
Utility Diskette # 4
Version 3 Technical Highlights - Creating New Accounts Programmatically
Version 3 Technical Highlights - Securing Accounts
Version 3 Technical Highlights - Deleting Accounts
Version 3 TCL Subroutines - Creating New Accounts
Version 3 TCL Subroutines - Deleting Accounts
Vroom
RTP Series - RTP32
Utility Diskette # 3 - Part I
Network Contention
Index Sub Revisited
Rebuilding Indexes
Utility Diskette # 3 - Part I
Utility Diskette # 4
RTP Series - RTP57
File Variables
Reader's Clinic - Volume Pointer Record
REVMEDIA Revisted
Utility Diskette # 4
RTP Series - RTP50
Background Processing
Creating Your Own Background Processes
@ATTACK - @Index.Time
How Indexes Are Updated
What's New (and un(der)documented!) In 2.12
Utility Diskette # 4
Referential Integrity
Reader's Clinic - Related Windows
RTP Series - RTP9
RTP Series - RTP50
VERBatim - V25
@ATTACK - @Files
Utility Diskette # 3 - Part I
RTP Series - RTP57
RTP Series - RTP57A
LINEAR HASH FILE STRUCTURES - Part 1
RTP Series - RTP57
RTP Series - RTP57A
LINEAR HASH FILE STRUCTURES - Part 1
Version 3 Technical Highlights - Customising NewApplication Creation
Reader's Clinic - Page Marks in Windows
Version 3 TCL Subroutines - Aliasing Tables
@ATTACK - @Return.Value

RevMedia FKB

DocumentV4I10A10
TitleSet_Attach_Sub and Attach images
KeywordsSET_ATTACH
ATTACH
IMAGE
SET_ATTACH_SUB
SYSENV
TextWITH the advent of 3 0 the pioneering work FROM Steve Thomas (with the
saving and restoring of attach images to permit rapid logon) was
incorporated in the main product The new Verb SETATTACH permitted
developers to take a snapshot of the system and store it in the SYSENV table
with a row id of SnapshotName*Account

The syntax of the command is simply

SETATTACH AttachImageName RebuildVocItem

where AttachImageName is the name of the attach image to create (minus the
*Account) and RebuildVocItem is the name of a VOC entry which will be run if
the attach image has changed since last logon

Such a voc entry might be something like this EXAMPLE (called in this case
RedoImage)

TCL
ATTACH IQRA\PROGS
ATTACH IQRA\DATA
SETATTACH IMAGENAME REDOIMAGE (O)

So when the system attaches the image it will compare the checksum on file
to a newly generated checksum and if the two differ it will invoke the TCL
batch command

William Earl asked recently on COMPUSERVE "What is the structure of the
attach image created by Set_Attach_Sub (as documented in the R/Basic
reference manual of Version 3 0)?" William wanted to be able to generate
the image himself on the fly so that MFSs etc could be added and removed
easily

As previously mentioned the attach image is stored in the SysEnv table as
ImageName*Account where Account is the CURRENT account name Within the
row the first 8 fields are clearly DEFINED the rest of the fields up to
field 19 are blank and field 20 onwards has the structure of multiple
repeating fields dependent upon the TABLES attached The structure is as
follows

< 1 > Always seems to contain the literal ATTACH_IMAGE

< 2 > The name of the VOC entry to be used to
rebuild the image if the system detects a change in the
MEDIA maps since the image was last built

< 3 > A multivalued list of the BFSs used by this attached image

< 4 > A multivalued list of the volume NAMES used by this attached
image

< 5 > A multivalued list corresponding to < 4 > of the BFSs used by
the volumes

< 6 > A multivalued list corresponding to < 4 > of the DOS file
locations of the volumes

< 7 > A multivalued list corresponding to < 4 > of the Control file
locations of the volumes

< 8 > A multivalued list corresponding to < 4 > which contains the
checksum indicator used to see whether the image has changed
since last build and thus needs REBUILDING

This number seems to be in some way related to the REVMEDIA
files and is thus not generated for non linear hash filing
SYSTEMS A potential application for the Omniscript stub in
BFSs perhaps?

< 9 19> Unused

< 20 et seq> Section 1 Field mark delimited set of table NAMES attached
terminated WITH Char(0) Note that these are the NAMES by
which the TABLES are known in this account ie if they are
aliased these are the alias NAMES not the original NAMES

Section 2 Field mark delimited set of volumes TABLES in
Section 1 are on Terminated WITH Char(0)

Section 3 Field mark delimited set of original table names
attached terminated WITH Char(0) Note that this differs from
section 1 in that it is the original NAMES not the aliased
NAMES

Section 4 Field mark delimited set of ACCOUNTS that the
TABLES in Section 1 reside in Terminated WITH a Char(0)

Section 5 Field mark delimited set of Mfs/Bfs chains
attached to each table in Station 1 Terminated WITH a
Char(0)

Section 6 Field mark delimited set of Volumes attached
Terminated WITH two Char(0)s

Section 7 Field mark delimited set of Dos paths for the
Volumes in Section 6 if appropriate Terminated WITH a
Char(0)

Section 8 Field mark delimited set of TABLES on the Volumes
in Section 6 The individual TABLES are value mark delimited
Terminated WITH a Char(0)

Section 9 Field mark delimited set of BFSs ASSOCIATED with
the Volumes in Section 6


(Volume 4 Issue 10 Pages 9 10)
[revmedia/copyrigh.htm]

Page last modified: 31/01/03