21 %MACRO _dependency_agg(i_path =
27 %LOCAL l_countObs json_dir l_pgmName l_filename;
29 %_tempFileName(json_dir);
30 %_dir(i_path = &i_path
41 FILENAME aggregJS "&o_file";
46 PUT 'var allGraphs = [';
50 %DO l_i=1 %TO &l_countObs;
53 * read one observation;
54 SET &json_dir. (firstobs=&l_i. obs=&l_i.);
55 len = length(membername)-12;
56 CALL SYMPUT("l_pgmName", substr(membername,1,len));
57 CALL SYMPUT("l_filename", trim(filename));
60 %IF %EVAL(%SYSFUNC(mod(&l_i,2)) = 1) %THEN %DO;
63 helper = catt('{
"id" :
"', "&l_pgmName
", '"');
78 helper = ',
"caller" :
';
90 helper = "} // " || "&l_pgmName";
92 %IF %sysfunc(strip(&l_countObs)) NE %sysfunc(strip(&l_i)) %THEN %DO;
100 /* Finalize JavaScript file */
108 %MEND _dependency_agg;