MONTANA RIVERS INFORMATION SYSTEM 

 Rivers Report -.---■ 



APPENDIX F (cont.) 

 in. Report Dennition File Structure 



All lines in the Report Definition File have a similar structure. They begin 

 with a one or two character identifier delimited with a comma and one or more fields 

 delimited with commas or quotation marks and commas. 



For example; I,RV_BASIN,"SUBSTR(WATERCODE, 1,2) + UPPER(NAME)",Y is 

 an Index Definition Line with three fields. The second field is delimited with 

 commas and quotation marks because it contains imbedded commas. 



VARIABLE DEFINITION LINES - V 



Lines beginning with V are Variable Definition Lines. The first field after the 

 V is the name of the variable and must contain only alphabetic and numeric 

 characters or the underbar (_). The second field is value to be assigned to the 

 variable. (Note: the Report Definition File for the MRIS Rivers Report does not 

 have any Variable Definition Lines.) 



For example: V,DATA_DIR,C:\MRIS\DATA defines the variable APP_DTA_DIR 

 to have the value "C:\MRIS\DATA" 



The most common use of the Variable Definition Line is to define the directory 

 where files can be found. See Variables as Directories. 



FILE COUNT DEFINITION LINES - DC, LC, HC 



Only one each of the DC, LC, and HC lines should occur in the Report 

 Definition File. 



The line beginning with DC must appear before any Database Definition Lines 

 beginning with DB. The first field contains the maximum number of databases and 

 the second field contains the maximum number of indices for the databases. 



The line beginning with LC must appear before any Database Definition Lines 

 beginning with LT. The first field contains the maximum number of lookup tables 

 and the second field contains the maximum number of indices for the lookup tables. 



The line beginning with HC must appear before any Database Definition Lines 

 beginning with HP. The first field contains the maximum number of help files and 

 the second field contains the maximum number of indices for the help files. 



F - 4 



