EpiData-dk / analysis

EpiData Analysis
2 stars 0 forks source link

Compare multiple files command cby does not allow passwords in files. #99

Open JLepidata opened 4 months ago

JLepidata commented 4 months ago

new global datasets[j] string; new global filenames[j] string; new global j i:= 4; new global i i; for i := 1 to j do begin new global fil s := "dtr_RSYD_m_rkkp_sept-udenAIS - "+substring("QRSTUWXYZ",i,1) + ".epx"; ? fil; datasets[i] := "mds1"; filenames[i] := fil; end;

but: report cby id !fn := filenames !ds := datasets !no l; cannot work if the files have passwords . Suggestion: either ask for password on "loading" of each or preferable require same password for all files: report cby id !fn := filenames !ds := datasets !nol !pw:="SomeThing" ;

charlesknightsbridge commented 4 months ago

How about

!pw:=["common pwd" | pwd vector]

In your example,

report cby id !fn := filenames !ds := datasets !nol !pw:="SomeThing" ;

or

new g pwds[j] string; pwds[1] := "pwd1"; // etc report cby id !fn := filenames !ds := datasets !nol !pw:=pwds;