Changeset 7426 for trunk/MagicSoft/Mars/datacenter/macros
- Timestamp:
- 11/25/05 11:17:51 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/checkfileavail.C
r7112 r7426 71 71 } 72 72 73 int checkfileavail(TString sequence no)73 int checkfileavail(TString sequencefile) 74 74 { 75 75 TEnv env("sql.rc"); … … 89 89 TEnv rc("steps.rc"); 90 90 91 cout << "sequ: " << sequenceno.Data() << endl; 92 TString query(Form("SELECT fRunNumber FROM RunData WHERE fSequenceFirst=%s", 93 sequenceno.Data())); 91 TEnv sequ(sequencefile); 92 93 TString runs; 94 runs = sequ.GetValue("Runs", ""); 95 runs.ReplaceAll(" ", ","); 96 if (runs.IsNull()) 97 { 98 cout << "ERROR - No runs in file " << sequencefile << " found." << endl; 99 return 0; 100 } 101 102 cout << "sequ file: " << sequencefile.Data() << endl; 103 TString query(Form("SELECT fRunNumber FROM RunData WHERE fRunNumber in (%s)", 104 sequencefile.Data())); 94 105 95 106 TSQLResult *res = serv.Query(query);
Note:
See TracChangeset
for help on using the changeset viewer.