-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMAC_Profile.ecl
32 lines (29 loc) · 1.47 KB
/
MAC_Profile.ecl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* Generate a Profile Report for the supplied dataset
*
* @param inFile the dataset
* @param id_field [optional] numeric cluster identifier (usually UNSIGNED6)
* @param src_field [optional] source identifier (usually STRING2)
* @param CorrelateSampleSize [optional] max records to compare when running a field correlation analysis
* @param out_prefix [optional] output name prefix (allows multiple MAC_Profile calls per workunit)
* @param maxFieldCorr [optional] max fields allowable to run a field correlation analysis
* @return no return value - this is an action with several outputs
*
* Examples:
* SALT_Profile.MAC_Profile(my_dataset);
* SALT_Profile.MAC_Profile(my_dataset,pid,source);
* SALT_Profile.MAC_Profile(my_dataset,maxFieldCorr:=75);
*/
EXPORT MAC_Profile(inFile,id_field='',src_field='',CorrelateSampleSize=100000000,out_prefix='',maxFieldCorr=50) := MACRO
profile_mod := SALT_Profile.MOD_Profile(inFile,id_field,src_field,CorrelateSampleSize,out_prefix,maxFieldCorr);
// Execute the output actions
profile_mod.out;
/*
Several exported attributes are also available, corresponding with the workunit results created by profile_mod.out:
profile_mod.Summary
profile_mod.invSummary
profile_mod.AllProfiles
profile_mod.optLayout
profile_mod.Types
You can reference the above attributes in your calling code after you have called MAC_Profile().
*/
ENDMACRO;