You are on page 1of 3

/**********************************************************************

THE EUROPEAN STATE FINANCE DATABASE

5 Filename: c:\rjb\malet\malm045.doc
Purpose: To create a derived dataset
Date created: 21 May 1993
Date last altered:
SAS datasets used: c:\rjb\malet\malm027.ssd; \frindic\indd001.ssd
10 Raw data files used:
ESFDB dataset created: c:\rjb\malet\malm045.ssd
Sources: Malet (1789); AN MS KK355; N. de Wailly, 'Mémoire sur
les variations de la livre tournois . . . ', Mémoire de
l'académie des inscriptions et belles-lettres, xxi, pt ii
15 (1857), table iii, 350-51
Source subset: Malet's figures for ordinary & extraordinary royal revenue
in France, compared with another source, 1600-99
(expressed in metric tonnes of silver)
Source subset title:
20 Owner of file: RJ Bonney
Author of program: MMB

**********************************************************************/

25 *--------------------------------------------------------------------*
| SPECIFY GENERAL SETTINGS |
*--------------------------------------------------------------------*;
libname z 'c:\rjb\malet';
libname y 'c:\frindic';
30
*--------------------------------------------------------------------*
| READ STORED DATASETS INTO TEMPORARY DATASETS |
*--------------------------------------------------------------------*;
data a;
35 set z.malm027 (keep=year revtot4 denext dxgtot ortot);
run;

data b;
set y.indd001;
40 run;

*--------------------------------------------------------------------*
| SORT ALL DATASETS BY 'JOIN' COLUMN (USUALLY YEAR) |
*--------------------------------------------------------------------*;
45 proc sort data=a;
by year;
run;
proc sort data=b;
by year;
50 run;

*--------------------------------------------------------------------*
| MERGE DATASETS |
*--------------------------------------------------------------------*;
55 data m;
merge a b;
by year;
run;
*--------------------------------------------------------------------*
| ADD FURTHER COLUMNS IF REQUIRED |
*--------------------------------------------------------------------*;
5 data m;
set m;

/*To convert revenue figures into metric tonnes of fine silver*/


malors=revtot4*silvy;
10 malorst=malors/1000000;
malers=denext*silvy;
malerst=malers/1000000;
kkors=ortot*silvy;
kkorst=kkors/1000000;
15 kkers=dxgtot*silvy;
kkerst=kkers/1000000;

run;

20 *--------------------------------------------------------------------*
| LABEL ADDITIONAL VARIABLES IF REQUIRED |
*--------------------------------------------------------------------*;
data m;
set m;
25 label
malors ='Malet:ordinary revenue tot (grms silver)'
malorst ='Malet:ordinary rev tot (tonnes silver)'
malers ='Malet:extraordin rev tot (grms silver)'
malerst ='Malet:extraordin rev tot (tonnes silver)'
30 kkors ='KK355:ordinary revenue tot (grms silver)'
kkorst ='KK355:ordinary rev tot (tonnes silver)'
kkers ='KK355:extraordin rev tot (grms silver)'
kkerst ='KK355:extraordin rev tot (tonnes silver)';

35 run;

*--------------------------------------------------------------------*
| TRANSFORM COLUMN VALUES IF REQUIRED |
*--------------------------------------------------------------------*;
40
*--------------------------------------------------------------------*
| DROP ANY UNWANTED VARIABLES |
*--------------------------------------------------------------------*;

45 *--------------------------------------------------------------------*
| STORE AS PERMANENT DATA SET IF REQUIRED |
*--------------------------------------------------------------------*;
data z.malm045 (label='French ordin & extraord rev 1600-99');
set m;
50 run;

/**********************************************************************

NOTES

The contents of this data file may not be reproduced without citation of the ESFDB
55 dataset name.
The purpose of this merged dataset is to run Malet's figures for ordinary revenue
(REVTOT4) against another source, KK355 (ORTOT) for the period 1662-99 and then
to convert them into metric tonnes of silver. It also runs Malet's extraordinary rev
figures (DENEXT), which exist for the period up to 1656, with KK355's extraordinary
5 rev figures (DXGTOT) for the period 1662-99 and converts them to silver tonnes.

**********************************************************************/

You might also like