Scottish Economic History Database
File structure and codes
The Scottish Economic History Database comprises over 550 price, wage and other time-series held in about 130 separtate files.
In most cases there is a separate file for each source, although as their was an initial constraint of only 9 data-series per file, in some cases a particular source may extend over a number of separate files. Pointers to such files are always provided. Conversely, for reasons of convenience in a few cases individual files may contain data drawn from a number of separate, but always related, sources. This is also always made clear in the files concerned.
The layout of all files as they appear on screen follows a standard format and comprises the following nine sections;
- HTML-specific header comprising;
- Title
- Links to associated files and directories (including, if appropriate, source descriptions)
- Coded line describing general data chracteristics
- File title
- Data source(s)
- Text description of the file's contents (optional)
- Format statements and coded descriptions for each series held on the file
- Column headers (optional)
- Data series
- File terminator (9999 in date column)
The particular structure of the files reflects the fact that they were created for use with a suite of data management, analysis and presentation programs written in FORTRAN. To these original data files has been added the first section of HTML-specific information.
With the exception of the coded information, the nine sections are self-explanatory. The two coded sections provide the following information;
- A coded line containing general data chracteristics; this always starts with the word INPUT.
The word INPUT is then followed by three integers;
- a: how the data is represented, where;
- 1 - Just year, as an integer (ie 1701)
- 2 - Year and season, with S = summer and W = winter (ie 1701 S)
- 3 - Month and year (ie 10 1701)
- 4 - Just year, as a real number (ie 1700.00)
- b: the currency (if appropriate) in which the data is provided
- 1 - Sterling
- 2 - Scots (Note: 1 shilling Scots = 1 penny Sterling)
- c: whether a 'small sample' symbol is used to highlight an average price/wage derivied from a limited number of quotations
- Y - Yes
- N - No
- a: how the data is represented, where;
- A coded line for each data-series in the file
There is one line for each data-series, with the first line corresponding to the first series as read from left to right in the actual data section of the file. Each line of code contains eight integers followed by a FORTRAN format statement describing the position of the column or columns which make up the data series. The coded entries are as follows;- a: The number of columns used by the data-series (maximum = 4)
- b: The type of data, where;
- 1 - Wages
- 2 - Prices (or other)
- c: The data unit, where;
- 1 - If prices or other (b=2), price per unspecified unit; if wages (b=1), wage per day
- 2 - If prices or other (b=2), price per boll; if wages (b=1), wage per week
- 3 - If prices or other (b=2), price per peck; undefined for use with wages (b=1)
- 4 - If prices or other (b=2), price per ounce; undefined for use with wages (b=1)
- 5 - If prices or other (b=2), price per pound; undefined for use with wages (b=1)
- 6 - If prices or other (b=2), price per stone; undefined for use with wages (b=1)
- d: The data format, where;
- 1 - Integer
- 2 - Floating point
- e: Column one is?
- 1 - Pounds
- 2 - Shillings
- 3 - Pence
- 4 - Twelfths of pence (sometimes used when Sterling is the currency of account)
- f to h: Column 2 to 4 are?
- 0 - Not applicable
- 1 - Pounds
- 2 - Shillings
- 3 - Pence
- 4 - Twelfths of pence (sometimes used when Sterling is the currency of account)
- i: FORTRAN format statement identifying location of column(s) used
Return to User Notes.