Expanded description
| Topic |
Description |
| Name |
facs2equipment |
| Synopsis |
/infobank/programs/refmt/facs2equipment/facs2equipment.for |
| Description |
Program to convert a .equipment_log file
to a .equipmentused file.
|
| Author |
Clint Steele 12/7/2000
|
| Promts |
'Enter non-hyphenated ActivityID'
|
| Input |
(EquipSystem, EquipType, EquipmentCode, EquipmentBrand,
EquipmentModel, EquipmentMedia, Comment)
(a,t,a,t,a,t,a,t,a,t,a,t,a)
|
| Output |
(ActivityID, Equipment)
(a7, t10, a)
|
| Opens |
open (unit = 90,
* access = 'sequential',
* form = 'formatted',
* status = 'old',
* name = InFile(1:InFileLength),
* err = 2)
open (unit = 91,
* access = 'sequential',
* form = 'formatted',
* status = 'unknown',
* name = OutFile(1:OutFileLength))
|
| Reads |
read (5, '(q,a)', end=999)
* IDLength, ID(1:IDLength)
read (90, '(q,a)', end = 199)
* ALineLength, ALine(1:ALineLength)
read (90, '(q,a)', end = 99)
* ALineLength, ALine(1:ALineLength)
|
| Writes |
write (BigID, '(10x)')
write (InFile, '(1024x)')
write (OutFile, '(1024x)')
write (91, 8) BigID, ! ActivityID
* ALine(1:Tabs(1)-1), ! EquipmentSystem
* ALine(Tabs(1)+1:Tabs(2)-1), ! EquipmentType
* ALine(Tabs(3)+1:Tabs(4)-1), ! EquipmentBrand
* ALine(Tabs(4)+1:Tabs(5)-1), ! EquipmentModel
* ALine(Tabs(5)+1:Tabs(6)-1), ! EquipmentMedia
* ALine(Tabs(2)+1:Tabs(3)-1), ! EquipmentCode
* ALine(Tabs(6)+1:ALineLength) ! Comment
|
| Calls |
call changecase ('SMALLS', ID(1:IDLength))
call changecase ('CAPITALS', BigID(1:IDLength))
call stringlen (InFile, InFileLength)
call stringlen (OutFile, OutFileLength)
|
|