This macros determines number of partitions and assigns each patID to a partition.
More...
This macros determines number of partitions and assigns each patID to a partition.
- Determine the number of partitions needed for the dataset based on filesize. Create one partition for every 2G of data.
- If there is more than one partition required, then create a partition-id for each patid. Only keep the necessary split_vars for the partition.
- Program inputs
- &DATALIB..&DATAFILE. (Dataset to determine number of partitions.)
- Program outputs
- &OUTFILE. (Dataset containing each partition number.)
Usage
%ms_partition_patients(DATALIB=worktemp,
DATAFILE=meds,
SPLIT_VARS=patid,
OUTFILE=medspartition);
- Parameters
-
[in] | DATALIB | Library for input dataset. |
[in] | DATAFILE | Source data to be split. |
[in] | SPLIT_VARS | Variables needed to identify unique records. |
[out] | OUTFILE | File containing patient partitions. |
SAS Macros Dependencies
None.
- Author
- Sentinel Coordinating Center (info@.nosp@m.sent.nosp@m.inels.nosp@m.yste.nosp@m.m.org)