CAMAC and CRYO Report Sort Application
Release Note 63.8
Cynthia A. Chopp
The CAMAC and CRYO Report Sort Application works in conjunction with the DataBase Serial Access server (DBSA), to provide a mechanism of reporting devices from the Record Management Services Files (RMS), sorted by device source class. The program is run on an every night basis, creating .DEV and .CR files for the CAMAC devices, .DEV, .ASP, and .TAN files for the CRYO devices, and .SYN files for all of the different source classes. The CAMAC .DEV files are sorted by device name, crate, slot, then channel, while the CAMAC .CR files are sorted only by crate, slot, and channel. The CRYO .DEV files are sorted by files are those sorted by device name, while the .CR files are those sorted by crate. The .ASP files are those sorted by aspect, crate, type, and channel, and the .TAN are those files sorted by crate, type, aspect, and channel. The .SYN files are those sorted by device name. Operators interested in viewing these files, have the opportunity of doing so through both DISNEY and WARNER accounts.
The report files are now located in the following new directory: warner::RDCS$CANC_RPT_FILES:
The CAMAC and CRYO report sort application scans the entire database for the device source classes of N0, M0, P0, E0, C0, C1, C2, C3, and C4. If a class is found, it is written to its respective file N.CAM, M.CAM, P.CAM, E.CAM, CYTST.CRY, CYPS1.CRY, CYPS4.CRY, CYNMS.CRY, and CYMCC.CRY. These files are then sorted as explained above. The .DEV and .CR files created for the CAMAC devices, contain the device name, property, template type, device type, branch, crate, slot, sub-address, and DAP type. The .DEV, .ASP, and .TAN files created for the CRYO devices, contain the device name, property, template type, crate, number of TANs, type, aspect, channel, and DAP type. Since not all of the devices contain all the above information, those fields not used will be padded with blanks. Synthetic devices may be found in their proper .DEV, .CR, .ASP, or .TAN file, as well as in their .SYN file. The .SYN files contain the synthetic device name, and the names of the actual devices from which it is composed.
Once the operator is logged on to their terminal, they may type either of the following commands at their prompt to display any of the files:
type/p warner::RDCS$CANC_RPT_FILES: filename.typ
type/p disney::usr$disks:[epicuredb] filename.typ
If the operator would like to copy any of the files to their own account, they may type either of these commands:
copy warner::RDCS$CANC_RPT_FILES: filename.typ filename.typ
copy disney::usr$disks:[epicuredb] filename.typ filename.typ
If the operator would like to search for a particular device in one of the files, they may type one of the following:
search warner::RDCS$CANC_RPT_FILES: filename.typ devstring
search disney::usr$disks:[epicuredb] filename.typ devstring
Please note that these files are updated on a daily basis. All previous versions are deleted.
The first part of this program initializes output files and their headings -- CAMAC devices only, and checks for any errors that may occur. If fatal errors are found, the program is automatically terminated. Next, a session is requested to use the DBSA Server to get the database information. Once a session is requested and granted, dbsa_ calls are used to retrieve database information needed. When the source name of a device is retrieved, it is compared to each of the given data sources of N0, M0, P0, E0, C0, C1, C2, C3, and C4. If a match is made, the information about this data source will be output to its respective file. If no match is made, the program will log an error to a file and continue through the remaining devices following the above process until finished.
The information that is accumulated during the run is then sorted by device and crate, for CAMAC devices, and output to .DEV and .CR files. An example of these CAMAC files is shown below .....
Device NamePropTemp Device TypeBranchCrate SlotSub- Add.DAP
MW1BPMREADT.007AXEROX 0111922GENERIC\ ME1BPMREADT.007AXEROX 0111923GENERIC
Cryo devices are sorted by device, aspect, and crate, and output to .DEV, .ASP, and .TAN files. An example of these CRYO files is shown below .....
MCCBIGCLRM1SET.CMCCr# 1 #TNs 3Typ 0Asp 0Ch 0 CRYO
MCCBIGCLRM1SET.CMCCr# 1 #TNs 3Typ 0Asp 1Ch 0 CRYO
Synthetic devices are included in the above files as well as in their own .SYN file. The .SYN files are sorted by device. An example of these SYNTHETIC files is shown below .....
These are the files which can be viewed by the user.
The report is set up to sort for all of the data sources: N0, M0, P0, E0, C0, C1, C2, C3, and C4. At this time the user may only look at these files, copy them into their own account, and or search them. In future versions, the user may have access to running this program for one or more specific source classes. Other changes will include code modifications that will speed up the process, and make the program more flexible to user requests. Until then, it will be run every night by the system.