HDR*PowerBuilder0600<Objects used for importing NEI data NIF 20FRE*?NOD* L38ENT*0600b .b?f_dlookup.srfENT*0600z9LdAn_cst_nei_import.udoENT*0600@@ZA"n_cst_nei_import.sruENT*0600xdA&n_ds_nei_import_county_activities.udoENT*0600.b?&n_ds_nei_import_county_activities.sruENT*0600| dA%n_ds_nei_import_state_activities.udoENT*0600.b?%n_ds_nei_import_state_activities.sruENT*0600j;=dAn_ds_nei_import_temp_base.udoENT*060047bAn_ds_nei_import_temp_base.sruENT*0600dA'n_ds_nei_tmp_ctrl_equip_activities.udoENT*0600|yA'n_ds_nei_tmp_ctrl_equip_activities.sruENT*0600dA!n_ds_nei_tmp_emis_activities.udoENT*0600$pAn_ds_nei_tmp_sources.sruENT*0600 dA n_ds_nei_import_rap_sources.udoENT*0600p ToA n_ds_nei_import_rap_sources.sruENT*0600V dA n_ds_nei_import_rap_devices.udoENT*0600t .b? n_ds_nei_import_rap_devices.sruENT*0600 eA"n_ds_nei_import_rap_processes.udoENT*0600 |.b?"n_ds_nei_import_rap_processes.sruENT*0600 eA n_ds_nei_import_rap_streams.udoENT*0600 l.b? n_ds_nei_import_rap_streams.sruENT*0600 eA"n_ds_nei_import_rap_actvities.udoENT*0600 ~.b?"n_ds_nei_import_rap_actvities.sruENT*0600# eA(n_ds_nei_import_rap_reference_codes.udoENT*0600 z.b?(n_ds_nei_import_rap_reference_codes.sruENT*0600|eA,n_ds_nei_import_conversion_lookup_codes.udoENT*0600 ;A,n_ds_nei_import_conversion_lookup_codes.sruENT*0600+eAf_parserecordstring.funENT*0600 >`Af_parserecordstring.srfENT*0600> eA,n_ds_nei_import_rap_proc_spec_schedules.udoENT*0600< .b?,n_ds_nei_import_rap_proc_spec_schedules.sruENT*0600 eA&n_ds_nei_import_rap_group_members.udoENT*0600.b?&n_ds_nei_import_rap_group_members.sruENT*0600 eA$n_ds_nei_import_rap_connections.udoENT*0600.b?$n_ds_nei_import_rap_connections.sruENT*06008 eA-n_ds_nei_import_rap_location_coordinates.udoENT*0600.b?-n_ds_nei_import_rap_location_coordinates.sruENT*0600 eA(n_ds_nei_import_rap_location_groups.udoENT*0600N.b?(n_ds_nei_import_rap_location_groups.sruENT*0600eAf_stringglobalreplace.funENT*0600h .b?f_stringglobalreplace.srfDAT*PDW0800pdw+ut````/ F$*nn``DAT* @D` DAT* rap_activities_rid_t< $0%  MS Sans SerifMS Sans Serif$ 2$-8$700$1$ 536870912$DAT* 9$8$452$<274%RidRid`)! "$&$rap_activities_creation_date_time_t$#@%293$%E581%'(Creation Date TimeCreation Date Time`2 *DAT* +-/rap_activities_metric_code_t$,r882$.x%549%01 Metric Code Metric Code`;)3 468#rap_activities_metric_level_type_t$5;1440$7w 544%9:MeDAT*tric Level TypeMetric Level Type`D2< =?A!rap_activities_start_date_time_t$>1993$@h475%BCStart Date TimeStart Date Time`M;E FHJrap_activities_user_id_t$G 2478$DAT*I0219%KLWhoWho`VDN OQSrap_activities_comment_text_t$PP 2706$R2194%TU Comments Comments`_MW XZ\#rap_activities_confidential_flag_t$YDAT* 2.4910$[Oi361%]^ Confidential Confidential`hV` acerap_activities_data_code_t$b5280$dE;315%fg Data Code Data Code`q_i jlnrap_DAT*"activities_end_date_time_t$k5605$mx%549%opEnd Date TimeEnd Date Time`zhr suwrap_activities_material_code_t$tD6162$vx%549%xyMaterial CodeMaterial Code`q{DAT*$ |~rap_activities_method_type_t$}@6720$U389% Method Type Method Type`z  rap_activities_reference_code_t$7118$x%549%Reference CodeReference DAT*&Code`  rap_activities_reference_type_t$7675$i480%Reference TypeReference Type` rap_activities_value_amt_t$8165$658DAT*(% Value Amount Value Amount` rap_activities_value_type_t$"8832$JR338% Value Type Value Type` !rap_activities_value_unit_code_t$#DAT**9179$k489%Value Unit CodeValue Unit Code` rap_geographic_locations_rid_t$E%9678$;270`  rap_geographic_locations_name_t$&DAT*,9957$81426%NameName`  rap_geographic_locations_type_t$ ,11392$HI329%TypeType` rap_activities_value_t$DAT*. -11730$x%549%ValueValue@@Pm(rap_activities_rid$ 9$@64$DAT*0<274& [general] [general]("rap_activities_creation_date_time$@%293$E581&[shortdate] [time][shortdate] [time]DAT*2( rap_activities_metric_code$r882$x%549& [general] [general](!rap_activities_metric_level_type$;1440$w DAT*4544(rap_activities_start_date_time$1993$h475(rap_activities_user_id$ 2478$DAT*60219   (rap_activities_comment_text$ P 2706$ 2194(!rap_activities_confidential_flag$2.DAT*84910$Oi361 (rap_activities_data_code$5280$E;315$! (#rap_activities_end_date_time$ DAT*:5605$"x%549+%&( (* rap_activities_material_code$'D6162$)x%5492$,-/ (1rap_activities_methDAT*<od_type$.@6720$0U3899+346 (8 rap_activities_reference_code$57118$7x%549@2:;=(?DAT*>rap_activities_reference_type$<7675$>i480J9ABDF(Irap_activities_value_amt$C8165$E658&GH [general] [general]Q@KLDAT*@N(Prap_activities_value_type$M"8832$OJR338XJRSU(Wrap_activities_value_unit_code$T#9179$Vk489_QYDAT*BZ\(^rid$[E%9678$];270fX`ac(e2rap_geographic_locations_name$b&9957$d81426m_gDAT*Dhj(lrap_geographic_locations_type$i ,11392$kHI329fnoq(s rap_activities_value$p -11730$rx%549@DAT*Fvy~|}  DAT*H    DAT*J$ + 2 9@ JQ XDAT*L _3f m wx :County_FIPS :State_RIDz{ County_FIPS State_RIDrap_activities_ridrap_activities.rid"rap_activities_creation_date_time"rap_activities.creation_date_timerap_activitiesDAT*N_metric_coderap_activities.metric_code!rap_activities_metric_level_type!rap_activities.metric_level_typerap_activities_start_date_timerap_activities.start_date_timerap_activities_user_idrap_activities.user_idrap_activities_comment_textrap_activities.comment_text!rap_activities_confidential_flag!rap_activities.confidential_flagDAT*Prap_activities_data_coderap_activities.data_coderap_activities_end_date_timerap_activities.end_date_timerap_activities_material_coderap_activities.material_code$rap_activities_method_typerap_activities.method_type+rap_activities_reference_coderap_activities.reference_code2rap_activities_reference_typerap_activities.reference_type9DAT*Rrap_activities_value_amtrap_activities.value_amt@rap_activities_value_typerap_activities.value_typeJrap_activities_value_unit_coderap_activities.value_unit_codeQridrap_geographic_locations.ridXrap_geographic_locations_namerap_geographic_locations.name_rap_geographic_locations_typerap_geographic_locations.typefrap_activDAT*Tities_valuerap_activities.valuemPBSELECT( VERSION(400) TABLE(NAME="rap_activities" ) TABLE(NAME="rap_geographic_locations" ALIAS="rap_geographic_locations_a" ) TABLE(NAME="rap_geographic_locations" ALIAS="rap_geographic_locations_b" ) COLUMN(NAME="rap_activities.rid") COLUMN(NAME="rap_activities.creation_date_time") COLUMN(NAME="rap_activities.metric_code") COLUMN(NAME="rap_activities.metric_level_type") COLUMN(NAME="rap_activities.start_date_time") COLUMN(NAME="rap_DAT*Vactivities.user_id") COLUMN(NAME="rap_activities.comment_text") COLUMN(NAME="rap_activities.confidential_flag") COLUMN(NAME="rap_activities.data_code") COLUMN(NAME="rap_activities.end_date_time") COLUMN(NAME="rap_activities.material_code") COLUMN(NAME="rap_activities.method_type") COLUMN(NAME="rap_activities.reference_code") COLUMN(NAME="rap_activities.reference_type") COLUMN(NAME="rap_activities.value_amt") COLUMN(NAME="rap_activities.value_type") COLUMN(NAME="rap_activities.value_unit_code") COLDAT*dUMN(NAME="rap_geographic_locations_a.rid") COLUMN(NAME="rap_geographic_locations_a.name") COLUMN(NAME="rap_geographic_locations_a.type") COLUMN(NAME="rap_activities.value") JOIN (LEFT="rap_activities.ref_rid" OP ="="RIGHT="rap_geographic_locations_a.rid" ) JOIN (LEFT="rap_geographic_locations_a.parent_rid" OP ="="RIGHT="rap_geographic_locations_b.rid" )WHERE( EXP1 ="( rap_activities.metric_level_type" OP ="=" EXP2 ="'GEO' )" LOGIC ="and" ) WHERE( EXP1 ="(rap_geographic_lDAT*Zrelease 6; datawindow(units=0 timer_interval=0 color=16777215 processing=1 print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.prompt=no print.buttons=no print.preview.buttons=no grid.lines=0 ) header(height=68 color="536870912" ) summary(height=0 color="536870912" ) footer(height=0 color="536870912" ) detail(height=80 color="536870912" ) table(column=(typDAT*\e=decimal(0) updatewhereclause=yes name=rap_activities_rid dbname="rap_activities.rid" ) column=(type=datetime updatewhereclause=yes name=rap_activities_creation_date_time dbname="rap_activities.creation_date_time" ) column=(type=char(12) updatewhereclause=yes name=rap_activities_metric_code dbname="rap_activities.metric_code" ) column=(type=char(3) updatewhereclause=yes name=rap_activities_metric_level_type dbname="rap_activities.metric_level_type" ) column=(type=datetime updatewhereclausDAT*^e=yes name=rap_activities_start_date_time dbname="rap_activities.start_date_time" ) column=(type=char(4) updatewhereclause=yes name=rap_activities_user_id dbname="rap_activities.user_id" ) column=(type=char(255) updatewhereclause=yes name=rap_activities_comment_text dbname="rap_activities.comment_text" ) column=(type=char(1) updatewhereclause=yes name=rap_activities_confidential_flag dbname="rap_activities.confidential_flag" ) column=(type=char(4) updatewhereclause=yes name=rap_activities_DAT*`data_code dbname="rap_activities.data_code" ) column=(type=datetime updatewhereclause=yes name=rap_activities_end_date_time dbname="rap_activities.end_date_time" ) column=(type=char(12) updatewhereclause=yes name=rap_activities_material_code dbname="rap_activities.material_code" ) column=(type=char(2) updatewhereclause=yes name=rap_activities_method_type dbname="rap_activities.method_type" ) column=(type=char(12) updatewhereclause=yes name=rap_activities_reference_code dbname="rap_activitiDAT*bes.reference_code" ) column=(type=char(6) updatewhereclause=yes name=rap_activities_reference_type dbname="rap_activities.reference_type" ) column=(type=real updatewhereclause=yes name=rap_activities_value_amt dbname="rap_activities.value_amt" ) column=(type=char(3) updatewhereclause=yes name=rap_activities_value_type dbname="rap_activities.value_type" ) column=(type=char(8) updatewhereclause=yes name=rap_activities_value_unit_code dbname="rap_activities.value_unit_code" ) column=(type=dDAT*decimal(0) updatewhereclause=yes name=rid dbname="rap_geographic_locations.rid" ) column=(type=char(50) updatewhereclause=yes name=rap_geographic_locations_name dbname="rap_geographic_locations.name" ) column=(type=char(8) updatewhereclause=yes name=rap_geographic_locations_type dbname="rap_geographic_locations.type" ) column=(type=char(12) updatewhereclause=yes name=rap_activities_value dbname="rap_activities.value" ) retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"rap_activities~" ) TABLE(DAT*fNAME=~"rap_geographic_locations~" ALIAS=~"rap_geographic_locations_a~" ) TABLE(NAME=~"rap_geographic_locations~" ALIAS=~"rap_geographic_locations_b~" ) COLUMN(NAME=~"rap_activities.rid~") COLUMN(NAME=~"rap_activities.creation_date_time~") COLUMN(NAME=~"rap_activities.metric_code~") COLUMN(NAME=~"rap_activities.metric_level_type~") COLUMN(NAME=~"rap_activities.start_date_time~") COLUMN(NAME=~"rap_activities.user_id~") COLUMN(NAME=~"rap_activities.comment_text~") COLUMN(NAME=~"rap_activities.confidDAT*hential_flag~") COLUMN(NAME=~"rap_activities.data_code~") COLUMN(NAME=~"rap_activities.end_date_time~") COLUMN(NAME=~"rap_activities.material_code~") COLUMN(NAME=~"rap_activities.method_type~") COLUMN(NAME=~"rap_activities.reference_code~") COLUMN(NAME=~"rap_activities.reference_type~") COLUMN(NAME=~"rap_activities.value_amt~") COLUMN(NAME=~"rap_activities.value_type~") COLUMN(NAME=~"rap_activities.value_unit_code~") COLUMN(NAME=~"rap_geographic_locations_a.rid~") COLUMN(NAME=~"rap_geographic_locatDAT*jions_a.name~") COLUMN(NAME=~"rap_geographic_locations_a.type~") COLUMN(NAME=~"rap_activities.value~") JOIN (LEFT=~"rap_activities.ref_rid~" OP =~"=~"RIGHT=~"rap_geographic_locations_a.rid~" ) JOIN (LEFT=~"rap_geographic_locations_a.parent_rid~" OP =~"=~"RIGHT=~"rap_geographic_locations_b.rid~" )WHERE( EXP1 =~"( rap_activities.metric_level_type~" OP =~"=~" EXP2 =~"'GEO' )~" LOGIC =~"and~" ) WHERE( EXP1 =~"(rap_geographic_locations_a.type~" OP =~"=~" EXP2 =~"'COUNTY' DAT*l)~" LOGIC =~"and~" ) WHERE( EXP1 =~"( rap_activities.metric_code~" OP =~"=~" EXP2 =~"'FIPS CODE' )~" LOGIC =~"and~" ) WHERE( EXP1 =~"(rap_activities.value~" OP =~"=~" EXP2 =~":County_FIPS)~" LOGIC =~"and~" ) WHERE( EXP1 =~"rap_geographic_locations_b.type~" OP =~"=~" EXP2 =~"'STATE'~" LOGIC =~"and~" ) WHERE( EXP1 =~"rap_geographic_locations_b.rid~" OP =~"=~" EXP2 =~":State_RID~" ) ) ORDER(NAME=~"rap_activities.value~" ASC=yes ) ARG(NAME = ~"County_FIPS~" DAT*nTYPE = string) ARG(NAME = ~"State_RID~" TYPE = number) " arguments=(("County_FIPS", string),("State_RID", number)) ) text(band=header alignment="2" text="Rid"border="0" color="0" x="9" y="8" height="52" width="274" name=rap_activities_rid_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Creation Date Time"border="0" color="0" x="293" y="8" heigDAT*pht="52" width="581" name=rap_activities_creation_date_time_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Metric Code"border="0" color="0" x="882" y="8" height="52" width="549" name=rap_activities_metric_code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" bacDAT*rkground.color="536870912" ) text(band=header alignment="2" text="Metric Level Type"border="0" color="0" x="1440" y="8" height="52" width="544" name=rap_activities_metric_level_type_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Start Date Time"border="0" color="0" x="1993" y="8" height="52" width="475" name=rap_activities_start_date_time_t fDAT*tont.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Who"border="0" color="0" x="2478" y="8" height="52" width="219" name=rap_activities_user_id_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Comments"DAT*vborder="0" color="0" x="2706" y="8" height="52" width="2194" name=rap_activities_comment_text_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Confidential"border="0" color="0" x="4910" y="8" height="52" width="361" name=rap_activities_confidential_flag_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="DAT*x2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Data Code"border="0" color="0" x="5280" y="8" height="52" width="315" name=rap_activities_data_code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="End Date Time"border="0" color="0" x="5605" y="8" height="52" width="549" name=rap_activiDAT*zties_end_date_time_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Material Code"border="0" color="0" x="6162" y="8" height="52" width="549" name=rap_activities_material_code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(baDAT*|nd=header alignment="2" text="Method Type"border="0" color="0" x="6720" y="8" height="52" width="389" name=rap_activities_method_type_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Reference Code"border="0" color="0" x="7118" y="8" height="52" width="549" name=rap_activities_reference_code_t font.face="MS Sans Serif" font.height="-8" font.weiDAT*~ght="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Reference Type"border="0" color="0" x="7675" y="8" height="52" width="480" name=rap_activities_reference_type_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Value Amount"border="0" color="0" x="8165DAT*" y="8" height="52" width="658" name=rap_activities_value_amt_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Value Type"border="0" color="0" x="8832" y="8" height="52" width="338" name=rap_activities_value_type_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" bDAT*ackground.color="536870912" ) text(band=header alignment="2" text="Value Unit Code"border="0" color="0" x="9179" y="8" height="52" width="489" name=rap_activities_value_unit_code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Rid"border="0" color="0" x="9678" y="8" height="52" width="270" name=rap_geographic_locations_rid_t font.face="MS SanDAT*s Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Name"border="0" color="0" x="9957" y="8" height="52" width="1426" name=rap_geographic_locations_name_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Type"border="0" DAT*color="0" x="11392" y="8" height="52" width="329" name=rap_geographic_locations_type_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Value"border="0" color="0" x="11730" y="8" height="52" width="549" name=rap_activities_value_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" backgroDAT*und.mode="1" background.color="536870912" ) column(band=detail id=1 alignment="1" tabsequence=32766 border="0" color="0" x="9" y="8" height="64" width="274" format="[general]" name=rap_activities_rid edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=2 alignment="0" tabsequeDAT*nce=32766 border="0" color="0" x="293" y="8" height="64" width="581" format="[shortdate] [time]" name=rap_activities_creation_date_time edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=3 alignment="0" tabsequence=32766 border="0" color="0" x="882" y="8" height="64" width="5DAT*49" format="[general]" name=rap_activities_metric_code edit.limit=12 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=4 alignment="0" tabsequence=32766 border="0" color="0" x="1440" y="8" height="64" width="544" format="[general]" name=rap_activities_metric_level_type edit.limit=3 editDAT*.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=5 alignment="0" tabsequence=32766 border="0" color="0" x="1993" y="8" height="64" width="475" format="[shortdate] [time]" name=rap_activities_start_date_time edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroDAT*ll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=6 alignment="0" tabsequence=32766 border="0" color="0" x="2478" y="8" height="64" width="219" format="[general]" name=rap_activities_user_id edit.limit=4 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2DAT*" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=7 alignment="0" tabsequence=32766 border="0" color="0" x="2706" y="8" height="64" width="2194" format="[general]" name=rap_activities_comment_text edit.limit=255 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="5368DAT*70912" ) column(band=detail id=8 alignment="0" tabsequence=32766 border="0" color="0" x="4910" y="8" height="64" width="361" format="[general]" name=rap_activities_confidential_flag edit.limit=1 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=9 alignment="0" tabsequence=32766 border="DAT*0" color="0" x="5280" y="8" height="64" width="315" format="[general]" name=rap_activities_data_code edit.limit=4 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=10 alignment="0" tabsequence=32766 border="0" color="0" x="5605" y="8" height="64" width="549" format="[shortdate] [time]" DAT*name=rap_activities_end_date_time edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=11 alignment="0" tabsequence=32766 border="0" color="0" x="6162" y="8" height="64" width="549" format="[general]" name=rap_activities_material_code edit.limit=12 edit.case=any edit.focusrectaDAT*ngle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=12 alignment="0" tabsequence=32766 border="0" color="0" x="6720" y="8" height="64" width="389" format="[general]" name=rap_activities_method_type edit.limit=2 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" fonDAT*t.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=13 alignment="0" tabsequence=32766 border="0" color="0" x="7118" y="8" height="64" width="549" format="[general]" name=rap_activities_reference_code edit.limit=12 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charseDAT*t="0" background.mode="1" background.color="536870912" ) column(band=detail id=14 alignment="0" tabsequence=32766 border="0" color="0" x="7675" y="8" height="64" width="480" format="[general]" name=rap_activities_reference_type edit.limit=6 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detailDAT* id=15 alignment="1" tabsequence=32766 border="0" color="0" x="8165" y="8" height="64" width="658" format="[general]" name=rap_activities_value_amt edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=16 alignment="0" tabsequence=32766 border="0" color="0" x="8832" y="8" heightDAT*="64" width="338" format="[general]" name=rap_activities_value_type edit.limit=3 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=17 alignment="0" tabsequence=32766 border="0" color="0" x="9179" y="8" height="64" width="489" format="[general]" name=rap_activities_value_unit_code edit.lDAT*imit=8 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=18 alignment="1" tabsequence=32766 border="0" color="0" x="9678" y="8" height="64" width="270" format="[general]" name=rid edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS SaDAT*ns Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=19 alignment="0" tabsequence=32766 border="0" color="0" x="9957" y="8" height="64" width="1426" format="[general]" name=rap_geographic_locations_name edit.limit=50 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="DAT*2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=20 alignment="0" tabsequence=32766 border="0" color="0" x="11392" y="8" height="64" width="329" format="[general]" name=rap_geographic_locations_type edit.limit=8 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) colDAT*Brelease 8; datawindow(units=0 timer_interval=0 color=16777215 processing=1 HTMLDW=no print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.prompt=no print.buttons=no print.preview.buttons=no grid.lines=0 ) header(height=156 color="536870912" ) summary(height=0 color="536870912" ) footer(height=0 color="536870912" ) detail(height=92 color="536870912" ) table(DAT*PDW0800pdw+ut````/ F$*nn``DAT* @D` DAT* rap_activities_rid_t< $0%  MS Sans SerifMS Sans Serif$ 2$-8$700$1$ 536870912$DAT* 9$8$452$<274%RidRid`)! "$&$rap_activities_creation_date_time_t$#@%293$%E581%'(Creation Date TimeCreation Date Time`2 *DAT* +-/rap_activities_metric_code_t$,r882$.x%549%01 Metric Code Metric Code`;)3 468#rap_activities_metric_level_type_t$5;1440$7w 544%9:MeDAT*tric Level TypeMetric Level Type`D2< =?A!rap_activities_start_date_time_t$>1993$@h475%BCStart Date TimeStart Date Time`M;E FHJrap_activities_user_id_t$G 2478$DAT*I0219%KLWhoWho`VDN OQSrap_activities_comment_text_t$PP 2706$R2194%TU Comments Comments`_MW XZ\#rap_activities_confidential_flag_t$YDAT*2.4910$[Oi361%]^ Confidential Confidential`hV` acerap_activities_data_code_t$b5280$dE;315%fg Data Code Data Code`q_i jlnrap_DAT*activities_end_date_time_t$k5605$mx%549%opEnd Date TimeEnd Date Time`zhr suwrap_activities_material_code_t$tD6162$vx%549%xyMaterial CodeMaterial Code`q{DAT* |~rap_activities_method_type_t$}@6720$U389% Method Type Method Type`z  rap_activities_reference_code_t$7118$x%549%Reference CodeReference DAT*Code`  rap_activities_reference_type_t$7675$i480%Reference TypeReference Type` rap_activities_value_amt_t$8165$658DAT*% Value Amount Value Amount` rap_activities_value_type_t$"8832$JR338% Value Type Value Type` !rap_activities_value_unit_code_t$#DAT*9179$k489%Value Unit CodeValue Unit Code` rap_geographic_locations_rid_t$E%9678$;270`  rap_geographic_locations_name_t$&DAT*9957$81426%NameName`  rap_geographic_locations_type_t$ ,11392$HI329%TypeType` rap_activities_value_t$DAT* -11730$x%549%ValueValue@@Pm(rap_activities_rid$ 9$@64$DAT*<274& [general] [general]("rap_activities_creation_date_time$@%293$E581&[shortdate] [time][shortdate] [time]DAT*( rap_activities_metric_code$r882$x%549& [general] [general](!rap_activities_metric_level_type$;1440$w DAT*544(rap_activities_start_date_time$1993$h475(rap_activities_user_id$ 2478$DAT*0219   (rap_activities_comment_text$ P 2706$ 2194(!rap_activities_confidential_flag$2.DAT*4910$Oi361 (rap_activities_data_code$5280$E;315$! (#rap_activities_end_date_time$ DAT*5605$"x%549+%&( (* rap_activities_material_code$'D6162$)x%5492$,-/ (1rap_activities_methDAT*od_type$.@6720$0U3899+346 (8 rap_activities_reference_code$57118$7x%549@2:;=(?DAT*rap_activities_reference_type$<7675$>i480J9ABDF(Irap_activities_value_amt$C8165$E658&GH [general] [general]Q@KLDAT*N(Prap_activities_value_type$M"8832$OJR338XJRSU(Wrap_activities_value_unit_code$T#9179$Vk489_QYDAT*Z\(^rid$[E%9678$];270fX`ac(e2rap_geographic_locations_name$b&9957$d81426m_gDAT*hj(lrap_geographic_locations_type$i ,11392$kHI329fnoq(s rap_activities_value$p -11730$rx%549@DAT*vx|z{ }~ DAT*    DAT*$ + 2 9@ JQ XDAT* _3f m  w :state_FIPS y state_FIPSrap_activities_ridrap_activities.rid"rap_activities_creation_date_time"rap_activities.creation_date_timerap_activities_metric_coderap_activities.metric_codeDAT*!rap_activities_metric_level_type!rap_activities.metric_level_typerap_activities_start_date_timerap_activities.start_date_timerap_activities_user_idrap_activities.user_idrap_activities_comment_textrap_activities.comment_text!rap_activities_confidential_flag!rap_activities.confidential_flagrap_activities_data_coderap_activities.dDAT*ata_coderap_activities_end_date_timerap_activities.end_date_timerap_activities_material_coderap_activities.material_code$rap_activities_method_typerap_activities.method_type+rap_activities_reference_coderap_activities.reference_code2rap_activities_reference_typerap_activities.reference_type9rap_activities_value_amtrap_activiDAT*ties.value_amt@rap_activities_value_typerap_activities.value_typeJrap_activities_value_unit_coderap_activities.value_unit_codeQridrap_geographic_locations.ridXrap_geographic_locations_namerap_geographic_locations.name_rap_geographic_locations_typerap_geographic_locations.typefrap_activities_valuerap_activities.valueDAT*mPBSELECT( VERSION(400) TABLE(NAME="rap_activities" ) TABLE(NAME="rap_geographic_locations" ) COLUMN(NAME="rap_activities.rid") COLUMN(NAME="rap_activities.creation_date_time") COLUMN(NAME="rap_activities.metric_code") COLUMN(NAME="rap_activities.metric_level_type") COLUMN(NAME="rap_activities.start_date_time") COLUMN(NAME="rap_activities.user_id") COLUMN(NAME="rap_activities.comment_text") COLUMN(NAME="rap_activities.confidential_flag") COLUMN(NAME="rap_activities.data_code") COLUMNDAT*(NAME="rap_activities.end_date_time") COLUMN(NAME="rap_activities.material_code") COLUMN(NAME="rap_activities.method_type") COLUMN(NAME="rap_activities.reference_code") COLUMN(NAME="rap_activities.reference_type") COLUMN(NAME="rap_activities.value_amt") COLUMN(NAME="rap_activities.value_type") COLUMN(NAME="rap_activities.value_unit_code") COLUMN(NAME="rap_geographic_locations.rid") COLUMN(NAME="rap_geographic_locations.name") COLUMN(NAME="rap_geographic_locations.type") COLUMN(NAME="rap_activitiesDAT* .value") JOIN (LEFT="rap_activities.ref_rid" OP ="="RIGHT="rap_geographic_locations.rid" )WHERE( EXP1 ="( ( rap_activities.metric_level_type" OP ="=" EXP2 ="'GEO' )" LOGIC ="and" ) WHERE( EXP1 ="( rap_geographic_locations.type" OP ="=" EXP2 ="'STATE' )" LOGIC ="and" ) WHERE( EXP1 ="( rap_activities.metric_code" OP ="=" EXP2 ="'FIPS CODE' )" LOGIC ="and" ) WHERE( EXP1 ="(rap_activities.value" OP ="=" EXP2 ="))" ) ) ORDER(NAME="rap_activities.value" ASDAT*release 6; datawindow(units=0 timer_interval=0 color=16777215 processing=1 print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.prompt=no print.buttons=no print.preview.buttons=no grid.lines=0 ) header(height=68 color="536870912" ) summary(height=0 color="536870912" ) footer(height=0 color="536870912" ) detail(height=80 color="536870912" ) table(column=(typDAT*e=decimal(0) updatewhereclause=yes name=rap_activities_rid dbname="rap_activities.rid" ) column=(type=datetime updatewhereclause=yes name=rap_activities_creation_date_time dbname="rap_activities.creation_date_time" ) column=(type=char(12) updatewhereclause=yes name=rap_activities_metric_code dbname="rap_activities.metric_code" ) column=(type=char(3) updatewhereclause=yes name=rap_activities_metric_level_type dbname="rap_activities.metric_level_type" ) column=(type=datetime updatewhereclausDAT*e=yes name=rap_activities_start_date_time dbname="rap_activities.start_date_time" ) column=(type=char(4) updatewhereclause=yes name=rap_activities_user_id dbname="rap_activities.user_id" ) column=(type=char(255) updatewhereclause=yes name=rap_activities_comment_text dbname="rap_activities.comment_text" ) column=(type=char(1) updatewhereclause=yes name=rap_activities_confidential_flag dbname="rap_activities.confidential_flag" ) column=(type=char(4) updatewhereclause=yes name=rap_activities_DAT*data_code dbname="rap_activities.data_code" ) column=(type=datetime updatewhereclause=yes name=rap_activities_end_date_time dbname="rap_activities.end_date_time" ) column=(type=char(12) updatewhereclause=yes name=rap_activities_material_code dbname="rap_activities.material_code" ) column=(type=char(2) updatewhereclause=yes name=rap_activities_method_type dbname="rap_activities.method_type" ) column=(type=char(12) updatewhereclause=yes name=rap_activities_reference_code dbname="rap_activitiDAT*es.reference_code" ) column=(type=char(6) updatewhereclause=yes name=rap_activities_reference_type dbname="rap_activities.reference_type" ) column=(type=real updatewhereclause=yes name=rap_activities_value_amt dbname="rap_activities.value_amt" ) column=(type=char(3) updatewhereclause=yes name=rap_activities_value_type dbname="rap_activities.value_type" ) column=(type=char(8) updatewhereclause=yes name=rap_activities_value_unit_code dbname="rap_activities.value_unit_code" ) column=(type=dDAT*ecimal(0) updatewhereclause=yes name=rid dbname="rap_geographic_locations.rid" ) column=(type=char(50) updatewhereclause=yes name=rap_geographic_locations_name dbname="rap_geographic_locations.name" ) column=(type=char(8) updatewhereclause=yes name=rap_geographic_locations_type dbname="rap_geographic_locations.type" ) column=(type=char(12) updatewhereclause=yes name=rap_activities_value dbname="rap_activities.value" ) retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"rap_activities~" ) TABLE(DAT*NAME=~"rap_geographic_locations~" ) COLUMN(NAME=~"rap_activities.rid~") COLUMN(NAME=~"rap_activities.creation_date_time~") COLUMN(NAME=~"rap_activities.metric_code~") COLUMN(NAME=~"rap_activities.metric_level_type~") COLUMN(NAME=~"rap_activities.start_date_time~") COLUMN(NAME=~"rap_activities.user_id~") COLUMN(NAME=~"rap_activities.comment_text~") COLUMN(NAME=~"rap_activities.confidential_flag~") COLUMN(NAME=~"rap_activities.data_code~") COLUMN(NAME=~"rap_activities.end_date_time~") COLUMN(NAME=~"DAT*rap_activities.material_code~") COLUMN(NAME=~"rap_activities.method_type~") COLUMN(NAME=~"rap_activities.reference_code~") COLUMN(NAME=~"rap_activities.reference_type~") COLUMN(NAME=~"rap_activities.value_amt~") COLUMN(NAME=~"rap_activities.value_type~") COLUMN(NAME=~"rap_activities.value_unit_code~") COLUMN(NAME=~"rap_geographic_locations.rid~") COLUMN(NAME=~"rap_geographic_locations.name~") COLUMN(NAME=~"rap_geographic_locations.type~") COLUMN(NAME=~"rap_activities.value~") JOIN (LEFT=~"rap_aDAT*ctivities.ref_rid~" OP =~"=~"RIGHT=~"rap_geographic_locations.rid~" )WHERE( EXP1 =~"( ( rap_activities.metric_level_type~" OP =~"=~" EXP2 =~"'GEO' )~" LOGIC =~"and~" ) WHERE( EXP1 =~"( rap_geographic_locations.type~" OP =~"=~" EXP2 =~"'STATE' )~" LOGIC =~"and~" ) WHERE( EXP1 =~"( rap_activities.metric_code~" OP =~"=~" EXP2 =~"'FIPS CODE' )~" LOGIC =~"and~" ) WHERE( EXP1 =~"(rap_activities.value~" OP =~"=~" EXP2 =~":state_FIPS))~" ) ) ORDER(NAME=~"rap_actDAT*ivities.value~" ASC=yes ) ARG(NAME = ~"state_FIPS~" TYPE = string) " arguments=(("state_FIPS", string)) ) text(band=header alignment="2" text="Rid"border="0" color="0" x="9" y="8" height="52" width="274" name=rap_activities_rid_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Creation Date Time"border="0" color="0" x="293" y="8" height="52" widtDAT*h="581" name=rap_activities_creation_date_time_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Metric Code"border="0" color="0" x="882" y="8" height="52" width="549" name=rap_activities_metric_code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.coloDAT* r="536870912" ) text(band=header alignment="2" text="Metric Level Type"border="0" color="0" x="1440" y="8" height="52" width="544" name=rap_activities_metric_level_type_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Start Date Time"border="0" color="0" x="1993" y="8" height="52" width="475" name=rap_activities_start_date_time_t font.face="MSDAT*  Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Who"border="0" color="0" x="2478" y="8" height="52" width="219" name=rap_activities_user_id_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Comments"border="0" cDAT*olor="0" x="2706" y="8" height="52" width="2194" name=rap_activities_comment_text_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Confidential"border="0" color="0" x="4910" y="8" height="52" width="361" name=rap_activities_confidential_flag_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charDAT*set="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Data Code"border="0" color="0" x="5280" y="8" height="52" width="315" name=rap_activities_data_code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="End Date Time"border="0" color="0" x="5605" y="8" height="52" width="549" name=rap_activities_end_datDAT*e_time_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Material Code"border="0" color="0" x="6162" y="8" height="52" width="549" name=rap_activities_material_code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alDAT*ignment="2" text="Method Type"border="0" color="0" x="6720" y="8" height="52" width="389" name=rap_activities_method_type_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Reference Code"border="0" color="0" x="7118" y="8" height="52" width="549" name=rap_activities_reference_code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" fDAT*ont.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Reference Type"border="0" color="0" x="7675" y="8" height="52" width="480" name=rap_activities_reference_type_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Value Amount"border="0" color="0" x="8165" y="8" heigDAT*ht="52" width="658" name=rap_activities_value_amt_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Value Type"border="0" color="0" x="8832" y="8" height="52" width="338" name=rap_activities_value_type_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.coDAT*lor="536870912" ) text(band=header alignment="2" text="Value Unit Code"border="0" color="0" x="9179" y="8" height="52" width="489" name=rap_activities_value_unit_code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Rid"border="0" color="0" x="9678" y="8" height="52" width="274" name=rap_geographic_locations_rid_t font.face="MS Sans Serif" fonDAT*t.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Name"border="0" color="0" x="9961" y="8" height="52" width="1426" name=rap_geographic_locations_name_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Type"border="0" color="0" x=DAT*"11397" y="8" height="52" width="329" name=rap_geographic_locations_type_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Value"border="0" color="0" x="11735" y="8" height="52" width="549" name=rap_activities_value_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1"DAT*  background.color="536870912" ) column(band=detail id=1 alignment="1" tabsequence=32766 border="0" color="0" x="9" y="8" height="64" width="274" format="[general]" name=rap_activities_rid edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=2 alignment="0" tabsequence=32766 boDAT*"rder="0" color="0" x="293" y="8" height="64" width="581" format="[shortdate] [time]" name=rap_activities_creation_date_time edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=3 alignment="0" tabsequence=32766 border="0" color="0" x="882" y="8" height="64" width="549" format="DAT*$[general]" name=rap_activities_metric_code edit.limit=12 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=4 alignment="0" tabsequence=32766 border="0" color="0" x="1440" y="8" height="64" width="544" format="[general]" name=rap_activities_metric_level_type edit.limit=3 edit.case=any edDAT*&it.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=5 alignment="0" tabsequence=32766 border="0" color="0" x="1993" y="8" height="64" width="475" format="[shortdate] [time]" name=rap_activities_start_date_time edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes fontDAT*(.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=6 alignment="0" tabsequence=32766 border="0" color="0" x="2478" y="8" height="64" width="219" format="[general]" name=rap_activities_user_id edit.limit=4 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitchDAT**="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=7 alignment="0" tabsequence=32766 border="0" color="0" x="2706" y="8" height="64" width="2194" format="[general]" name=rap_activities_comment_text edit.limit=255 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) coDAT*,lumn(band=detail id=8 alignment="0" tabsequence=32766 border="0" color="0" x="4910" y="8" height="64" width="361" format="[general]" name=rap_activities_confidential_flag edit.limit=1 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=9 alignment="0" tabsequence=32766 border="0" color="0"DAT*. x="5280" y="8" height="64" width="315" format="[general]" name=rap_activities_data_code edit.limit=4 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=10 alignment="0" tabsequence=32766 border="0" color="0" x="5605" y="8" height="64" width="549" format="[shortdate] [time]" name=rap_actDAT*0ivities_end_date_time edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=11 alignment="0" tabsequence=32766 border="0" color="0" x="6162" y="8" height="64" width="549" format="[general]" name=rap_activities_material_code edit.limit=12 edit.case=any edit.focusrectangle=no editDAT*2.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=12 alignment="0" tabsequence=32766 border="0" color="0" x="6720" y="8" height="64" width="389" format="[general]" name=rap_activities_method_type edit.limit=2 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8DAT*4" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=13 alignment="0" tabsequence=32766 border="0" color="0" x="7118" y="8" height="64" width="549" format="[general]" name=rap_activities_reference_code edit.limit=12 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" backgrDAT*6ound.mode="1" background.color="536870912" ) column(band=detail id=14 alignment="0" tabsequence=32766 border="0" color="0" x="7675" y="8" height="64" width="480" format="[general]" name=rap_activities_reference_type edit.limit=6 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=15 alignDAT*8ment="1" tabsequence=32766 border="0" color="0" x="8165" y="8" height="64" width="658" format="[general]" name=rap_activities_value_amt edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=16 alignment="0" tabsequence=32766 border="0" color="0" x="8832" y="8" height="64" width=DAT*:"338" format="[general]" name=rap_activities_value_type edit.limit=3 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=17 alignment="0" tabsequence=32766 border="0" color="0" x="9179" y="8" height="64" width="489" format="[general]" name=rap_activities_value_unit_code edit.limit=8 edit.DAT*<case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=18 alignment="1" tabsequence=32766 border="0" color="0" x="9682" y="8" height="64" width="270" format="[general]" name=rid edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" foDAT*>nt.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=19 alignment="0" tabsequence=32766 border="0" color="0" x="9961" y="8" height="64" width="1426" format="[general]" name=rap_geographic_locations_name edit.limit=50 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charDAT*@set="0" background.mode="1" background.color="536870912" ) column(band=detail id=20 alignment="0" tabsequence=32766 border="0" color="0" x="11397" y="8" height="64" width="329" format="[general]" name=rap_geographic_locations_type edit.limit=8 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detDAT*ail id=21 alignment="0" tabsequence=32766 border="0" color="0" x="11735" y="8" height="64" width="549" format="[general]" name=rap_activities_value edit.limit=12 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) htmltable(border="1" cellpadding="0" cellspacing="0" generatecss="no" nowrap="yes") DAT*column=(type=char(2) update=yes updatewhereclause=yes key=yes name=state_fips dbname="rap_tmp_sources.state_fips" ) column=(type=char(3) update=yes updatewhereclause=yes key=yes name=county_fips dbname="rap_tmp_sources.county_fips" ) column=(type=char(15) update=yes updatewhereclause=yes name=site_id dbname="rap_tmp_sources.site_id" ) column=(type=char(10) update=yes updatewhereclause=yes name=scc dbname="rap_tmp_sources.scc" ) column=(type=char(4) update=yes updatewhereclause=yes name=sccDAT*FThis DataWindow stores, internaly, the names of the DataWindows use for importing and exporting NEI NIF 2.0 and NIF 3.0 data.release 8; datawindow(units=0 timer_interval=0 color=16777215 processing=1 HTMLDW=no print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.prompt=no print.buttons=no print.preview.buttons=no grid.lines=0 ) header(height=80 color="536870912DAT*H" ) summary(height=0 color="536870912" ) footer(height=0 color="536870912" ) detail(height=92 color="536870912" ) table(column=(type=char(2) updatewhereclause=no name=sourcetype dbname="sourcetype" ) column=(type=char(2) updatewhereclause=no name=recordtype dbname="recordtype" ) column=(type=char(50) updatewhereclause=no name=datasource dbname="datasource" ) column=(type=number updatewhereclause=no name=order dbname="order" ) column=(type=char(1) updatewhereclause=no name=fileselected DAT*Jdbname="fileselected" ) column=(type=char(2) updatewhereclause=no name=state dbname="state" ) column=(type=char(2) updatewhereclause=no name=year dbname="year" ) column=(type=char(1) updatewhereclause=no name=required dbname="required" ) column=(type=char(4) updatewhereclause=no name=niftype dbname="niftype" ) ) data("pt","tr","d_nei_n3_format_transmittal", 8,null null null "y","nif3","pt","tr","d_nei_format_transmittal", 8,null null null "y","nif2","pt","si","d_nei_n3_format_site", 1,nDAT*Lull null null "y","nif3","pt","si","d_nei_format_site", 1,null null null "y","nif2","pt","eu","d_nei_n3_format_emission_unit", 2,null null null "y","nif3","pt","eu","d_nei_format_emission_unit", 2,null null null "y","nif2","pt","ep","d_nei_n3_format_point_emission_process", 4,null null null "y","nif3","pt","ep","d_nei_format_point_emission_process", 4,null null null "y","nif2","pt","pe","d_nei_n3_format_point_emission_period", 6,null null null "y","nif3","pt","pe","d_nei_format_point_emission_periDAT*Nod", 6,null null null "y","nif2","pt","er","d_nei_n3_format_emission_release_pt", 3,null null null "n","nif3","pt","er","d_nei_format_emission_release_pt", 3,null null null "n","nif2","pt","ce","d_nei_n3_format_point_control_equipment", 5,null null null "n","nif3","pt","ce","d_nei_format_point_control_equipment", 5,null null null "n","nif2","pt","em","d_nei_n3_format_point_emission", 7,null null null "y","nif3","pt","em","d_nei_format_point_emission", 7,null null null "y","nif2","ar","tr","d_nei_nDAT*P3_format_transmittal", 5,null null null "y","nif3","ar","tr","d_nei_format_transmittal", 5,null null null "y","nif2","ar","ep","d_nei_n3_format_area_emission_process", 1,null null null "y","nif3","ar","ep","d_nei_format_area_emission_process", 1,null null null "y","nif2","ar","pe","d_nei_n3_format_area_emission_period", 3,null null null "y","nif3","ar","pe","d_nei_format_area_emission_period", 3,null null null "y","nif2","ar","ce","d_nei_n3_format_area_control_equipment", 2,null null null "n","nifDAT*R3","ar","ce","d_nei_format_area_control_equipment", 2,null null null "n","nif2","ar","em","d_nei_n3_format_area_emission", 4,null null null "y","nif3","ar","em","d_nei_format_area_emission", 4,null null null "y","nif2","nr","tr","d_nei_n3_format_transmittal", 5,null null null "y","nif3","nr","tr","d_nei_format_transmittal", 5,null null null "y","nif2","nr","ep","d_nei_n3_format_area_emission_process", 1,null null null "y","nif3","nr","ep","d_nei_format_area_emission_process", 1,null null null "y",DAT*T"nif2","nr","pe","d_nei_n3_format_area_emission_period", 3,null null null "y","nif3","nr","pe","d_nei_format_area_emission_period", 3,null null null "y","nif2","nr","ce","d_nei_n3_format_area_control_equipment", 2,null null null "n","nif3","nr","ce","d_nei_format_area_control_equipment", 2,null null null "n","nif2","nr","em","d_nei_n3_format_area_emission", 4,null null null "y","nif3","nr","em","d_nei_format_area_emission", 4,null null null "y","nif2","or","tr","d_nei_n3_format_transmittal", 3,nulDAT*Vl null null "y","nif3","or","tr","d_nei_format_transmittal", 3,null null null "y","nif2","or","pe","d_nei_n3_format_onroad_emission_period", 1,null null null "y","nif3","or","pe","d_nei_format_onroad_emission_period", 1,null null null "y","nif2","or","em","d_nei_n3_format_onroad_emission", 2,null null null "y","nif3","or","em","d_nei_format_onroad_emission", 2,null null null "y","nif2",) text(band=header alignment="2" text="Sourcetype" border="0" color="0" x="9" y="8" height="64" width="293" htmDAT*Xl.valueishtml="0" name=sourcetype_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Recordtype" border="0" color="0" x="311" y="8" height="64" width="329" html.valueishtml="0" name=recordtype_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.coDAT*Zlor="536870912" ) text(band=header alignment="2" text="Datasource" border="0" color="0" x="649" y="8" height="64" width="1371" html.valueishtml="0" name=datasource_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Order" border="0" color="0" x="2030" y="8" height="64" width="219" html.valueishtml="0" name=order_t visible="1" font.face="AriDAT*\al" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Fileselected" border="0" color="0" x="2258" y="8" height="64" width="297" html.valueishtml="0" name=fileselected_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="StaDAT*^te" border="0" color="0" x="2565" y="8" height="64" width="133" html.valueishtml="0" name=state_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Year" border="0" color="0" x="2706" y="8" height="64" width="206" html.valueishtml="0" name=year_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2"DAT*` font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="0" text="Required" border="0" color="0" x="2921" y="4" height="76" width="151" html.valueishtml="0" name=t_1 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) text(band=header alignment="0" text="NifType" border="0" color="0" x="3081" y="4" height="76" width="151" html.valueishtml="0" DAT*b name=t_2 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) column(band=detail id=1 alignment="0" tabsequence=10 border="0" color="0" x="9" y="8" height="76" width="293" format="[general]" html.valueishtml="0" name=sourcetype visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" fonDAT*2t.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=2 alignment="0" tabsequence=20 border="0" color="0" x="311" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=recordtype visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charsetDAT* ocations_a.type" OP ="=" EXP2 ="'COUNTY' )" LOGIC ="and" ) WHERE( EXP1 ="( rap_activities.metric_code" OP ="=" EXP2 ="'FIPS CODE' )" LOGIC ="and" ) WHERE( EXP1 ="(rap_activities.value" OP ="=" EXP2 =")" LOGIC ="and" ) WHERE( EXP1 ="rap_geographic_locations_b.type" OP ="=" EXP2 ="'STATE'" LOGIC ="and" ) WHERE( EXP1 ="rap_geographic_locations_b.rid" OP ="=" EXP2 ="" ) ) ORDER(NAME="rap_activities.value" ASC=yes ) ARG(NAME = "County_FIPS" TYPE = striDAT*hPDW08002pdw+```` F$2nn``DAT*j"# @Px`"DAT*l  sourcetype_t$1<  $ 0%  ArialArial$2$-10$400$ 536870912$ 9DAT*n$8$@64$@%293% Sourcetype Sourcetype"!0`-# $&(+ recordtype_t$%D7311$'HI329%)* Recordtype Recordtype",0`8".DAT*p /136 datasource_t$0649$2,[1371%45 Datasource Datasource"70`C-9 :<>Aorder_t$;2030$=0219%?@OrdeDAT*rrOrder"B0`N8D EGILfileselected_t$F2258$HA)297%JK Fileselected Fileselected"M0`YCO PRTWstate_t$Q1 2565$SDAT*t133%UVStateState"X0`dNZ []_byear_t$\P 2706$^-206%`aYearYear"c0`xYef ikmoqsvt_1< gDAT*v $h-12$j 16777215$li 2921$n4$pL76$r!151%tu Required Required"w0`dyf izmo|~t_2${ DAT*x3081$}!151%NifTypeNifType"0@@\o ( sourcetype$ 9$@%293DAT*z& [general] [general]"0o( recordtype$D7311$HI329"0o(DAT*| datasource$649$,[1371"0o((order$2030$0219& [general] [general]"0DAT*~o2( fileselected$2258$A)297"0o<(state$1 2565$133"DAT*0oF(year$P 2706$-206"0f ioP required$i 2921$DAT*0$!151"0o Z(niftype$ 3081$!151"0@DAT** *3DAT*PDW0800Dpdw+````* F$,Dnn``DAT*45 @P`"DAT*  state_fips_t$1<  $ 0%  ArialArial$2$-10$400$ 536870912$ 9DAT*$8$@64$<274% State Fips State Fips"!0`-# $&(+county_fips_t$%@%293$'F@320%)* County Fips County Fips",0`8"DAT*. /136 site_id_t$0n622$2`439%45Site IdSite Id"70`C-9 :<>Ascc_t$;.1070$=B.302%?@SccSccDAT*"B0`N8D EGILemission_unit_id_t$F.e1381$H_434%JKEmission Unit IdEmission Unit Id"M0`YCO PRTW process_id_t$Q 1824$SDAT*>283%UV Process Id Process Id"X0`dNZ []_bpollutant_code_t$\E2117$^U389%`aPollutant CodePollutant Code"c0`oYe fhjDAT*mprimary_pct_cntrl_eff_t$g& 2514$iw 544%klPrimary Pct Cntrl EffPrimary Pct Cntrl Eff"n0`zdp qsuxpct_capture_efficiency_t$r 3067$tN590%vwPct Capture EfficiencyPDAT*ct Capture Efficiency"y0`o{ |~total_capture_cntrl_eff_t$}"R3666$E581%Total Capture Cntrl EffTotal Capture Cntrl Eff"0`z primary_device_type_cDAT*d_t$4256${635%Primary Device Type CdPrimary Device Type Cd"0` secondary_device_type_cd_t$0%4901$713%Secondary Device Type CdSecondary Device Type Cd"DAT*0` control_system_desc_t$5623$e1125%Control System DescControl System Desc"0` third_cntrl_device_type_cd_t$eDAT*6757$699%Third Cntrl Device Type CdThird Cntrl Device Type Cd"0` fourth_cntrl_device_type_cd_t$a)7465$741%Fourth Cntrl Device Type CdFourth Cntrl Device Type Cd"DAT*0`  start_date_t$ 8215$HI329% Start Date Start Date"0`  end_date_t$Oi!8553$HI329%DAT* End Date End Date"0` inventory_year_t$"8891$Rw375%Inventory YearInventory Year"0` process_rid_t$DAT*;$9275$HI329% Process Rid Process Rid"0` output_stream_rid_t$7%9614$l494%Output Stream RidOutput Stream Rid"0`DAT* t_1< $-12$ 16777215$'10117$4$L76$ 800%User IdUser Id"0` DAT*   tribal_code_t$ V *10926$ I73% Tribal Code Tribal Code"0@@\ (DAT* state_fips$ 9$<274& [general] [general]"0)!"$('& county_fips$#@%293$%F@320"(02 *DAT*+-(0/site_id$,n622$.`439"10;)346(98 scc$5.1070$7B.302":DAT*0D2<=?(BAemission_unit_id$>.e1381$@_434"C0M;EFH(KJ process_id$G 1824$IDAT*>283"L0VDNOQ(TS pollutant_code$PE2117$RU389"U0bMWXZ\(`_primary_pct_cntrlDAT*_eff$Y& 2514$[w 544&]^ [general] [general]"a0kVcdf\ (ihpct_capture_efficiency$e 3067$gN590"j0tblDAT*mo\ (rqtotal_capture_cntrl_eff$n"R3666$pE581"s0}kuvx ({zprimary_device_type_cd$w4256$y{635DAT*"|0t~ (secondary_device_type_cd$0%4901$713"0} ((control_system_desc$DAT*5623$e1125"0(third_cntrl_device_type_cd$e6757$699"0DAT*(fourth_cntrl_device_type_cd$a)7465$741"0( start_date$ 8215$HI329& [general] [general]"DAT*0( end_date$Oi!8553$HI329"0(inventory_year$"8891$DAT*Rw375"0( process_rid$;$9275$HI329"0(output_stream_rDAT*id$7%9614$l494"0 user_id$'10117$0$ 800"0DAT*  tribal_code$V *10926$I73"0@3DAT*@ )@2 @;@D@MDAT*  @V@ b   @k   @t @} @ )@@DAT*release 8; datawindow(units=0 timer_interval=0 color=16777215 processing=1 HTMLDW=no print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.prompt=no print.buttons=no print.preview.buttons=no grid.lines=0 ) header(height=80 color="536870912" ) summary(height=0 color="536870912" ) footer(height=0 color="536870912" ) detail(height=92 color="536870912" ) table(cDAT*olumn=(type=char(2) update=yes updatewhereclause=yes key=yes name=state_fips dbname="rap_tmp_cntrl_equip_activities.state_fips" ) column=(type=char(3) update=yes updatewhereclause=yes key=yes name=county_fips dbname="rap_tmp_cntrl_equip_activities.county_fips" ) column=(type=char(15) update=yes updatewhereclause=yes name=site_id dbname="rap_tmp_cntrl_equip_activities.site_id" ) column=(type=char(10) update=yes updatewhereclause=yes name=scc dbname="rap_tmp_cntrl_equip_activities.scc" ) colDAT*umn=(type=char(6) update=yes updatewhereclause=yes name=emission_unit_id dbname="rap_tmp_cntrl_equip_activities.emission_unit_id" ) column=(type=char(6) update=yes updatewhereclause=yes name=process_id dbname="rap_tmp_cntrl_equip_activities.process_id" ) column=(type=char(10) update=yes updatewhereclause=yes name=pollutant_code dbname="rap_tmp_cntrl_equip_activities.pollutant_code" ) column=(type=number update=yes updatewhereclause=yes name=primary_pct_cntrl_eff dbname="rap_tmp_cntrl_equip_aDAT*ctivities.primary_pct_cntrl_eff" ) column=(type=number update=yes updatewhereclause=yes name=pct_capture_efficiency dbname="rap_tmp_cntrl_equip_activities.pct_capture_efficiency" ) column=(type=number update=yes updatewhereclause=yes name=total_capture_cntrl_eff dbname="rap_tmp_cntrl_equip_activities.total_capture_cntrl_eff" ) column=(type=char(4) update=yes updatewhereclause=yes name=primary_device_type_cd dbname="rap_tmp_cntrl_equip_activities.primary_device_type_cd" ) column=(type=char(DAT*4) update=yes updatewhereclause=yes name=secondary_device_type_cd dbname="rap_tmp_cntrl_equip_activities.secondary_device_type_cd" ) column=(type=char(40) update=yes updatewhereclause=yes name=control_system_desc dbname="rap_tmp_cntrl_equip_activities.control_system_desc" ) column=(type=char(4) update=yes updatewhereclause=yes name=third_cntrl_device_type_cd dbname="rap_tmp_cntrl_equip_activities.third_cntrl_device_type_cd" ) column=(type=char(4) update=yes updatewhereclause=yes name=fourth_DAT*cntrl_device_type_cd dbname="rap_tmp_cntrl_equip_activities.fourth_cntrl_device_type_cd" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=start_date dbname="rap_tmp_cntrl_equip_activities.start_date" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=end_date dbname="rap_tmp_cntrl_equip_activities.end_date" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=inventory_year dbname="rap_tmp_cntrl_equip_activities.inventory_year" ) column=(type=decimal(DAT*0) update=yes updatewhereclause=yes name=process_rid dbname="rap_tmp_cntrl_equip_activities.process_rid" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=output_stream_rid dbname="rap_tmp_cntrl_equip_activities.output_stream_rid" ) column=(type=char(30) update=yes updatewhereclause=yes key=yes name=user_id dbname="rap_tmp_cntrl_equip_activities.user_id" ) column=(type=char(3) update=yes updatewhereclause=yes name=tribal_code dbname="rap_tmp_cntrl_equip_activities.tribal_code" DAT*) retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"rap_tmp_cntrl_equip_activities~" ) COLUMN(NAME=~"rap_tmp_cntrl_equip_activities.state_fips~") COLUMN(NAME=~"rap_tmp_cntrl_equip_activities.county_fips~") COLUMN(NAME=~"rap_tmp_cntrl_equip_activities.site_id~") COLUMN(NAME=~"rap_tmp_cntrl_equip_activities.scc~") COLUMN(NAME=~"rap_tmp_cntrl_equip_activities.emission_unit_id~") COLUMN(NAME=~"rap_tmp_cntrl_equip_activities.process_id~") COLUMN(NAME=~"rap_tmp_cntrl_equip_activities.pollutant_code~") COLDAT*UMN(NAME=~"rap_tmp_cntrl_equip_activities.primary_pct_cntrl_eff~") COLUMN(NAME=~"rap_tmp_cntrl_equip_activities.pct_capture_efficiency~") COLUMN(NAME=~"rap_tmp_cntrl_equip_activities.total_capture_cntrl_eff~") COLUMN(NAME=~"rap_tmp_cntrl_equip_activities.primary_device_type_cd~") COLUMN(NAME=~"rap_tmp_cntrl_equip_activities.secondary_device_type_cd~") COLUMN(NAME=~"rap_tmp_cntrl_equip_activities.control_system_desc~") COLUMN(NAME=~"rap_tmp_cntrl_equip_activities.third_cntrl_device_type_cd~") COLUMDAT*N(NAME=~"rap_tmp_cntrl_equip_activities.fourth_cntrl_device_type_cd~") COLUMN(NAME=~"rap_tmp_cntrl_equip_activities.start_date~") COLUMN(NAME=~"rap_tmp_cntrl_equip_activities.end_date~") COLUMN(NAME=~"rap_tmp_cntrl_equip_activities.inventory_year~") COLUMN(NAME=~"rap_tmp_cntrl_equip_activities.process_rid~") COLUMN(NAME=~"rap_tmp_cntrl_equip_activities.output_stream_rid~") COLUMN(NAME=~"rap_tmp_cntrl_equip_activities.user_id~") COLUMN(NAME=~"rap_tmp_cntrl_equip_activities.tribal_code~")WHERE( EDAT*XP1 =~"rap_tmp_cntrl_equip_activities.state_fips~" OP =~"=~" EXP2 =~":as_statefips~" LOGIC =~"and~" ) WHERE( EXP1 =~"rap_tmp_cntrl_equip_activities.county_fips~" OP =~"=~" EXP2 =~":as_countyfips~" LOGIC =~"and~" ) WHERE( EXP1 =~"rap_tmp_cntrl_equip_activities.user_id~" OP =~"=~" EXP2 =~":as_userid~" ) ) ORDER(NAME=~"rap_tmp_cntrl_equip_activities.state_fips~" ASC=yes ) ORDER(NAME=~"rap_tmp_cntrl_equip_activities.county_fips~" ASC=yes ) ARG(NAME = ~"as_statefips~" TYPE =DAT* string) ARG(NAME = ~"as_countyfips~" TYPE = string) ARG(NAME = ~"as_userid~" TYPE = string) " update="rap_tmp_cntrl_equip_activities" updatewhere=1 updatekeyinplace=yes arguments=(("as_statefips", string),("as_countyfips", string),("as_userid", string)) ) text(band=header alignment="2" text="State Fips" border="0" color="0" x="9" y="8" height="64" width="274" html.valueishtml="0" name=state_fips_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="DAT*2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="County Fips" border="0" color="0" x="293" y="8" height="64" width="320" html.valueishtml="0" name=county_fips_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Site Id" border="0" color="0" x="622" y="8" height="64" width="439" html.vaDAT*lueishtml="0" name=site_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Scc" border="0" color="0" x="1070" y="8" height="64" width="302" html.valueishtml="0" name=scc_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) tDAT*ext(band=header alignment="2" text="Emission Unit Id" border="0" color="0" x="1381" y="8" height="64" width="434" html.valueishtml="0" name=emission_unit_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Process Id" border="0" color="0" x="1824" y="8" height="64" width="283" html.valueishtml="0" name=process_id_t visible="1" font.face="ADAT*rial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Pollutant Code" border="0" color="0" x="2117" y="8" height="64" width="389" html.valueishtml="0" name=pollutant_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" texDAT*t="Primary Pct Cntrl Eff" border="0" color="0" x="2514" y="8" height="64" width="544" html.valueishtml="0" name=primary_pct_cntrl_eff_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Pct Capture Efficiency" border="0" color="0" x="3067" y="8" height="64" width="590" html.valueishtml="0" name=pct_capture_efficiency_t visible="1" font.face="DAT*Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Total Capture Cntrl Eff" border="0" color="0" x="3666" y="8" height="64" width="581" html.valueishtml="0" name=total_capture_cntrl_eff_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=headeDAT*r alignment="2" text="Primary Device Type Cd" border="0" color="0" x="4256" y="8" height="64" width="635" html.valueishtml="0" name=primary_device_type_cd_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Secondary Device Type Cd" border="0" color="0" x="4901" y="8" height="64" width="713" html.valueishtml="0" name=secondary_device_type_cd_tDAT* visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Control System Desc" border="0" color="0" x="5623" y="8" height="64" width="1125" html.valueishtml="0" name=control_system_desc_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" DAT*) text(band=header alignment="2" text="Third Cntrl Device Type Cd" border="0" color="0" x="6757" y="8" height="64" width="699" html.valueishtml="0" name=third_cntrl_device_type_cd_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Fourth Cntrl Device Type Cd" border="0" color="0" x="7465" y="8" height="64" width="741" html.valueishtml="0" naDAT*me=fourth_cntrl_device_type_cd_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Start Date" border="0" color="0" x="8215" y="8" height="64" width="329" html.valueishtml="0" name=start_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.colorDAT*="536870912" ) text(band=header alignment="2" text="End Date" border="0" color="0" x="8553" y="8" height="64" width="329" html.valueishtml="0" name=end_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Inventory Year" border="0" color="0" x="8891" y="8" height="64" width="375" html.valueishtml="0" name=inventory_year_t visible="1" fonDAT*t.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Process Rid" border="0" color="0" x="9275" y="8" height="64" width="329" html.valueishtml="0" name=process_rid_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" DAT*text="Output Stream Rid" border="0" color="0" x="9614" y="8" height="64" width="494" html.valueishtml="0" name=output_stream_rid_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="0" text="User Id" border="0" color="0" x="10117" y="4" height="76" width="800" html.valueishtml="0" name=t_1 visible="1" font.face="Arial" font.height="-12" font.weight="40DAT*0" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) text(band=header alignment="0" text="Tribal Code" border="0" color="0" x="10926" y="4" height="76" width="73" html.valueishtml="0" name=tribal_code_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) column(band=detail id=1 alignment="0" tabsequence=32766 border="0" color="0" x="9DAT*" y="8" height="76" width="274" format="[general]" html.valueishtml="0" name=state_fips visible="1" edit.limit=2 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=2 alignment="0" tabsequence=32766 border="0" color="0" x="293" y="8" height="76" width="320" format="[general]" html.DAT*valueishtml="0" name=county_fips visible="1" edit.limit=3 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=3 alignment="0" tabsequence=32766 border="0" color="0" x="622" y="8" height="76" width="439" format="[general]" html.valueishtml="0" name=site_id visible="1" edit.limit=15DAT* edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=4 alignment="0" tabsequence=32766 border="0" color="0" x="1070" y="8" height="76" width="302" format="[general]" html.valueishtml="0" name=scc visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes ediDAT*t.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=5 alignment="0" tabsequence=32766 border="0" color="0" x="1381" y="8" height="76" width="434" format="[general]" html.valueishtml="0" name=emission_unit_id visible="1" edit.limit=6 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="AriaDAT*l" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=6 alignment="0" tabsequence=32766 border="0" color="0" x="1824" y="8" height="76" width="283" format="[general]" html.valueishtml="0" name=process_id visible="1" edit.limit=6 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2"DAT* font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=7 alignment="0" tabsequence=32766 border="0" color="0" x="2117" y="8" height="76" width="389" format="[general]" html.valueishtml="0" name=pollutant_code visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="DAT*1" background.color="536870912" ) column(band=detail id=8 alignment="1" tabsequence=32766 border="0" color="0" x="2514" y="8" height="76" width="544" format="[general]" html.valueishtml="0" name=primary_pct_cntrl_eff visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(baDAT*nd=detail id=9 alignment="1" tabsequence=32766 border="0" color="0" x="3067" y="8" height="76" width="590" format="[general]" html.valueishtml="0" name=pct_capture_efficiency visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=10 alignment="1" tabsequence=3DAT* 2766 border="0" color="0" x="3666" y="8" height="76" width="581" format="[general]" html.valueishtml="0" name=total_capture_cntrl_eff visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=11 alignment="0" tabsequence=32766 border="0" color="0" x="4256" y="8" DAT* height="76" width="635" format="[general]" html.valueishtml="0" name=primary_device_type_cd visible="1" edit.limit=4 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=12 alignment="0" tabsequence=32766 border="0" color="0" x="4901" y="8" height="76" width="713" format="[general]"DAT* html.valueishtml="0" name=secondary_device_type_cd visible="1" edit.limit=4 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=13 alignment="0" tabsequence=32766 border="0" color="0" x="5623" y="8" height="76" width="1125" format="[general]" html.valueishtml="0" name=control_sysDAT*tem_desc visible="1" edit.limit=40 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=14 alignment="0" tabsequence=32766 border="0" color="0" x="6757" y="8" height="76" width="699" format="[general]" html.valueishtml="0" name=third_cntrl_device_type_cd visible="1" edit.limit=4 ediDAT*t.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=15 alignment="0" tabsequence=32766 border="0" color="0" x="7465" y="8" height="76" width="741" format="[general]" html.valueishtml="0" name=fourth_cntrl_device_type_cd visible="1" edit.limit=4 edit.case=any edit.focusrectangle=no ediDAT*t.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=16 alignment="1" tabsequence=32766 border="0" color="0" x="8215" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=start_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 DAT*font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=17 alignment="1" tabsequence=32766 border="0" color="0" x="8553" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=end_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" fDAT*Z ont.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=18 alignment="1" tabsequence=32766 border="0" color="0" x="8891" y="8" height="76" width="375" format="[general]" html.valueishtml="0" name=inventory_year visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" bacDAT*PDW0800rpdw+() ````) F$0rnn``DAT*bc @P`"DAT*  state_fips_t$1<  $ 0%  ArialArial$2$-10$400$ 536870912$ 9DAT* $8$@64$<274% State Fips State Fips"!0`-# $&(+county_fips_t$%@%293$'F@320%)* County Fips County Fips",0`8"DAT*". /136 site_id_t$0n622$2`439%45Site IdSite Id"70`C-9 :<>Ascc_t$;.1070$=B.302%?@SccSccDAT*$"B0`N8D EGILemission_unit_id_t$F.e1381$H_434%JKEmission Unit IdEmission Unit Id"M0`YCO PRTW process_id_t$Q 1824$SDAT*&>283%UV Process Id Process Id"X0`dNZ []_bpollutant_code_t$\E2117$^U389%`aPollutant CodePollutant Code"c0`oYe fhjDAT*(memission_rel_point_id_t$g& 2514$i};571%klEmission Rel Point IdEmission Rel Point Id"n0`zdp qsux start_date_t$r 3095$tHI329%vw Start Date Start Date"yDAT**0`o{ |~ end_date_t$}i 3433$HI329% End Date End Date"0`z  start_time_t$93771$HI329%DAT*, Start Time Start Time"0`  end_time_t$4110$HI329% End Time End Time"0` emission_num_val_t$DAT*.`4448$l494%Emission Num ValEmission Num Val"0` emission_unit_numerator_t$;W4951$663%Emission Unit NumeratorEmission Unit Numerator"0`DAT*0 emission_type_t$5623$V393%Emission TypeEmission Type"0` emission_data_level_t$&6025$v539%DAT*2Emission Data LevelEmission Data Level"0` rule_effectiveness_t$6574$j485%Rule EffectivenessRule Effectiveness"0` DAT*4rule_penetration_t$ 7067$`439%Rule PenetrationRule Penetration"0` inventory_year_t$l[7515$Rw375%Inventory YearInventory Year"0`DAT*6 output_stream_rid_t$7899$l494%Output Stream RidOutput Stream Rid"0` t_1< $DAT*8-12$ 16777215$. 8402$4$L76$ 800%User IdUser Id"0`    t_2$ #9211$ 1152%DAT*:Mass Flow1 Stream RidMass Flow1 Stream Rid"0` hap_emissions_perform_level_t$(10373$ .46%Hap Emissions Perform LevelHap Emissions Perform Level"0` DAT*<!#&tribal_code_t$ (10427$"I73%$% Tribal Code Tribal Code"'0@@\*6+),.0(43 staDAT*>te_fips$- 9$/<274&12 [general] [general]"50?*7)8:0(=< county_fips$9@%293$;F@320">0H6@)DAT*@AC0(FEsite_id$Bn622$D`439"G0Q?I)JL0(ON scc$K.1070$MB.302"P0ZDAT*BHR)SU0(XWemission_unit_id$T.e1381$V_434"Y0cQ[)\^0(a` process_id$] 1824$_>DAT*D283"b0lZd)eg0(ji pollutant_code$fE2117$hU389"k0ucm)np0(sremission_rel_point_id$oDAT*F& 2514$q};571"t0lv)wy{ (~ start_date$x 3095$zHI329&|} [general] [general]"0u)DAT*H{ ( end_date$i 3433$HI329"0){ ( start_time$93771$HI329"0DAT*J){ ( end_time$4110$HI329"0) (emission_num_val$`4448$l494&DAT*L [general] [general]"0)0( emission_unit_numerator$;W4951$663"0)0(DAT*Nemission_type$5623$V393"0)0( emission_data_level$&6025$v539"0)DAT*P(rule_effectiveness$6574$j485"0)(rule_penetration$ 7067$`439"0DAT*R){(inventory_year$l[7515$Rw375"0){(output_stream_rid$7899$lDAT*T494"0)0 user_id$. 8402$0$ 800"0){ DAT*Vmass_flow1_stream_rid$#9211$1152"0)0 hap_emissions_perform_level$(10373$ .46"0)DAT* 0   tribal_code$(10427$ I73" 0@DaDAT*Zrelease 8; datawindow(units=0 timer_interval=0 color=16777215 processing=1 HTMLDW=no print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.prompt=no print.buttons=no print.preview.buttons=no grid.lines=0 ) header(height=80 color="536870912" ) summary(height=0 color="536870912" ) footer(height=0 color="536870912" ) detail(height=92 color="536870912" ) table(cDAT*\olumn=(type=char(2) update=yes updatewhereclause=yes key=yes name=state_fips dbname="rap_tmp_emis_activities.state_fips" ) column=(type=char(3) update=yes updatewhereclause=yes key=yes name=county_fips dbname="rap_tmp_emis_activities.county_fips" ) column=(type=char(15) update=yes updatewhereclause=yes name=site_id dbname="rap_tmp_emis_activities.site_id" ) column=(type=char(10) update=yes updatewhereclause=yes name=scc dbname="rap_tmp_emis_activities.scc" ) column=(type=char(6) update=yesDAT*^ updatewhereclause=yes name=emission_unit_id dbname="rap_tmp_emis_activities.emission_unit_id" ) column=(type=char(6) update=yes updatewhereclause=yes name=process_id dbname="rap_tmp_emis_activities.process_id" ) column=(type=char(10) update=yes updatewhereclause=yes name=pollutant_code dbname="rap_tmp_emis_activities.pollutant_code" ) column=(type=char(6) update=yes updatewhereclause=yes name=emission_rel_point_id dbname="rap_tmp_emis_activities.emission_rel_point_id" ) column=(type=decimDAT*`al(0) update=yes updatewhereclause=yes name=start_date dbname="rap_tmp_emis_activities.start_date" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=end_date dbname="rap_tmp_emis_activities.end_date" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=start_time dbname="rap_tmp_emis_activities.start_time" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=end_time dbname="rap_tmp_emis_activities.end_time" ) column=(type=number update=yes updatewhereclDAT*bause=yes name=emission_num_val dbname="rap_tmp_emis_activities.emission_num_val" ) column=(type=char(10) update=yes updatewhereclause=yes name=emission_unit_numerator dbname="rap_tmp_emis_activities.emission_unit_numerator" ) column=(type=char(2) update=yes updatewhereclause=yes name=emission_type dbname="rap_tmp_emis_activities.emission_type" ) column=(type=char(10) update=yes updatewhereclause=yes name=emission_data_level dbname="rap_tmp_emis_activities.emission_data_level" ) column=(typDAT*de=number update=yes updatewhereclause=yes name=rule_effectiveness dbname="rap_tmp_emis_activities.rule_effectiveness" ) column=(type=number update=yes updatewhereclause=yes name=rule_penetration dbname="rap_tmp_emis_activities.rule_penetration" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=inventory_year dbname="rap_tmp_emis_activities.inventory_year" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=output_stream_rid dbname="rap_tmp_emis_activities.output_strDAT*feam_rid" ) column=(type=char(30) update=yes updatewhereclause=yes key=yes name=user_id dbname="rap_tmp_emis_activities.user_id" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=mass_flow1_stream_rid dbname="rap_tmp_emis_activities.mass_flow1_stream_rid" ) column=(type=char(2) update=yes updatewhereclause=yes name=hap_emissions_perform_level dbname="rap_tmp_emis_activities.hap_emissions_perform_level" ) column=(type=char(3) update=yes updatewhereclause=yes name=tribal_code dbDAT*hname="rap_tmp_emis_activities.tribal_code" ) retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"rap_tmp_emis_activities~" ) COLUMN(NAME=~"rap_tmp_emis_activities.state_fips~") COLUMN(NAME=~"rap_tmp_emis_activities.county_fips~") COLUMN(NAME=~"rap_tmp_emis_activities.site_id~") COLUMN(NAME=~"rap_tmp_emis_activities.scc~") COLUMN(NAME=~"rap_tmp_emis_activities.emission_unit_id~") COLUMN(NAME=~"rap_tmp_emis_activities.process_id~") COLUMN(NAME=~"rap_tmp_emis_activities.pollutant_code~") COLUMN(NAME=~"raDAT*jp_tmp_emis_activities.emission_rel_point_id~") COLUMN(NAME=~"rap_tmp_emis_activities.start_date~") COLUMN(NAME=~"rap_tmp_emis_activities.end_date~") COLUMN(NAME=~"rap_tmp_emis_activities.start_time~") COLUMN(NAME=~"rap_tmp_emis_activities.end_time~") COLUMN(NAME=~"rap_tmp_emis_activities.emission_num_val~") COLUMN(NAME=~"rap_tmp_emis_activities.emission_unit_numerator~") COLUMN(NAME=~"rap_tmp_emis_activities.emission_type~") COLUMN(NAME=~"rap_tmp_emis_activities.emission_data_level~") COLUMN(NAME=DAT*l~"rap_tmp_emis_activities.rule_effectiveness~") COLUMN(NAME=~"rap_tmp_emis_activities.rule_penetration~") COLUMN(NAME=~"rap_tmp_emis_activities.inventory_year~") COLUMN(NAME=~"rap_tmp_emis_activities.output_stream_rid~") COLUMN(NAME=~"rap_tmp_emis_activities.user_id~") COLUMN(NAME=~"rap_tmp_emis_activities.mass_flow1_stream_rid~") COLUMN(NAME=~"rap_tmp_emis_activities.hap_emissions_perform_level~") COLUMN(NAME=~"rap_tmp_emis_activities.tribal_code~")WHERE( EXP1 =~"rap_tmp_emis_activities.state_DAT*nfips~" OP =~"=~" EXP2 =~":as_statefips~" LOGIC =~"and~" ) WHERE( EXP1 =~"rap_tmp_emis_activities.county_fips~" OP =~"=~" EXP2 =~":as_countyfips~" LOGIC =~"and~" ) WHERE( EXP1 =~"rap_tmp_emis_activities.user_id~" OP =~"=~" EXP2 =~":as_userid~" ) ) ORDER(NAME=~"rap_tmp_emis_activities.state_fips~" ASC=yes ) ORDER(NAME=~"rap_tmp_emis_activities.county_fips~" ASC=yes ) ARG(NAME = ~"as_statefips~" TYPE = string) ARG(NAME = ~"as_countyfips~" TYPE = string) ARG(NAME = ~"as_uDAT*pserid~" TYPE = string) " update="rap_tmp_emis_activities" updatewhere=1 updatekeyinplace=yes arguments=(("as_statefips", string),("as_countyfips", string),("as_userid", string)) ) text(band=header alignment="2" text="State Fips" border="0" color="0" x="9" y="8" height="64" width="274" html.valueishtml="0" name=state_fips_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(baDAT*rnd=header alignment="2" text="County Fips" border="0" color="0" x="293" y="8" height="64" width="320" html.valueishtml="0" name=county_fips_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Site Id" border="0" color="0" x="622" y="8" height="64" width="439" html.valueishtml="0" name=site_id_t visible="1" font.face="Arial" font.height="-10" DAT*tfont.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Scc" border="0" color="0" x="1070" y="8" height="64" width="302" html.valueishtml="0" name=scc_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Emission Unit Id" border="0" color="0" x="1DAT*v381" y="8" height="64" width="434" html.valueishtml="0" name=emission_unit_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Process Id" border="0" color="0" x="1824" y="8" height="64" width="283" html.valueishtml="0" name=process_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.DAT*xcharset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Pollutant Code" border="0" color="0" x="2117" y="8" height="64" width="389" html.valueishtml="0" name=pollutant_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Emission Rel Point Id" border="0" color="0" x="2514" y="8" height="64" widthDAT*z="571" html.valueishtml="0" name=emission_rel_point_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Start Date" border="0" color="0" x="3095" y="8" height="64" width="329" html.valueishtml="0" name=start_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.DAT*|mode="1" background.color="536870912" ) text(band=header alignment="2" text="End Date" border="0" color="0" x="3433" y="8" height="64" width="329" html.valueishtml="0" name=end_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Start Time" border="0" color="0" x="3771" y="8" height="64" width="329" html.valueishtml="0" name=start_time_tDAT*~ visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="End Time" border="0" color="0" x="4110" y="8" height="64" width="329" html.valueishtml="0" name=end_time_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header aliDAT*gnment="2" text="Emission Num Val" border="0" color="0" x="4448" y="8" height="64" width="494" html.valueishtml="0" name=emission_num_val_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Emission Unit Numerator" border="0" color="0" x="4951" y="8" height="64" width="663" html.valueishtml="0" name=emission_unit_numerator_t visible="1" font.DAT*face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Emission Type" border="0" color="0" x="5623" y="8" height="64" width="393" html.valueishtml="0" name=emission_type_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2DAT*" text="Emission Data Level" border="0" color="0" x="6025" y="8" height="64" width="539" html.valueishtml="0" name=emission_data_level_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Rule Effectiveness" border="0" color="0" x="6574" y="8" height="64" width="485" html.valueishtml="0" name=rule_effectiveness_t visible="1" font.face="Arial" DAT*font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Rule Penetration" border="0" color="0" x="7067" y="8" height="64" width="439" html.valueishtml="0" name=rule_penetration_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text=DAT*"Inventory Year" border="0" color="0" x="7515" y="8" height="64" width="375" html.valueishtml="0" name=inventory_year_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Output Stream Rid" border="0" color="0" x="7899" y="8" height="64" width="494" html.valueishtml="0" name=output_stream_rid_t visible="1" font.face="Arial" font.height="-10" fDAT*ont.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="0" text="User Id" border="0" color="0" x="8402" y="4" height="76" width="800" html.valueishtml="0" name=t_1 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) text(band=header alignment="0" text="Mass Flow1 Stream Rid" border="0" color="0"DAT* x="9211" y="4" height="76" width="1152" html.valueishtml="0" name=t_2 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) text(band=header alignment="0" text="Hap Emissions Perform Level" border="0" color="0" x="10373" y="4" height="76" width="46" html.valueishtml="0" name=hap_emissions_perform_level_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family=DAT*"2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) text(band=header alignment="0" text="Tribal Code" border="0" color="0" x="10427" y="4" height="76" width="73" html.valueishtml="0" name=tribal_code_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) column(band=detail id=1 alignment="0" tabsequence=32766 border="0" color="0" x="9" y="8" height="DAT*76" width="274" format="[general]" html.valueishtml="0" name=state_fips visible="1" edit.limit=2 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=2 alignment="0" tabsequence=32766 border="0" color="0" x="293" y="8" height="76" width="320" format="[general]" html.valueishtml="0" DAT* name=county_fips visible="1" edit.limit=3 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=3 alignment="0" tabsequence=32766 border="0" color="0" x="622" y="8" height="76" width="439" format="[general]" html.valueishtml="0" name=site_id visible="1" edit.limit=15 edit.case=any eDAT*dit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=4 alignment="0" tabsequence=32766 border="0" color="0" x="1070" y="8" height="76" width="302" format="[general]" html.valueishtml="0" name=scc visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yeDAT*s edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=5 alignment="0" tabsequence=32766 border="0" color="0" x="1381" y="8" height="76" width="434" format="[general]" html.valueishtml="0" name=emission_unit_id visible="1" edit.limit=6 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="DAT*0-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=6 alignment="0" tabsequence=32766 border="0" color="0" x="1824" y="8" height="76" width="283" format="[general]" html.valueishtml="0" name=process_id visible="1" edit.limit=6 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" DAT*PDW0800pdw+```` F$"nn``DAT* @P`"DAT*  state_fips_t$1<  $ 0%  ArialArial$2$-10$400$ 536870912$ 9DAT*$8$@64$<274% State Fips State Fips"!0`-# $&(+county_fips_t$%@%293$'F@320%)* County Fips County Fips",0`8"DAT*. /136 site_id_t$0n622$2`439%45Site IdSite Id"70`C-9 :<>Ascc_t$;.1070$=B.302%?@SccSccDAT*j"B0`N8D EGILemission_unit_id_t$F.e1381$H_434%JKEmission Unit IdEmission Unit Id"M0`YCO PRTW process_id_t$Q 1824$SDAT*release 8; datawindow(units=0 timer_interval=0 color=16777215 processing=1 HTMLDW=no print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.prompt=no print.buttons=no print.preview.buttons=no grid.lines=0 ) header(height=80 color="536870912" ) summary(height=0 color="536870912" ) footer(height=0 color="536870912" ) detail(height=92 color="536870912" ) table(cDAT*olumn=(type=char(2) update=yes updatewhereclause=yes key=yes name=state_fips dbname="rap_tmp_emis_rel_pt_devices.state_fips" ) column=(type=char(3) update=yes updatewhereclause=yes key=yes name=county_fips dbname="rap_tmp_emis_rel_pt_devices.county_fips" ) column=(type=char(15) update=yes updatewhereclause=yes name=site_id dbname="rap_tmp_emis_rel_pt_devices.site_id" ) column=(type=char(6) update=yes updatewhereclause=yes name=emission_rel_point_id dbname="rap_tmp_emis_rel_pt_devices.emissioDAT*n_rel_point_id" ) column=(type=char(2) update=yes updatewhereclause=yes name=emission_rel_point_type dbname="rap_tmp_emis_rel_pt_devices.emission_rel_point_type" ) column=(type=char(80) update=yes updatewhereclause=yes name=emission_rel_pt_desc dbname="rap_tmp_emis_rel_pt_devices.emission_rel_pt_desc" ) column=(type=number update=yes updatewhereclause=yes name=stack_height dbname="rap_tmp_emis_rel_pt_devices.stack_height" ) column=(type=number update=yes updatewhereclause=yes name=stack_diDAT*ameter dbname="rap_tmp_emis_rel_pt_devices.stack_diameter" ) column=(type=number update=yes updatewhereclause=yes name=exit_gas_temperature dbname="rap_tmp_emis_rel_pt_devices.exit_gas_temperature" ) column=(type=number update=yes updatewhereclause=yes name=exit_gas_velocity dbname="rap_tmp_emis_rel_pt_devices.exit_gas_velocity" ) column=(type=number update=yes updatewhereclause=yes name=exit_gas_flow_rate dbname="rap_tmp_emis_rel_pt_devices.exit_gas_flow_rate" ) column=(type=number updateDAT*=yes updatewhereclause=yes name=x_coordinate dbname="rap_tmp_emis_rel_pt_devices.x_coordinate" ) column=(type=number update=yes updatewhereclause=yes name=y_coordinate dbname="rap_tmp_emis_rel_pt_devices.y_coordinate" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=utm_zone dbname="rap_tmp_emis_rel_pt_devices.utm_zone" ) column=(type=char(8) update=yes updatewhereclause=yes name=xy_coordinate_type dbname="rap_tmp_emis_rel_pt_devices.xy_coordinate_type" ) column=(type=decimaDAT*l(0) update=yes updatewhereclause=yes name=release_height_fugitive dbname="rap_tmp_emis_rel_pt_devices.release_height_fugitive" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=inventory_year dbname="rap_tmp_emis_rel_pt_devices.inventory_year" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=start_date dbname="rap_tmp_emis_rel_pt_devices.start_date" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=end_date dbname="rap_tmp_emis_rel_pt_devices.end_dDAT*ate" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=source_rid dbname="rap_tmp_emis_rel_pt_devices.source_rid" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=device_rid dbname="rap_tmp_emis_rel_pt_devices.device_rid" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=process_rid dbname="rap_tmp_emis_rel_pt_devices.process_rid" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=output_stream_rid dbname="rap_tmp_emis_rel_pt_devices.DAT*output_stream_rid" ) column=(type=char(30) update=yes updatewhereclause=yes key=yes name=user_id dbname="rap_tmp_emis_rel_pt_devices.user_id" ) column=(type=char(3) update=yes updatewhereclause=yes name=horiz_collection_method_code dbname="rap_tmp_emis_rel_pt_devices.horiz_collection_method_code" ) column=(type=char(6) update=yes updatewhereclause=yes name=horiz_accuracy_measure dbname="rap_tmp_emis_rel_pt_devices.horiz_accuracy_measure" ) column=(type=char(3) update=yes updatewhereclause=DAT*yes name=horiz_reference_datum_code dbname="rap_tmp_emis_rel_pt_devices.horiz_reference_datum_code" ) column=(type=char(3) update=yes updatewhereclause=yes name=tribal_code dbname="rap_tmp_emis_rel_pt_devices.tribal_code" ) retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"rap_tmp_emis_rel_pt_devices~" ) COLUMN(NAME=~"rap_tmp_emis_rel_pt_devices.state_fips~") COLUMN(NAME=~"rap_tmp_emis_rel_pt_devices.county_fips~") COLUMN(NAME=~"rap_tmp_emis_rel_pt_devices.site_id~") COLUMN(NAME=~"rap_tmp_emis_relDAT*_pt_devices.emission_rel_point_id~") COLUMN(NAME=~"rap_tmp_emis_rel_pt_devices.emission_rel_point_type~") COLUMN(NAME=~"rap_tmp_emis_rel_pt_devices.emission_rel_pt_desc~") COLUMN(NAME=~"rap_tmp_emis_rel_pt_devices.stack_height~") COLUMN(NAME=~"rap_tmp_emis_rel_pt_devices.stack_diameter~") COLUMN(NAME=~"rap_tmp_emis_rel_pt_devices.exit_gas_temperature~") COLUMN(NAME=~"rap_tmp_emis_rel_pt_devices.exit_gas_velocity~") COLUMN(NAME=~"rap_tmp_emis_rel_pt_devices.exit_gas_flow_rate~") COLUMN(NAME=~"rap_tDAT*mp_emis_rel_pt_devices.x_coordinate~") COLUMN(NAME=~"rap_tmp_emis_rel_pt_devices.y_coordinate~") COLUMN(NAME=~"rap_tmp_emis_rel_pt_devices.utm_zone~") COLUMN(NAME=~"rap_tmp_emis_rel_pt_devices.xy_coordinate_type~") COLUMN(NAME=~"rap_tmp_emis_rel_pt_devices.release_height_fugitive~") COLUMN(NAME=~"rap_tmp_emis_rel_pt_devices.inventory_year~") COLUMN(NAME=~"rap_tmp_emis_rel_pt_devices.start_date~") COLUMN(NAME=~"rap_tmp_emis_rel_pt_devices.end_date~") COLUMN(NAME=~"rap_tmp_emis_rel_pt_devices.sourceDAT*_rid~") COLUMN(NAME=~"rap_tmp_emis_rel_pt_devices.device_rid~") COLUMN(NAME=~"rap_tmp_emis_rel_pt_devices.process_rid~") COLUMN(NAME=~"rap_tmp_emis_rel_pt_devices.output_stream_rid~") COLUMN(NAME=~"rap_tmp_emis_rel_pt_devices.user_id~") COLUMN(NAME=~"rap_tmp_emis_rel_pt_devices.horiz_collection_method_code~") COLUMN(NAME=~"rap_tmp_emis_rel_pt_devices.horiz_accuracy_measure~") COLUMN(NAME=~"rap_tmp_emis_rel_pt_devices.horiz_reference_datum_code~") COLUMN(NAME=~"rap_tmp_emis_rel_pt_devices.tribal_coDAT*de~")WHERE( EXP1 =~"rap_tmp_emis_rel_pt_devices.state_fips~" OP =~"=~" EXP2 =~":as_statefips~" LOGIC =~"and~" ) WHERE( EXP1 =~"rap_tmp_emis_rel_pt_devices.county_fips~" OP =~"=~" EXP2 =~":as_countyfips~" LOGIC =~"and~" ) WHERE( EXP1 =~"rap_tmp_emis_rel_pt_devices.user_id~" OP =~"=~" EXP2 =~":as_userid~" ) ) ORDER(NAME=~"rap_tmp_emis_rel_pt_devices.state_fips~" ASC=yes ) ORDER(NAME=~"rap_tmp_emis_rel_pt_devices.county_fips~" ASC=yes ) ARG(NAME = ~"as_statefips~" TYPE DAT*= string) ARG(NAME = ~"as_countyfips~" TYPE = string) ARG(NAME = ~"as_userid~" TYPE = string) " update="rap_tmp_emis_rel_pt_devices" updatewhere=1 updatekeyinplace=yes arguments=(("as_statefips", string),("as_countyfips", string),("as_userid", string)) ) text(band=header alignment="2" text="State Fips" border="0" color="0" x="9" y="8" height="64" width="274" html.valueishtml="0" name=state_fips_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2"DAT* font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="County Fips" border="0" color="0" x="293" y="8" height="64" width="320" html.valueishtml="0" name=county_fips_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Site Id" border="0" color="0" x="622" y="8" height="64" width="439" html.valuDAT*eishtml="0" name=site_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Emission Rel Point Id" border="0" color="0" x="1070" y="8" height="64" width="571" html.valueishtml="0" name=emission_rel_point_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1"DAT* background.color="536870912" ) text(band=header alignment="2" text="Emission Rel Point Type" border="0" color="0" x="1650" y="8" height="64" width="654" html.valueishtml="0" name=emission_rel_point_type_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Emission Rel Pt Desc" border="0" color="0" x="2313" y="8" height="64" width="2222" html.vDAT*alueishtml="0" name=emission_rel_pt_desc_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Stack Height" border="0" color="0" x="4544" y="8" height="64" width="343" html.valueishtml="0" name=stack_height_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" bDAT*ackground.color="536870912" ) text(band=header alignment="2" text="Stack Diameter" border="0" color="0" x="4896" y="8" height="64" width="411" html.valueishtml="0" name=stack_diameter_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Exit Gas Temperature" border="0" color="0" x="5317" y="8" height="64" width="581" html.valueishtml="0" name=DAT*exit_gas_temperature_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Exit Gas Velocity" border="0" color="0" x="5906" y="8" height="64" width="466" html.valueishtml="0" name=exit_gas_velocity_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.cDAT*olor="536870912" ) text(band=header alignment="2" text="Exit Gas Flow Rate" border="0" color="0" x="6382" y="8" height="64" width="517" html.valueishtml="0" name=exit_gas_flow_rate_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="X Coordinate" border="0" color="0" x="6907" y="8" height="64" width="334" html.valueishtml="0" name=x_coordinatDAT*e_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Y Coordinate" border="0" color="0" x="7250" y="8" height="64" width="343" html.valueishtml="0" name=y_coordinate_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(bandDAT*=header alignment="2" text="Utm Zone" border="0" color="0" x="7602" y="8" height="64" width="329" html.valueishtml="0" name=utm_zone_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Xy Coordinate Type" border="0" color="0" x="7941" y="8" height="64" width="512" html.valueishtml="0" name=xy_coordinate_type_t visible="1" font.face="Arial" foDAT*nt.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Release Height Fugitive" border="0" color="0" x="8462" y="8" height="64" width="622" html.valueishtml="0" name=release_height_fugitive_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignmeDAT*nt="2" text="Inventory Year" border="0" color="0" x="9093" y="8" height="64" width="375" html.valueishtml="0" name=inventory_year_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Start Date" border="0" color="0" x="9477" y="8" height="64" width="329" html.valueishtml="0" name=start_date_t visible="1" font.face="Arial" font.height="-10" fonDAT*t.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="End Date" border="0" color="0" x="9815" y="8" height="64" width="329" html.valueishtml="0" name=end_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Source Rid" border="0" color="0" x="DAT*10153" y="8" height="64" width="329" html.valueishtml="0" name=source_rid_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Device Rid" border="0" color="0" x="10491" y="8" height="64" width="329" html.valueishtml="0" name=device_rid_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.chaDAT*release 8; datawindow(units=0 timer_interval=0 color=16777215 processing=1 HTMLDW=no print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.prompt=no print.buttons=no print.preview.buttons=no grid.lines=0 ) header(height=80 color="536870912" ) summary(height=0 color="536870912" ) footer(height=0 color="536870912" ) detail(height=92 color="536870912" ) table(cDAT*olumn=(type=char(2) update=yes updatewhereclause=yes key=yes name=state_fips dbname="rap_tmp_emis_period_activities.state_fips" ) column=(type=char(3) update=yes updatewhereclause=yes key=yes name=county_fips dbname="rap_tmp_emis_period_activities.county_fips" ) column=(type=char(15) update=yes updatewhereclause=yes name=site_id dbname="rap_tmp_emis_period_activities.site_id" ) column=(type=char(10) update=yes updatewhereclause=yes name=scc dbname="rap_tmp_emis_period_activities.scc" ) colDAT*umn=(type=char(6) update=yes updatewhereclause=yes name=emission_unit_id dbname="rap_tmp_emis_period_activities.emission_unit_id" ) column=(type=char(6) update=yes updatewhereclause=yes name=process_id dbname="rap_tmp_emis_period_activities.process_id" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=start_date dbname="rap_tmp_emis_period_activities.start_date" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=end_date dbname="rap_tmp_emis_period_activities.end_dDAT*ate" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=start_time dbname="rap_tmp_emis_period_activities.start_time" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=end_time dbname="rap_tmp_emis_period_activities.end_time" ) column=(type=number update=yes updatewhereclause=yes name=actual_throughput dbname="rap_tmp_emis_period_activities.actual_throughput" ) column=(type=char(10) update=yes updatewhereclause=yes name=throughput_unit_num dbname="rap_tmp_emis_peDAT*riod_activities.throughput_unit_num" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=material dbname="rap_tmp_emis_period_activities.material" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=inventory_year dbname="rap_tmp_emis_period_activities.inventory_year" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=input_stream_rid dbname="rap_tmp_emis_period_activities.input_stream_rid" ) column=(type=char(30) update=yes updatewhereclause=yes key=yeDAT*s name=user_id dbname="rap_tmp_emis_period_activities.user_id" ) column=(type=char(3) update=yes updatewhereclause=yes name=tribal_code dbname="rap_tmp_emis_period_activities.tribal_code" ) retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"rap_tmp_emis_period_activities~" ) COLUMN(NAME=~"rap_tmp_emis_period_activities.state_fips~") COLUMN(NAME=~"rap_tmp_emis_period_activities.county_fips~") COLUMN(NAME=~"rap_tmp_emis_period_activities.site_id~") COLUMN(NAME=~"rap_tmp_emis_period_activities.scc~") DAT*COLUMN(NAME=~"rap_tmp_emis_period_activities.emission_unit_id~") COLUMN(NAME=~"rap_tmp_emis_period_activities.process_id~") COLUMN(NAME=~"rap_tmp_emis_period_activities.start_date~") COLUMN(NAME=~"rap_tmp_emis_period_activities.end_date~") COLUMN(NAME=~"rap_tmp_emis_period_activities.start_time~") COLUMN(NAME=~"rap_tmp_emis_period_activities.end_time~") COLUMN(NAME=~"rap_tmp_emis_period_activities.actual_throughput~") COLUMN(NAME=~"rap_tmp_emis_period_activities.throughput_unit_num~") COLUMN(NAME=DAT*~"rap_tmp_emis_period_activities.material~") COLUMN(NAME=~"rap_tmp_emis_period_activities.inventory_year~") COLUMN(NAME=~"rap_tmp_emis_period_activities.input_stream_rid~") COLUMN(NAME=~"rap_tmp_emis_period_activities.user_id~") COLUMN(NAME=~"rap_tmp_emis_period_activities.tribal_code~")WHERE( EXP1 =~"rap_tmp_emis_period_activities.state_fips~" OP =~"=~" EXP2 =~":as_statefips~" LOGIC =~"and~" ) WHERE( EXP1 =~"rap_tmp_emis_period_activities.county_fips~" OP =~"=~" EXP2 =~":as_couDAT*ntyfips~" LOGIC =~"and~" ) WHERE( EXP1 =~"rap_tmp_emis_period_activities.user_id~" OP =~"=~" EXP2 =~":as_userID~" ) ) ORDER(NAME=~"rap_tmp_emis_period_activities.state_fips~" ASC=yes ) ORDER(NAME=~"rap_tmp_emis_period_activities.county_fips~" ASC=yes ) ARG(NAME = ~"as_statefips~" TYPE = string) ARG(NAME = ~"as_countyfips~" TYPE = string) ARG(NAME = ~"as_userid~" TYPE = string) " update="rap_tmp_emis_period_activities" updatewhere=1 updatekeyinplace=yes arguments=(("as_statefips", strDAT*ing),("as_countyfips", string),("as_userid", string)) ) text(band=header alignment="2" text="State Fips" border="0" color="0" x="9" y="8" height="64" width="274" html.valueishtml="0" name=state_fips_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="County Fips" border="0" color="0" x="293" y="8" height="64" width="320" html.valueishtml="0" DAT*name=county_fips_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Site Id" border="0" color="0" x="622" y="8" height="64" width="439" html.valueishtml="0" name=site_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(DAT*band=header alignment="2" text="Scc" border="0" color="0" x="1070" y="8" height="64" width="302" html.valueishtml="0" name=scc_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Emission Unit Id" border="0" color="0" x="1381" y="8" height="64" width="434" html.valueishtml="0" name=emission_unit_id_t visible="1" font.face="Arial" font.height=DAT*"-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Process Id" border="0" color="0" x="1824" y="8" height="64" width="283" html.valueishtml="0" name=process_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Start Date" border="0" DAT*color="0" x="2117" y="8" height="64" width="329" html.valueishtml="0" name=start_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="End Date" border="0" color="0" x="2455" y="8" height="64" width="329" html.valueishtml="0" name=end_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" fDAT*ont.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Start Time" border="0" color="0" x="2793" y="8" height="64" width="329" html.valueishtml="0" name=start_time_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="End Time" border="0" color="0" x="3131" y="8" height="64" width="329" html.valueDAT*ishtml="0" name=end_time_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Actual Throughput" border="0" color="0" x="3470" y="8" height="64" width="480" html.valueishtml="0" name=actual_throughput_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" backgroDAT*Trset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Process Rid" border="0" color="0" x="10830" y="8" height="64" width="329" html.valueishtml="0" name=process_rid_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Output Stream Rid" border="0" color="0" x="11168" y="8" height="64" width="494" htmlDAT*und.color="536870912" ) text(band=header alignment="2" text="Throughput Unit Num" border="0" color="0" x="3959" y="8" height="64" width="558" html.valueishtml="0" name=throughput_unit_num_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Material" border="0" color="0" x="4526" y="8" height="64" width="329" html.valueishtml="0" name=materialDAT*_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Inventory Year" border="0" color="0" x="4864" y="8" height="64" width="375" html.valueishtml="0" name=inventory_year_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(bDAT*and=header alignment="2" text="Input Stream Rid" border="0" color="0" x="5248" y="8" height="64" width="443" html.valueishtml="0" name=input_stream_rid_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="0" text="User Id" border="0" color="0" x="5701" y="4" height="76" width="800" html.valueishtml="0" name=t_1 visible="1" font.face="Arial" font.heightDAT*="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) text(band=header alignment="0" text="Tribal Code" border="0" color="0" x="6510" y="4" height="76" width="73" html.valueishtml="0" name=tribal_code_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) column(band=detail id=1 alignment="0" tabsequence=32766 bordDAT*er="0" color="0" x="9" y="8" height="76" width="274" format="[general]" html.valueishtml="0" name=state_fips visible="1" edit.limit=2 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=2 alignment="0" tabsequence=32766 border="0" color="0" x="293" y="8" height="76" width="320" forDAT*mat="[general]" html.valueishtml="0" name=county_fips visible="1" edit.limit=3 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=3 alignment="0" tabsequence=32766 border="0" color="0" x="622" y="8" height="76" width="439" format="[general]" html.valueishtml="0" name=site_id visiDAT* ble="1" edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=4 alignment="0" tabsequence=32766 border="0" color="0" x="1070" y="8" height="76" width="302" format="[general]" html.valueishtml="0" name=scc visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edDAT* it.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=5 alignment="0" tabsequence=32766 border="0" color="0" x="1381" y="8" height="76" width="434" format="[general]" html.valueishtml="0" name=emission_unit_id visible="1" edit.limit=6 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemoDAT*de=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=6 alignment="0" tabsequence=32766 border="0" color="0" x="1824" y="8" height="76" width="283" format="[general]" html.valueishtml="0" name=process_id visible="1" edit.limit=6 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="DAT*400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=7 alignment="1" tabsequence=32766 border="0" color="0" x="2117" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=start_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" bDAT*ackground.mode="1" background.color="536870912" ) column(band=detail id=8 alignment="1" tabsequence=32766 border="0" color="0" x="2455" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=end_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) columnDAT*\ (band=detail id=9 alignment="1" tabsequence=32766 border="0" color="0" x="2793" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=start_time visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=10 alignment="1" tabsequence=32766 bordDAT*PDW0800pdw+^TU]````; F$8nn``DAT* @PI`"DAT*  state_fips_t$1<  $ 0%  ArialArial$2$-10$400$ 536870912$ 9DAT*$8$@64$<274% State Fips State Fips"!0`-# $&(+county_fips_t$%@%293$'F@320%)* County Fips County Fips",0`8"DAT*. /136 site_id_t$0n622$2`439%45Site IdSite Id"70`C-9 :<>Aemission_rel_point_id_t$;.1070$=};571%?@DAT* Emission Rel Point IdEmission Rel Point Id"B0`N8D EGILemission_rel_point_type_t$Fir1650$H654%JKEmission Rel Point TypeEmission Rel Point Type"M0`YCO PRTWDAT*"emission_rel_pt_desc_t$Q 2313$S2222%UVEmission Rel Pt DescEmission Rel Pt Desc"X0`dNZ []_bstack_height_t$\4544$^KW343%`a Stack Height Stack Height"cDAT*$0`oYe fhjmstack_diameter_t$g/ 4896$iZ411%klStack DiameterStack Diameter"n0`zdp qsuxexit_gas_temperature_t$r5317$tDAT*&E581%vwExit Gas TemperatureExit Gas Temperature"y0`o{ |~exit_gas_velocity_t$} 5906$f466%Exit Gas VelocityExit Gas Velocity"0`z DAT*(exit_gas_flow_rate_t$t6382$q517%Exit Gas Flow RateExit Gas Flow Rate"0` x_coordinate_t$6907$IN334% X Coordinate X CoordinateDAT**"0` y_coordinate_t$2R7250$KW343% Y Coordinate Y Coordinate"0`  utm_zone_t$7602$HDAT*,I329% Utm Zone Utm Zone"0` xy_coordinate_type_t$7941$p512%Xy Coordinate TypeXy Coordinate Type"0` DAT*.release_height_fugitive_t$;!8462$n622%Release Height FugitiveRelease Height Fugitive"0` inventory_year_t$#9093$Rw375%Inventory YearInventory YearDAT*0"0`  start_date_t$%9477$HI329% Start Date Start Date"0`  end_date_t$cW&9815$HIDAT*2329% End Date End Date"0`  source_rid_t$'10153$HI329% Source Rid Source Rid"0`  device_rid_t$DAT*4(10491$HI329% Device Rid Device Rid"0`  process_rid_t$A N*10830$HI329% Process Rid Process Rid"0` DAT*6   output_stream_rid_t$  +11168$l494%Output Stream RidOutput Stream Rid"0`(  !#&t_1<  $-12$DAT*8 16777215$ -11671$4$ L76$" 800%$%User IdUser Id"'0`3) *,.1horiz_collection_method_code_t$+ 012480$-Pn366%/0DAT*:Horiz Collection Method CodeHoriz Collection Method Code"20`>(4 579<horiz_accuracy_measure_t$6 7212855$8|7567%:;Horiz Accuracy MeasureHoriz Accuracy Measure"=0`I3? @BDDAT*<Ghoriz_reference_datum_code_t$Az w413431$CR850%EFHoriz Reference Datum CodeHoriz Reference Datum Code"H0`>J KMORtribal_code_t$L6 714290$N1047%PQ Tribal Code TDAT*>ribal Code"S0@@\VTbWUXZ\(`_ state_fips$Y 9$[<274&]^ [general] [general]"aDAT*@0kVcUdf\(ih county_fips$e@%293$gF@320"j0tblUmo\(rqsite_id$nn622$p`DAT*B439"s0}kuUvx\({zemission_rel_point_id$w.1070$y};571"|0t~U\(emission_rel_point_type$DAT*Dir1650$654"0}U\(Pemission_rel_pt_desc$ 2313$2222"0UDAT*F( stack_height$4544$KW343& [general] [general]"0U(stack_diameter$/ 4896$Z411"DAT*H0U (exit_gas_temperature$5317$E581"0U (exit_gas_velocity$ 5906$DAT*Jf466"0U (exit_gas_flow_rate$t6382$q517"0U ( x_coDAT*Lordinate$6907$IN334"0U ( y_coordinate$2R7250$KW343"0UDAT*N( utm_zone$7602$HI329& [general] [general]"0U\(xy_coordinate_type$7941$p512"DAT*P0U(release_height_fugitive$;!8462$n622"0U(inventory_year$#9093DAT*R$Rw375"0U( start_date$%9477$HI329"0 U( end_datDAT*. e$cW&9815$HI329" 0 U ( source_rid$ '10153$HI329"0 U(DAT*V.valueishtml="0" name=output_stream_rid_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="0" text="User Id" border="0" color="0" x="11671" y="4" height="76" width="800" html.valueishtml="0" name=t_1 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color=DAT*X"16777215" ) text(band=header alignment="0" text="Horiz Collection Method Code" border="0" color="0" x="12480" y="4" height="76" width="366" html.valueishtml="0" name=horiz_collection_method_code_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) text(band=header alignment="0" text="Horiz Accuracy Measure" border="0" color="0" x="12855" y="4" height="76" width="567" html.valueishDAT*Ztml="0" name=horiz_accuracy_measure_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) text(band=header alignment="0" text="Horiz Reference Datum Code" border="0" color="0" x="13431" y="4" height="76" width="850" html.valueishtml="0" name=horiz_reference_datum_code_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0DAT*\" background.mode="2" background.color="16777215" ) text(band=header alignment="0" text="Tribal Code" border="0" color="0" x="14290" y="4" height="76" width="1047" html.valueishtml="0" name=tribal_code_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) column(band=detail id=1 alignment="0" tabsequence=32766 border="0" color="0" x="9" y="8" height="76" width="274" format="[generalDAT*^]" html.valueishtml="0" name=state_fips visible="1" edit.limit=2 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=2 alignment="0" tabsequence=32766 border="0" color="0" x="293" y="8" height="76" width="320" format="[general]" html.valueishtml="0" name=county_fips visible="1" edDAT*`it.limit=3 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=3 alignment="0" tabsequence=32766 border="0" color="0" x="622" y="8" height="76" width="439" format="[general]" html.valueishtml="0" name=site_id visible="1" edit.limit=15 edit.case=any edit.focusrectangle=no edit.autosDAT*belect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=4 alignment="0" tabsequence=32766 border="0" color="0" x="1070" y="8" height="76" width="571" format="[general]" html.valueishtml="0" name=emission_rel_point_id visible="1" edit.limit=6 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=DAT*d0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=5 alignment="0" tabsequence=32766 border="0" color="0" x="1650" y="8" height="76" width="654" format="[general]" html.valueishtml="0" name=emission_rel_point_type visible="1" edit.limit=2 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" fonDAT*ft.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=6 alignment="0" tabsequence=32766 border="0" color="0" x="2313" y="8" height="76" width="2222" format="[general]" html.valueishtml="0" name=emission_rel_pt_desc visible="1" edit.limit=80 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch=DAT*h"2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=7 alignment="1" tabsequence=32766 border="0" color="0" x="4544" y="8" height="76" width="343" format="[general]" html.valueishtml="0" name=stack_height visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.cDAT*jolor="536870912" ) column(band=detail id=8 alignment="1" tabsequence=32766 border="0" color="0" x="4896" y="8" height="76" width="411" format="[general]" html.valueishtml="0" name=stack_diameter visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=9 alignmeDAT*lnt="1" tabsequence=32766 border="0" color="0" x="5317" y="8" height="76" width="581" format="[general]" html.valueishtml="0" name=exit_gas_temperature visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=10 alignment="1" tabsequence=32766 border="0" color="0DAT*n" x="5906" y="8" height="76" width="466" format="[general]" html.valueishtml="0" name=exit_gas_velocity visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=11 alignment="1" tabsequence=32766 border="0" color="0" x="6382" y="8" height="76" width="517" formatDAT*p="[general]" html.valueishtml="0" name=exit_gas_flow_rate visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=12 alignment="1" tabsequence=32766 border="0" color="0" x="6907" y="8" height="76" width="334" format="[general]" html.valueishtml="0" name=x_coorDAT*rdinate visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=13 alignment="1" tabsequence=32766 border="0" color="0" x="7250" y="8" height="76" width="343" format="[general]" html.valueishtml="0" name=y_coordinate visible="1" edit.limit=0 edit.case=any edit.fDAT*tocusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=14 alignment="1" tabsequence=32766 border="0" color="0" x="7602" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=utm_zone visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yeDAT*vs edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=15 alignment="0" tabsequence=32766 border="0" color="0" x="7941" y="8" height="76" width="512" format="[general]" html.valueishtml="0" name=xy_coordinate_type visible="1" edit.limit=8 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.heighDAT*xt="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=16 alignment="1" tabsequence=32766 border="0" color="0" x="8462" y="8" height="76" width="622" format="[general]" html.valueishtml="0" name=release_height_fugitive visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2DAT*z" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=17 alignment="1" tabsequence=32766 border="0" color="0" x="9093" y="8" height="76" width="375" format="[general]" html.valueishtml="0" name=inventory_year visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode=DAT*|"1" background.color="536870912" ) column(band=detail id=18 alignment="1" tabsequence=32766 border="0" color="0" x="9477" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=start_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detailDAT*~ id=19 alignment="1" tabsequence=32766 border="0" color="0" x="9815" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=end_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=20 alignment="1" tabsequence=32766 border="0" color=DAT*"0" x="10153" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=source_rid visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=21 alignment="1" tabsequence=32766 border="0" color="0" x="10491" y="8" height="76" width="329" format="[DAT*general]" html.valueishtml="0" name=device_rid visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=22 alignment="1" tabsequence=32766 border="0" color="0" x="10830" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=process_rid visiDAT*ble="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=23 alignment="1" tabsequence=32766 border="0" color="0" x="11168" y="8" height="76" width="494" format="[general]" html.valueishtml="0" name=output_stream_rid visible="1" edit.limit=0 edit.case=any edit.focusrDAT*n ectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=24 alignment="0" tabsequence=32766 border="0" color="0" x="11671" y="0" height="64" width="800" format="[general]" html.valueishtml="0" name=user_id visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="DAT*release 8; datawindow(units=0 timer_interval=0 color=16777215 processing=1 HTMLDW=no print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.prompt=no print.buttons=no print.preview.buttons=no grid.lines=0 ) header(height=80 color="536870912" ) summary(height=0 color="536870912" ) footer(height=0 color="536870912" ) detail(height=92 color="536870912" ) table(cDAT*olumn=(type=char(2) update=yes updatewhereclause=yes key=yes name=state_fips dbname="rap_tmp_emis_unit_devices.state_fips" ) column=(type=char(15) update=yes updatewhereclause=yes name=site_id dbname="rap_tmp_emis_unit_devices.site_id" ) column=(type=char(10) update=yes updatewhereclause=yes name=scc dbname="rap_tmp_emis_unit_devices.scc" ) column=(type=char(7) update=yes updatewhereclause=yes name=scc7 dbname="rap_tmp_emis_unit_devices.scc7" ) column=(type=char(6) update=yes updatewhereclDAT*ause=yes key=yes name=emission_unit_id dbname="rap_tmp_emis_unit_devices.emission_unit_id" ) column=(type=char(80) update=yes updatewhereclause=yes name=emission_unit_desc dbname="rap_tmp_emis_unit_devices.emission_unit_desc" ) column=(type=number update=yes updatewhereclause=yes name=design_cap dbname="rap_tmp_emis_unit_devices.design_cap" ) column=(type=char(10) update=yes updatewhereclause=yes name=design_cap_unit_num dbname="rap_tmp_emis_unit_devices.design_cap_unit_num" ) column=(typeDAT*=char(10) update=yes updatewhereclause=yes name=design_cap_unit_denom dbname="rap_tmp_emis_unit_devices.design_cap_unit_denom" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=inventory_year dbname="rap_tmp_emis_unit_devices.inventory_year" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=start_date dbname="rap_tmp_emis_unit_devices.start_date" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=end_date dbname="rap_tmp_emis_unit_devices.end_date" ) DAT* column=(type=decimal(0) update=yes updatewhereclause=yes name=source_rid dbname="rap_tmp_emis_unit_devices.source_rid" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=device_rid dbname="rap_tmp_emis_unit_devices.device_rid" ) column=(type=char(30) update=yes updatewhereclause=yes key=yes name=user_id dbname="rap_tmp_emis_unit_devices.user_id" ) column=(type=char(3) update=yes updatewhereclause=yes name=tribal_code dbname="rap_tmp_emis_unit_devices.tribal_code" ) column=(tDAT*ype=char(3) update=yes updatewhereclause=yes key=yes name=county_fips dbname="rap_tmp_emis_unit_devices.county_fips" ) column=(type=char(4) update=yes updatewhereclause=yes name=sic_unit_level dbname="rap_tmp_emis_unit_devices.sic_unit_level" ) column=(type=char(6) update=yes updatewhereclause=yes name=naics_unit_level dbname="rap_tmp_emis_unit_devices.naics_unit_level" ) retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"rap_tmp_emis_unit_devices~" ) COLUMN(NAME=~"rap_tmp_emis_unit_devices.stateDAT*_fips~") COLUMN(NAME=~"rap_tmp_emis_unit_devices.site_id~") COLUMN(NAME=~"rap_tmp_emis_unit_devices.scc~") COLUMN(NAME=~"rap_tmp_emis_unit_devices.scc7~") COLUMN(NAME=~"rap_tmp_emis_unit_devices.emission_unit_id~") COLUMN(NAME=~"rap_tmp_emis_unit_devices.emission_unit_desc~") COLUMN(NAME=~"rap_tmp_emis_unit_devices.design_cap~") COLUMN(NAME=~"rap_tmp_emis_unit_devices.design_cap_unit_num~") COLUMN(NAME=~"rap_tmp_emis_unit_devices.design_cap_unit_denom~") COLUMN(NAME=~"rap_tmp_emis_unit_devices.invDAT*entory_year~") COLUMN(NAME=~"rap_tmp_emis_unit_devices.start_date~") COLUMN(NAME=~"rap_tmp_emis_unit_devices.end_date~") COLUMN(NAME=~"rap_tmp_emis_unit_devices.source_rid~") COLUMN(NAME=~"rap_tmp_emis_unit_devices.device_rid~") COLUMN(NAME=~"rap_tmp_emis_unit_devices.user_id~") COLUMN(NAME=~"rap_tmp_emis_unit_devices.tribal_code~") COLUMN(NAME=~"rap_tmp_emis_unit_devices.county_fips~") COLUMN(NAME=~"rap_tmp_emis_unit_devices.sic_unit_level~") COLUMN(NAME=~"rap_tmp_emis_unit_devices.naics_unit_levDAT*el~")WHERE( EXP1 =~"rap_tmp_emis_unit_devices.state_fips~" OP =~"=~" EXP2 =~":as_statefips~" LOGIC =~"and~" ) WHERE( EXP1 =~"rap_tmp_emis_unit_devices.county_fips~" OP =~"=~" EXP2 =~":as_countyfips~" LOGIC =~"and~" ) WHERE( EXP1 =~"rap_tmp_emis_unit_devices.user_id~" OP =~"=~" EXP2 =~":as_userid~" ) ) ORDER(NAME=~"rap_tmp_emis_unit_devices.state_fips~" ASC=yes ) ORDER(NAME=~"rap_tmp_emis_unit_devices.county_fips~" ASC=yes ) ARG(NAME = ~"as_statefips~" TYPE = string) DAT* ARG(NAME = ~"as_countyfips~" TYPE = string) ARG(NAME = ~"as_userid~" TYPE = string) " update="rap_tmp_emis_unit_devices" updatewhere=1 updatekeyinplace=yes arguments=(("as_statefips", string),("as_countyfips", string),("as_userid", string)) ) text(band=header alignment="2" text="State Fips" border="0" color="0" x="9" y="8" height="64" width="274" html.valueishtml="0" name=state_fips_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charseDAT*t="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Site Id" border="0" color="0" x="293" y="8" height="64" width="439" html.valueishtml="0" name=site_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Scc" border="0" color="0" x="741" y="8" height="64" width="302" html.valueishtml="0" name=scc_t DAT*visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Scc7" border="0" color="0" x="1051" y="8" height="64" width="219" html.valueishtml="0" name=scc7_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2DAT*" text="Emission Unit Id" border="0" color="0" x="1280" y="8" height="64" width="434" html.valueishtml="0" name=emission_unit_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Emission Unit Desc" border="0" color="0" x="1723" y="8" height="64" width="2222" html.valueishtml="0" name=emission_unit_desc_t visible="1" font.face="Arial" font.DAT*height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Design Cap" border="0" color="0" x="3954" y="8" height="64" width="329" html.valueishtml="0" name=design_cap_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Design Cap Unit DAT*Num" border="0" color="0" x="4293" y="8" height="64" width="571" html.valueishtml="0" name=design_cap_unit_num_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Design Cap Unit Denom" border="0" color="0" x="4873" y="8" height="64" width="635" html.valueishtml="0" name=design_cap_unit_denom_t visible="1" font.face="Arial" font.height="-10" DAT*font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Inventory Year" border="0" color="0" x="5518" y="8" height="64" width="375" html.valueishtml="0" name=inventory_year_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Start Date" border="0DAT*" color="0" x="5902" y="8" height="64" width="329" html.valueishtml="0" name=start_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="End Date" border="0" color="0" x="6240" y="8" height="64" width="329" html.valueishtml="0" name=end_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2"DAT* font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Source Rid" border="0" color="0" x="6578" y="8" height="64" width="329" html.valueishtml="0" name=source_rid_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Device Rid" border="0" color="0" x="6917" y="8" height="64" width="329" html.vDAT*alueishtml="0" name=device_rid_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="0" text="User Id" border="0" color="0" x="7255" y="4" height="76" width="654" html.valueishtml="0" name=t_1 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215"DAT* ) text(band=header alignment="0" text="Tribal Code" border="0" color="0" x="7918" y="4" height="64" width="178" html.valueishtml="0" name=tribal_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="0" text="County Fips" border="0" color="0" x="8105" y="4" height="64" width="256" html.valueishtml="0" name=county_fips_t visible="1" font.face="AriaDAT*l" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="0" text="Sic Unit Level" border="0" color="0" x="8370" y="4" height="64" width="489" html.valueishtml="0" name=sic_unit_level_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="0" text="DAT*Naics Unit Level" border="0" color="0" x="8869" y="4" height="64" width="722" html.valueishtml="0" name=naics_unit_level_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=1 alignment="0" tabsequence=32766 border="0" color="0" x="9" y="8" height="76" width="274" format="[general]" html.valueishtml="0" name=state_fips visible="1" edit.limit=2 edit.case=any eDAT*dit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=2 alignment="0" tabsequence=32766 border="0" color="0" x="293" y="8" height="76" width="439" format="[general]" html.valueishtml="0" name=site_id visible="1" edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscrollDAT*=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=3 alignment="0" tabsequence=32766 border="0" color="0" x="741" y="8" height="76" width="302" format="[general]" html.valueishtml="0" name=scc visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.DAT*PDW0800pdw+````w% F$&nn``DAT* @P`"DAT*  state_fips_t$1<  $ 0%  ArialArial$2$-10$400$ 536870912$ 9DAT*$8$@64$<274% State Fips State Fips"!0`-# $&(+ site_id_t$%@%293$'`439%)*Site IdSite Id",0`8".DAT* /136scc_t$0741$2B.302%45SccScc"70`C-9 :<>Ascc7_t$;1051$=0219%?@Scc7Scc7"BDAT*0`N8D EGILemission_unit_id_t$F1280$H_434%JKEmission Unit IdEmission Unit Id"M0`YCO PRTWemission_unit_desc_t$Qy1723$SDAT*2222%UVEmission Unit DescEmission Unit Desc"X0`dNZ []_b design_cap_t$\ar3954$^HI329%`a Design Cap Design Cap"c0`oYe fhjmDAT*design_cap_unit_num_t$g4293$i};571%klDesign Cap Unit NumDesign Cap Unit Num"n0`zdp qsuxdesign_cap_unit_denom_t$r* 4873$t{635%vwDesign Cap Unit DenomDesign Cap Unit DDAT*enom"y0`o{ |~inventory_year_t$}5518$Rw375%Inventory YearInventory Year"0`z  start_date_t$ 5902$DAT*HI329% Start Date Start Date"0`  end_date_t$U`6240$HI329% End Date End Date"0`  sDAT*ource_rid_t$6578$HI329% Source Rid Source Rid"0`  device_rid_t$6917$HI329% Device Rid Device Rid"0`DAT* t_1< $-12$ 16777215$3W7255$4$L76$654%User IdUser Id"0`DAT*tribal_code_t$7918$'178% Tribal Code Tribal Code"0`county_fips_t$8105$8256% County Fips CountyDAT* Fips"0`sic_unit_level_t$' 8370$k489%Sic Unit LevelSic Unit Level"0`naics_unit_level_t$"8869DAT*$722%Naics Unit LevelNaics Unit Level"0@@\( state_fips$ 9$<274DAT*& [general] [general]"0(site_id$@%293$`439"0   ( DAT*scc$ 741$ B.302"0(scc7$1051$0219"0#DAT*(! emission_unit_id$1280$_434""0,$%'(*)Pemission_unit_desc$&y1723$(2222"+08#-DAT*.02(65 design_cap$/ar3954$1HI329&34 [general] [general]"70A,9:<(?> design_cap_unit_num$;4293$DAT*=};571"@0J8BCE (HG design_cap_unit_denom$D* 4873$F{635"I0VAKLNP (TSDAT*inventory_year$M5518$ORw375&QR [general] [general]"U0_JWXZP (]\ start_date$Y 5902$[HI329"^0hV`DAT*acP (fe end_date$bU`6240$dHI329"g0q_ijlP (on source_rid$k6578$mHI329"pDAT*0zhrsuP(xw device_rid$t6917$vHI329"y0q{|~ user_id$}3W7255$DAT*0$654"0z~  tribal_code$7918$'178"0~ DAT* county_fips$8105$8256"0~ sic_unit_level$' 8370$k489"0DAT* naics_unit_level$"8869$722"0@DAT*@@ @@#Q@,DAT*@8 @A @J  @V  @_  @h  @q @zDAT*weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=4 alignment="0" tabsequence=32766 border="0" color="0" x="1051" y="8" height="76" width="219" format="[general]" html.valueishtml="0" name=scc7 visible="1" edit.limit=7 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0"DAT* background.mode="1" background.color="536870912" ) column(band=detail id=5 alignment="0" tabsequence=32766 border="0" color="0" x="1280" y="8" height="76" width="434" format="[general]" html.valueishtml="0" name=emission_unit_id visible="1" edit.limit=6 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912"DAT* ) column(band=detail id=6 alignment="0" tabsequence=32766 border="0" color="0" x="1723" y="8" height="76" width="2222" format="[general]" html.valueishtml="0" name=emission_unit_desc visible="1" edit.limit=80 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=7 alignment="1" tabDAT*sequence=32766 border="0" color="0" x="3954" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=design_cap visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=8 alignment="0" tabsequence=32766 border="0" color="0" x="4293" y="8" heigDAT*ht="76" width="571" format="[general]" html.valueishtml="0" name=design_cap_unit_num visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=9 alignment="0" tabsequence=32766 border="0" color="0" x="4873" y="8" height="76" width="635" format="[general]" html.vDAT*alueishtml="0" name=design_cap_unit_denom visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=10 alignment="1" tabsequence=32766 border="0" color="0" x="5518" y="8" height="76" width="375" format="[general]" html.valueishtml="0" name=inventory_year visiblDAT*e="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=11 alignment="1" tabsequence=32766 border="0" color="0" x="5902" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=start_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=nDAT*x o edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=12 alignment="1" tabsequence=32766 border="0" color="0" x="6240" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=end_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=DAT*@@@:as_statefips:as_countyfips :as_userid as_statefipsas_countyfips as_useridrap_tmp_emis_unit_devices DAT*  state_fips%rap_tmp_emis_unit_devices.state_fipssite_id"rap_tmp_emis_unit_devices.site_idsccrap_tmp_emis_unit_devices.sccscc7rap_tmp_emis_unit_devices.scc7emission_unit_id+rap_tmp_emis_unit_devices.emission_unit_idemission_unit_desc-rap_tmp_emis_unit_devices.emission_unit_desc# design_cap%rap_tmp_emis_unit_dDAT*release 8; datawindow(units=0 timer_interval=0 color=16777215 processing=1 HTMLDW=no print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.prompt=no print.buttons=no print.preview.buttons=no grid.lines=0 ) header(height=80 color="536870912" ) summary(height=0 color="536870912" ) footer(height=0 color="536870912" ) detail(height=92 color="536870912" ) table(cDAT*olumn=(type=char(2) update=yes updatewhereclause=yes key=yes name=state_fips dbname="rap_tmp_processes.state_fips" ) column=(type=char(3) update=yes updatewhereclause=yes key=yes name=county_fips dbname="rap_tmp_processes.county_fips" ) column=(type=char(15) update=yes updatewhereclause=yes name=site_id dbname="rap_tmp_processes.site_id" ) column=(type=char(6) update=yes updatewhereclause=yes name=emission_unit_id dbname="rap_tmp_processes.emission_unit_id" ) column=(type=char(6) update=yeDAT*s updatewhereclause=yes name=emission_rel_point_id dbname="rap_tmp_processes.emission_rel_point_id" ) column=(type=char(6) update=yes updatewhereclause=yes name=process_id dbname="rap_tmp_processes.process_id" ) column=(type=char(10) update=yes updatewhereclause=yes name=scc dbname="rap_tmp_processes.scc" ) column=(type=char(3) update=yes updatewhereclause=yes name=scc3 dbname="rap_tmp_processes.scc3" ) column=(type=char(81) update=yes updatewhereclause=yes name=emission_process_desc dbnamDAT* e="rap_tmp_processes.emission_process_desc" ) column=(type=number update=yes updatewhereclause=yes name=winter_throughput_pct dbname="rap_tmp_processes.winter_throughput_pct" ) column=(type=number update=yes updatewhereclause=yes name=spring_throughput_pct dbname="rap_tmp_processes.spring_throughput_pct" ) column=(type=number update=yes updatewhereclause=yes name=summer_throughput_pct dbname="rap_tmp_processes.summer_throughput_pct" ) column=(type=number update=yes updatewhereclause=yes naDAT* me=fall_throughput_pct dbname="rap_tmp_processes.fall_throughput_pct" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=annual_avg_days_per_week dbname="rap_tmp_processes.annual_avg_days_per_week" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=annual_avg_weeks_per_year dbname="rap_tmp_processes.annual_avg_weeks_per_year" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=annual_avg_hours_per_day dbname="rap_tmp_processes.annual_avg_hours_per_day" )DAT* column=(type=decimal(0) update=yes updatewhereclause=yes name=annual_avg_hours_per_year dbname="rap_tmp_processes.annual_avg_hours_per_year" ) column=(type=number update=yes updatewhereclause=yes name=sulfur_content dbname="rap_tmp_processes.sulfur_content" ) column=(type=number update=yes updatewhereclause=yes name=ash_content dbname="rap_tmp_processes.ash_content" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=inventory_year dbname="rap_tmp_processes.inventory_year" ) DAT* column=(type=decimal(0) update=yes updatewhereclause=yes name=start_date dbname="rap_tmp_processes.start_date" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=end_date dbname="rap_tmp_processes.end_date" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=device_rid dbname="rap_tmp_processes.device_rid" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=process_rid dbname="rap_tmp_processes.process_rid" ) column=(type=decimal(0) update=yes updatewhDAT*ereclause=yes name=input_stream_rid dbname="rap_tmp_processes.input_stream_rid" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=output_stream_rid dbname="rap_tmp_processes.output_stream_rid" ) column=(type=char(30) update=yes updatewhereclause=yes key=yes name=user_id dbname="rap_tmp_processes.user_id" ) column=(type=char(15) update=yes updatewhereclause=yes name=ce_id dbname="rap_tmp_processes.ce_id" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=ce_rid dbDAT*name="rap_tmp_processes.ce_rid" ) column=(type=char(1) update=yes updatewhereclause=yes name=control_group_flag dbname="rap_tmp_processes.control_group_flag" ) column=(type=char(15) update=yes updatewhereclause=yes name=stack_id dbname="rap_tmp_processes.stack_id" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=stack_rid dbname="rap_tmp_processes.stack_rid" ) column=(type=char(1) update=yes updatewhereclause=yes name=stack_group_flag dbname="rap_tmp_processes.stack_group_flDAT*ag" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=ce_process_rid dbname="rap_tmp_processes.ce_process_rid" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=stack_process_rid dbname="rap_tmp_processes.stack_process_rid" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=mass_flow1_stream_rid dbname="rap_tmp_processes.mass_flow1_stream_rid" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=mass_flow2_stream_rid dbname="rap_tmp_proceDAT*sses.mass_flow2_stream_rid" ) column=(type=char(1) update=yes updatewhereclause=yes name=config_num dbname="rap_tmp_processes.config_num" ) column=(type=char(3) update=yes updatewhereclause=yes name=tribal_code dbname="rap_tmp_processes.tribal_code" ) retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"rap_tmp_processes~" ) COLUMN(NAME=~"rap_tmp_processes.state_fips~") COLUMN(NAME=~"rap_tmp_processes.county_fips~") COLUMN(NAME=~"rap_tmp_processes.site_id~") COLUMN(NAME=~"rap_tmp_processes.emissionDAT*_unit_id~") COLUMN(NAME=~"rap_tmp_processes.emission_rel_point_id~") COLUMN(NAME=~"rap_tmp_processes.process_id~") COLUMN(NAME=~"rap_tmp_processes.scc~") COLUMN(NAME=~"rap_tmp_processes.scc3~") COLUMN(NAME=~"rap_tmp_processes.emission_process_desc~") COLUMN(NAME=~"rap_tmp_processes.winter_throughput_pct~") COLUMN(NAME=~"rap_tmp_processes.spring_throughput_pct~") COLUMN(NAME=~"rap_tmp_processes.summer_throughput_pct~") COLUMN(NAME=~"rap_tmp_processes.fall_throughput_pct~") COLUMN(NAME=~"rap_tmp_proDAT*cesses.annual_avg_days_per_week~") COLUMN(NAME=~"rap_tmp_processes.annual_avg_weeks_per_year~") COLUMN(NAME=~"rap_tmp_processes.annual_avg_hours_per_day~") COLUMN(NAME=~"rap_tmp_processes.annual_avg_hours_per_year~") COLUMN(NAME=~"rap_tmp_processes.sulfur_content~") COLUMN(NAME=~"rap_tmp_processes.ash_content~") COLUMN(NAME=~"rap_tmp_processes.inventory_year~") COLUMN(NAME=~"rap_tmp_processes.start_date~") COLUMN(NAME=~"rap_tmp_processes.end_date~") COLUMN(NAME=~"rap_tmp_processes.device_rid~") CODAT*LUMN(NAME=~"rap_tmp_processes.process_rid~") COLUMN(NAME=~"rap_tmp_processes.input_stream_rid~") COLUMN(NAME=~"rap_tmp_processes.output_stream_rid~") COLUMN(NAME=~"rap_tmp_processes.user_id~") COLUMN(NAME=~"rap_tmp_processes.ce_id~") COLUMN(NAME=~"rap_tmp_processes.ce_rid~") COLUMN(NAME=~"rap_tmp_processes.control_group_flag~") COLUMN(NAME=~"rap_tmp_processes.stack_id~") COLUMN(NAME=~"rap_tmp_processes.stack_rid~") COLUMN(NAME=~"rap_tmp_processes.stack_group_flag~") COLUMN(NAME=~"rap_tmp_processesDAT* .ce_process_rid~") COLUMN(NAME=~"rap_tmp_processes.stack_process_rid~") COLUMN(NAME=~"rap_tmp_processes.mass_flow1_stream_rid~") COLUMN(NAME=~"rap_tmp_processes.mass_flow2_stream_rid~") COLUMN(NAME=~"rap_tmp_processes.config_num~") COLUMN(NAME=~"rap_tmp_processes.tribal_code~")WHERE( EXP1 =~"rap_tmp_processes.state_fips~" OP =~"=~" EXP2 =~":as_statefips~" LOGIC =~"and~" ) WHERE( EXP1 =~"rap_tmp_processes.county_fips~" OP =~"=~" EXP2 =~":as_countyfips~" LOGIC =~"and~" ) WHERE(DAT*" EXP1 =~"rap_tmp_processes.user_id~" OP =~"=~" EXP2 =~":as_userid~" ) ) ORDER(NAME=~"rap_tmp_processes.state_fips~" ASC=yes ) ORDER(NAME=~"rap_tmp_processes.county_fips~" ASC=yes ) ARG(NAME = ~"as_statefips~" TYPE = string) ARG(NAME = ~"as_countyfips~" TYPE = string) ARG(NAME = ~"as_userid~" TYPE = string) " update="rap_tmp_processes" updatewhere=1 updatekeyinplace=yes arguments=(("as_statefips", string),("as_countyfips", string),("as_userid", string)) ) text(band=header alignment="2" DAT*$text="State Fips" border="0" color="0" x="9" y="8" height="64" width="274" html.valueishtml="0" name=state_fips_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="County Fips" border="0" color="0" x="293" y="8" height="64" width="320" html.valueishtml="0" name=county_fips_t visible="1" font.face="Arial" font.height="-10" font.weight="400" fDAT*&ont.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Site Id" border="0" color="0" x="622" y="8" height="64" width="439" html.valueishtml="0" name=site_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Emission Unit Id" border="0" color="0" x="1070" y="8" heDAT*(ight="64" width="434" html.valueishtml="0" name=emission_unit_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Emission Rel Point Id" border="0" color="0" x="1513" y="8" height="64" width="571" html.valueishtml="0" name=emission_rel_point_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch=DAT*|"2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Process Id" border="0" color="0" x="2094" y="8" height="64" width="283" html.valueishtml="0" name=process_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Scc" border="0" color="0" x="2386" y="8" height="64" width="302" html.valueDAT*,PDW0800pdw+:9````W F$Nnn``DAT*. @P`"DAT*0  state_fips_t$1<  $ 0%  ArialArial$2$-10$400$ 536870912$ 9DAT*2$8$@64$<274% State Fips State Fips"!0`-# $&(+county_fips_t$%@%293$'F@320%)* County Fips County Fips",0`8"DAT*4. /136 site_id_t$0n622$2`439%45Site IdSite Id"70`C-9 :<>Aemission_unit_id_t$;.1070$=_434%?@DAT*6Emission Unit IdEmission Unit Id"B0`N8D EGILemission_rel_point_id_t$FK1513$H};571%JKEmission Rel Point IdEmission Rel Point Id"M0`YCO PRTW process_id_DAT*8t$Q.2094$S>283%UV Process Id Process Id"X0`dNZ []_bscc_t$\ R 2386$^B.302%`aSccScc"c0`oYe fDAT*:hjmscc3_t$gN 2697$i137%klScc3Scc3"n0`zdp qsuxemission_process_desc_t$rn 2843$tw2167%vwEmission Process DescEmission Process Desc"yDAT*<0`o{ |~winter_throughput_pct_t$}J5019$R594%Winter Throughput PctWinter Throughput Pct"0`z spring_throughput_pct_t$DAT*>5623$N590%Spring Throughput PctSpring Throughput Pct"0` summer_throughput_pct_t$QN6222$645%Summer Throughput PctSummer Throughput Pct"0`DAT*@ fall_throughput_pct_t$6875$q517%Fall Throughput PctFall Throughput Pct"0` annual_avg_days_per_week_t$S7401$736DAT*B%Annual Avg Days Per WeekAnnual Avg Days Per Week"0` annual_avg_weeks_per_year_t$8146$754%Annual Avg Weeks Per YearAnnual Avg Weeks Per Year"0` DAT*Dannual_avg_hours_per_day_t$"8910$704%Annual Avg Hours Per DayAnnual Avg Hours Per Day"0` annual_avg_hours_per_year_t$9%9623$722%DAT*FAnnual Avg Hours Per YearAnnual Avg Hours Per Year"0` sulfur_content_t$r(10354$Rw375%Sulfur ContentSulfur Content"0` aDAT*Hsh_content_t$- )10738$HI329% Ash Content Ash Content"0` inventory_year_t$w E+11077$Rw375%Inventory YearInventory Year"0`DAT*J  start_date_t$ ,11461$HI329% Start Date Start Date"0`   end_date_t$ .11799$HI329% End DAT*LDate End Date"0`     device_rid_t$ _ i/12137$HI329% Device Rid Device Rid"0`  process_rid_t$ 012475$DAT*NHI329% Process Rid Process Rid"0`*  !#%(input_stream_rid_t$" 212814$$a443%&'Input Stream RidInput Stream Rid")0`5+ ,DAT*P.03output_stream_rid_t$-V 313266$/l494%12Output Stream RidOutput Stream Rid"40`I*67 :<>@BDGt_1< 8 $9-12$; 16777215$=DAT*R 513769$?4$AL76$C 800%EFUser IdUser Id"H0`T5J7 :K>@MORt_2$Lu 814578$NW398%PQCe IdCe Id"S0`DAT*T_IU7 :V>@XZ]t_3$W :14985$Y1152%[\Ce RidCe Rid"^0`jT`7 :a>@ceht_4$b ?16146$d18%fgControl Group DAT*VFlagControl Group Flag"i0`u_k7 :l>@npst_5$m .?16174$oW398%qr Stack Id Stack Id"t0`jv7 :w>@y{~t_6$x+@16581$zDAT*X1152%|} Stack Rid Stack Rid"0`u7 :>@t_7$)NE17742$18%Stack Group FlagStack Group Flag"0`7 :>@t_DAT*Z8$/iE17769$1152%Ce Process RidCe Process Rid"0`7 :>@t_9$-I18930$1152%Stack Process RidStack Process Rid"0`DAT*\7 :>@t_10$+{N20091$1152%Mass Flow1 Stream RidMass Flow1 Stream Rid"0`7 :>@t_11$)S21253$1152%MassDAT*^ Flow2 Stream RidMass Flow2 Stream Rid"0`7 :>@t_12$'W22414$18% Config Num Config Num"0`7 :>@tribal_code_t$-WDAT*`22441$I73% Tribal Code Tribal Code"0@@\0@( state_fips$ 9$<27DAT*b4& [general] [general]"0@( county_fips$@%293$F@320"0@(DAT*dsite_id$n622$`439"0@(emission_unit_id$.1070$_434"0@DAT*f(emission_rel_point_id$K1513$};571"0@( process_id$.2094$>283"0 DAT*h @ ( scc$  R 2386$ B.302"0@(scc3$N 2697$137"DAT* 0#@ (! Nemission_process_desc$n 2843$w2167""0/$%@') (-,winter_throughput_pct$&J5019DAT*l>283%UV Process Id Process Id"X0`dNZ []_b start_date_t$\E2117$^HI329%`a Start Date Start Date"c0`oYe fhjmDAT*n end_date_t$g 2455$iHI329%kl End Date End Date"n0`zdp qsux start_time_t$rc 2793$tHI329%vw Start Time Start Time"y0`o{DAT*p |~ end_time_t$}; 3131$HI329% End Time End Time"0`z actual_throughput_t$ 3470$i480%Actual ThroughputDAT*rActual Throughput"0` throughput_unit_num_t$bw3959$z.558%Throughput Unit NumThroughput Unit Num"0`  material_t$DAT*t4526$HI329% Material Material"0` inventory_year_t$(4864$Rw375%Inventory YearInventory Year"0` DAT*vinput_stream_rid_t$|5248$a443%Input Stream RidInput Stream Rid"0` t_1< $-12$ 16777215DAT*x$E5701$4$L76$ 800%User IdUser Id"0` tribal_code_t$n6510$I73% Tribal Code Tribal Code"DAT*4 0@@\x( state_fips$ 9$<274& [general] [general]"0DAT*a@XAdA:a@a@a@)`@`@3j@j@Ak@k@Ml@l@am@m@m@@}@@@@@@^@^@a4^o@o@o@o@`7o@pVo@Pmo@`o@o@o@`o@@p@ o@p:o@Vo@pro@o@o@o@o@o@@:o@co@o@`@o@o@DAT*~ishtml="0" name=scc_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Scc3" border="0" color="0" x="2697" y="8" height="64" width="137" html.valueishtml="0" name=scc3_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(bDAT*and=header alignment="2" text="Emission Process Desc" border="0" color="0" x="2843" y="8" height="64" width="2167" html.valueishtml="0" name=emission_process_desc_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Winter Throughput Pct" border="0" color="0" x="5019" y="8" height="64" width="594" html.valueishtml="0" name=winter_throughput_pctDAT*_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Spring Throughput Pct" border="0" color="0" x="5623" y="8" height="64" width="590" html.valueishtml="0" name=spring_throughput_pct_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870DAT*912" ) text(band=header alignment="2" text="Summer Throughput Pct" border="0" color="0" x="6222" y="8" height="64" width="645" html.valueishtml="0" name=summer_throughput_pct_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Fall Throughput Pct" border="0" color="0" x="6875" y="8" height="64" width="517" html.valueishtml="0" name=fall_throuDAT*ghput_pct_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Annual Avg Days Per Week" border="0" color="0" x="7401" y="8" height="64" width="736" html.valueishtml="0" name=annual_avg_days_per_week_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" backgrounDAT*d.color="536870912" ) text(band=header alignment="2" text="Annual Avg Weeks Per Year" border="0" color="0" x="8146" y="8" height="64" width="754" html.valueishtml="0" name=annual_avg_weeks_per_year_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Annual Avg Hours Per Day" border="0" color="0" x="8910" y="8" height="64" width="704" html.valuDAT*eishtml="0" name=annual_avg_hours_per_day_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Annual Avg Hours Per Year" border="0" color="0" x="9623" y="8" height="64" width="722" html.valueishtml="0" name=annual_avg_hours_per_year_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charseDAT*t="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Sulfur Content" border="0" color="0" x="10354" y="8" height="64" width="375" html.valueishtml="0" name=sulfur_content_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Ash Content" border="0" color="0" x="10738" y="8" height="64" width="329" html.vaDAT*lueishtml="0" name=ash_content_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Inventory Year" border="0" color="0" x="11077" y="8" height="64" width="375" html.valueishtml="0" name=inventory_year_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" backgrDAT*ound.color="536870912" ) text(band=header alignment="2" text="Start Date" border="0" color="0" x="11461" y="8" height="64" width="329" html.valueishtml="0" name=start_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="End Date" border="0" color="0" x="11799" y="8" height="64" width="329" html.valueishtml="0" name=end_date_t visible="1" DAT* font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Device Rid" border="0" color="0" x="12137" y="8" height="64" width="329" html.valueishtml="0" name=device_rid_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="DAT*2" text="Process Rid" border="0" color="0" x="12475" y="8" height="64" width="329" html.valueishtml="0" name=process_rid_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Input Stream Rid" border="0" color="0" x="12814" y="8" height="64" width="443" html.valueishtml="0" name=input_stream_rid_t visible="1" font.face="Arial" font.height="-10"DAT* font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Output Stream Rid" border="0" color="0" x="13266" y="8" height="64" width="494" html.valueishtml="0" name=output_stream_rid_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="0" text="User Id" bordDAT*er="0" color="0" x="13769" y="4" height="76" width="800" html.valueishtml="0" name=t_1 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) text(band=header alignment="0" text="Ce Id" border="0" color="0" x="14578" y="4" height="76" width="398" html.valueishtml="0" name=t_2 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charsetDAT*="0" background.mode="2" background.color="16777215" ) text(band=header alignment="0" text="Ce Rid" border="0" color="0" x="14985" y="4" height="76" width="1152" html.valueishtml="0" name=t_3 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) text(band=header alignment="0" text="Control Group Flag" border="0" color="0" x="16146" y="4" height="76" width="18" html.valueishtml="0" naDAT*me=t_4 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) text(band=header alignment="0" text="Stack Id" border="0" color="0" x="16174" y="4" height="76" width="398" html.valueishtml="0" name=t_5 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) text(band=header alignDAT*ment="0" text="Stack Rid" border="0" color="0" x="16581" y="4" height="76" width="1152" html.valueishtml="0" name=t_6 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) text(band=header alignment="0" text="Stack Group Flag" border="0" color="0" x="17742" y="4" height="76" width="18" html.valueishtml="0" name=t_7 visible="1" font.face="Arial" font.height="-12" font.weight="400" foDAT*nt.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) text(band=header alignment="0" text="Ce Process Rid" border="0" color="0" x="17769" y="4" height="76" width="1152" html.valueishtml="0" name=t_8 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) text(band=header alignment="0" text="Stack Process Rid" border="0" color="0" x="18930" y="4"DAT* height="76" width="1152" html.valueishtml="0" name=t_9 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) text(band=header alignment="0" text="Mass Flow1 Stream Rid" border="0" color="0" x="20091" y="4" height="76" width="1152" html.valueishtml="0" name=t_10 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" backgrouDAT*nd.mode="2" background.color="16777215" ) text(band=header alignment="0" text="Mass Flow2 Stream Rid" border="0" color="0" x="21253" y="4" height="76" width="1152" html.valueishtml="0" name=t_11 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) text(band=header alignment="0" text="Config Num" border="0" color="0" x="22414" y="4" height="76" width="18" html.valueishtml="0" name=t_DAT*12 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) text(band=header alignment="0" text="Tribal Code" border="0" color="0" x="22441" y="4" height="76" width="73" html.valueishtml="0" name=tribal_code_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) column(band=deDAT*tail id=1 alignment="0" tabsequence=32766 border="0" color="0" x="9" y="8" height="76" width="274" format="[general]" html.valueishtml="0" name=state_fips visible="1" edit.limit=2 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=2 alignment="0" tabsequence=32766 border="0" colorDAT*="0" x="293" y="8" height="76" width="320" format="[general]" html.valueishtml="0" name=county_fips visible="1" edit.limit=3 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=3 alignment="0" tabsequence=32766 border="0" color="0" x="622" y="8" height="76" width="439" format="[genDAT*eral]" html.valueishtml="0" name=site_id visible="1" edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=4 alignment="0" tabsequence=32766 border="0" color="0" x="1070" y="8" height="76" width="434" format="[general]" html.valueishtml="0" name=emission_unit_id visiblDAT*e="1" edit.limit=6 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=5 alignment="0" tabsequence=32766 border="0" color="0" x="1513" y="8" height="76" width="571" format="[general]" html.valueishtml="0" name=emission_rel_point_id visible="1" edit.limit=6 edit.case=any edit.focusrDAT*ectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=6 alignment="0" tabsequence=32766 border="0" color="0" x="2094" y="8" height="76" width="283" format="[general]" html.valueishtml="0" name=process_id visible="1" edit.limit=6 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edDAT*it.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=7 alignment="0" tabsequence=32766 border="0" color="0" x="2386" y="8" height="76" width="302" format="[general]" html.valueishtml="0" name=scc visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weightDAT*="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=8 alignment="0" tabsequence=32766 border="0" color="0" x="2697" y="8" height="76" width="137" format="[general]" html.valueishtml="0" name=scc3 visible="1" edit.limit=3 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" backgDAT*round.mode="1" background.color="536870912" ) column(band=detail id=9 alignment="0" tabsequence=32766 border="0" color="0" x="2843" y="8" height="76" width="2167" format="[general]" html.valueishtml="0" name=emission_process_desc visible="1" edit.limit=78 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912DAT*o@Aq@q@(\4@o@Pn@Z.n@et    '   v@v@ , n_cst_nei_importnonvisualobjectstructuremailrecipientenvironmentmailfiledescriptionmailmessagedatawindowchildlistviewitemtreeviewitemconnectioninfopowerobjectn_ds_nei_tmp_ctrl_equip_activitiesn_ds_nei_tmp_emis_activitiesn_ds_nei_tmp_emis_period_activitDAT*iesn_ds_nei_tmp_emis_rel_pt_devicesn_ds_nei_tmp_emis_unit_devicesn_ds_nei_tmp_processesn_ds_nei_tmp_sourcesn_ds_nei_import_county_activitiesn_ds_nei_import_state_activitiesn_ds_nei_tmp_sources_grpby_statecountyn_ds_nei_import_conversion_lookup_codesw_imainn_ds_nei_import_rap_actvitiesn_ds_nei_import_rap_sourcesn_ds_nei_import_rap_devicesn_ds_nei_import_rap_processesn_ds_nei_import_rap_streamsn_ds_nei_import_rap_reference_codesn_ds_nei_import_rap_proc_spec_schedulesn_ds_nei_import_DAT*8 " ) column(band=detail id=10 alignment="1" tabsequence=32766 border="0" color="0" x="5019" y="8" height="76" width="594" format="[general]" html.valueishtml="0" name=winter_throughput_pct visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=11 alignment="1"DAT*4 dbname="rap_tmp_sources.scc4" ) column=(type=char(2) update=yes updatewhereclause=yes name=facility_category dbname="rap_tmp_sources.facility_category" ) column=(type=char(4) update=yes updatewhereclause=yes name=sic_primary dbname="rap_tmp_sources.sic_primary" ) column=(type=char(40) update=yes updatewhereclause=yes name=site_description dbname="rap_tmp_sources.site_description" ) column=(type=char(40) update=yes updatewhereclause=yes name=street_line_1 dbname="rap_tmp_sources.street_liDAT*ne_1" ) column=(type=char(30) update=yes updatewhereclause=yes name=street_line_2 dbname="rap_tmp_sources.street_line_2" ) column=(type=char(60) update=yes updatewhereclause=yes name=city dbname="rap_tmp_sources.city" ) column=(type=char(2) update=yes updatewhereclause=yes name=state dbname="rap_tmp_sources.state" ) column=(type=char(14) update=yes updatewhereclause=yes name=zip_code dbname="rap_tmp_sources.zip_code" ) column=(type=char(40) update=yes updatewhereclause=yes name=country dDAT*bname="rap_tmp_sources.country" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=inventory_year dbname="rap_tmp_sources.inventory_year" ) column=(type=char(25) update=yes updatewhereclause=yes name=source_type dbname="rap_tmp_sources.source_type" ) column=(type=char(6) update=yes updatewhereclause=yes name=naics_primary dbname="rap_tmp_sources.naics_primary" ) column=(type=char(3) update=yes updatewhereclause=yes name=tribal_code dbname="rap_tmp_sources.tribal_code" ) coluDAT*mn=(type=char(80) update=yes updatewhereclause=yes name=facility_name dbname="rap_tmp_sources.facility_name" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=start_date dbname="rap_tmp_sources.start_date" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=end_date dbname="rap_tmp_sources.end_date" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=source_rid dbname="rap_tmp_sources.source_rid" ) column=(type=char(30) update=yes updatewhereclause=yesDAT* key=yes name=user_id dbname="rap_tmp_sources.user_id" ) retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"rap_tmp_sources~" ) COLUMN(NAME=~"rap_tmp_sources.state_fips~") COLUMN(NAME=~"rap_tmp_sources.county_fips~") COLUMN(NAME=~"rap_tmp_sources.site_id~") COLUMN(NAME=~"rap_tmp_sources.scc~") COLUMN(NAME=~"rap_tmp_sources.scc4~") COLUMN(NAME=~"rap_tmp_sources.facility_category~") COLUMN(NAME=~"rap_tmp_sources.sic_primary~") COLUMN(NAME=~"rap_tmp_sources.site_description~") COLUMN(NAME=~"rap_tmp_sourDAT*ces.street_line_1~") COLUMN(NAME=~"rap_tmp_sources.street_line_2~") COLUMN(NAME=~"rap_tmp_sources.city~") COLUMN(NAME=~"rap_tmp_sources.state~") COLUMN(NAME=~"rap_tmp_sources.zip_code~") COLUMN(NAME=~"rap_tmp_sources.country~") COLUMN(NAME=~"rap_tmp_sources.inventory_year~") COLUMN(NAME=~"rap_tmp_sources.source_type~") COLUMN(NAME=~"rap_tmp_sources.naics_primary~") COLUMN(NAME=~"rap_tmp_sources.tribal_code~") COLUMN(NAME=~"rap_tmp_sources.facility_name~") COLUMN(NAME=~"rap_tmp_sources.start_date~"DAT*) COLUMN(NAME=~"rap_tmp_sources.end_date~") COLUMN(NAME=~"rap_tmp_sources.source_rid~") COLUMN(NAME=~"rap_tmp_sources.user_id~")WHERE( EXP1 =~"rap_tmp_sources.state_fips~" OP =~"=~" EXP2 =~":as_statefips~" LOGIC =~"and~" ) WHERE( EXP1 =~"rap_tmp_sources.county_fips~" OP =~"=~" EXP2 =~":as_countyfips~" LOGIC =~"and~" ) WHERE( EXP1 =~"rap_tmp_sources.user_id~" OP =~"=~" EXP2 =~":as_userid~" ) ) ORDER(NAME=~"rap_tmp_sources.state_fips~" ASC=yes ) ORDER(NAME=~"rap_tmp_soDAT*urces.county_fips~" ASC=yes ) ARG(NAME = ~"as_statefips~" TYPE = string) ARG(NAME = ~"as_countyfips~" TYPE = string) ARG(NAME = ~"as_userid~" TYPE = string) " update="rap_tmp_sources" updatewhere=0 updatekeyinplace=yes arguments=(("as_statefips", string),("as_countyfips", string),("as_userid", string)) ) text(band=header alignment="2" text="State Fips" border="0" color="0" x="9" y="8" height="64" width="274" html.valueishtml="0" name=state_fips_t visible="1" font.face="Arial" font.height="-10DAT*" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="County Fips" border="0" color="0" x="293" y="8" height="64" width="320" html.valueishtml="0" name=county_fips_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Site Id" border="0" color=DAT*"0" x="622" y="8" height="64" width="439" html.valueishtml="0" name=site_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Scc" border="0" color="0" x="1070" y="8" height="64" width="302" html.valueishtml="0" name=scc_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" backDAT*ground.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Scc4" border="0" color="0" x="1381" y="8" height="64" width="137" html.valueishtml="0" name=scc4_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Facility Category" border="0" color="0" x="1527" y="8" height="64" width="448" html.valueishtml="0" name=faciliDAT*ty_category_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Sic Primary" border="0" color="0" x="1984" y="8" height="64" width="329" html.valueishtml="0" name=sic_primary_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) tDAT*ext(band=header alignment="2" text="Facility Name" border="0" color="0" x="2322" y="8" height="64" width="1399" html.valueishtml="0" name=facility_name_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Site Description" border="0" color="0" x="3730" y="8" height="64" width="1125" html.valueishtml="0" name=site_description_t visible="1" fontDAT*.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Street Line 1" border="0" color="0" x="4864" y="8" height="64" width="850" html.valueishtml="0" name=street_line_1_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="DAT*2" text="Street Line 2" border="0" color="0" x="5723" y="8" height="64" width="850" html.valueishtml="0" name=street_line_2_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="City" border="0" color="0" x="6583" y="8" height="64" width="850" html.valueishtml="0" name=city_t visible="1" font.face="Arial" font.height="-10" font.weight="400" foDAT*nt.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="State" border="0" color="0" x="7442" y="8" height="64" width="142" html.valueishtml="0" name=state_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Zip Code" border="0" color="0" x="7593" y="8" height="64" wiDAT*PDW0800Zpdw+````[0 F$.Znn``DAT*JK @`"DAT*  state_fips_t$1<  $ 0%  ArialArial$2$-10$400$ 536870912$ 9DAT*$8$@64$<274% State Fips State Fips"!0`-# $&(+county_fips_t$%@%293$'F@320%)* County Fips County Fips",0`8"DAT*. /136 site_id_t$0n622$2`439%45Site IdSite Id"70`C-9 :<>Ascc_t$;.1070$=B.302%?@SccSccDAT*"B0`N8D EGILscc4_t$F.e1381$H137%JKScc4Scc4"M0`YCO PRTWfacility_category_t$QN1527$Sb448DAT*%UVFacility CategoryFacility Category"X0`dNZ []_bsic_primary_t$\1984$^HI329%`a Sic Primary Sic Primary"c0`oYe fhjmfacilitDAT*y_name_t$g 2322$i2w1399%klFacility NameFacility Name"n0`zdp qsuxsite_description_t$r03730$te1125%vwSite DescriptionSite Description"y0`oDAT*{ |~street_line_1_t$}(4864$R850%Street Line 1Street Line 1"0`z street_line_2_t$[5723$R850%DAT*Street Line 2Street Line 2"0` city_t$6583$R850%CityCity"0` state_t$\7442$DAT*142%StateState"0`  zip_code_t$}7593$B.302% Zip Code Zip Code"0`  countDAT*ry_t$7904$~@576%CountryCountry"0` inventory_year_t$A)!8489$Rw375%Inventory YearInventory Year"0`DAT* source_type_t$"8873$713% Source Type Source Type"0`  start_date_t$3{%9595$HI329% Start Date StarDAT*t Date"0`  end_date_t$}&9934$HI329% End Date End Date"0`  source_rid_t$ (10272$HIDAT*329% Source Rid Source Rid"0` naics_primary_t< $-12$ 16777215$ r)10610$4$L76$DAT*{2562%Naics PrimaryNaics Primary"0`    tribal_code_t$  +11182$ U389% Tribal Code Tribal Code"0` DAT* user_id_t$ ;-11579$ 800%User IdUser Id"0@@\+ !#%()( state_fips$" DAT*9$$<274&&' [general] [general]"*04,-/%(21 county_fips$.@%293$0F@320"30=+568DAT*%(;:site_id$7n622$9`439"<0F4>?A%(DC scc$@.1070$BB.302"E0O=GDAT*HJ%(MLscc4$I.e1381$K137"N0XFPQS%(VUfacility_category$RN1527$Tb448"WDAT*0aOYZ\%(_^ sic_primary$[1984$]HI329"`0jXbce%(hg2facility_name$d 2322$f2wDAT*1399"i0sakln%(qp(site_description$m03730$oe1125"r0|jtuw% (zystreet_line_1$vDAT* (4864$xR850"{0s}~% (street_line_2$[5723$R850"0|% (DAT* city$6583$R850"0% (state$\7442$142"0DAT*% ( zip_code$}7593$B.302"0%(country$7904$~@576"0DAT*(inventory_year$A)!8489$Rw375& [general] [general]"0%( source_type$"8873$DAT*713"0( start_date$3{%9595$HI329"0( end_dateDAT*$}&9934$HI329"0( source_rid$ (10272$HI329"0 % DAT*naics_primary$ 553648127$ r)10610$0${2562"0%  tribal_code$ +11182$U389DAT*"0% user_id$ ;-11579$ 800"0@IDAT*6@ + 4  @=  @FDAT*dth="302" html.valueishtml="0" name=zip_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Country" border="0" color="0" x="7904" y="8" height="64" width="576" html.valueishtml="0" name=country_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" backgroDAT*und.color="536870912" ) text(band=header alignment="2" text="Inventory Year" border="0" color="0" x="8489" y="8" height="64" width="375" html.valueishtml="0" name=inventory_year_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Source Type" border="0" color="0" x="8873" y="8" height="64" width="713" html.valueishtml="0" name=source_type_t vDAT* isible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Start Date" border="0" color="0" x="9595" y="8" height="64" width="329" html.valueishtml="0" name=start_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header aDAT*"lignment="2" text="End Date" border="0" color="0" x="9934" y="8" height="64" width="329" html.valueishtml="0" name=end_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Source Rid" border="0" color="0" x="10272" y="8" height="64" width="329" html.valueishtml="0" name=source_rid_t visible="1" font.face="Arial" font.height="-10" font.weiDAT*$ght="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="1" text="Naics Primary" border="0" color="0" x="10610" y="4" height="76" width="562" html.valueishtml="0" name=naics_primary_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) text(band=header alignment="0" text="Tribal Code" border="0" color="DAT*&0" x="11182" y="4" height="76" width="389" html.valueishtml="0" name=tribal_code_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) text(band=header alignment="0" text="User Id" border="0" color="0" x="11579" y="4" height="76" width="800" html.valueishtml="0" name=user_id_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.chaDAT*(rset="0" background.mode="2" background.color="16777215" ) column(band=detail id=1 alignment="0" tabsequence=32766 border="0" color="0" x="9" y="8" height="76" width="274" format="[general]" html.valueishtml="0" name=state_fips visible="1" edit.limit=2 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )DAT** column(band=detail id=2 alignment="0" tabsequence=32766 border="0" color="0" x="293" y="8" height="76" width="320" format="[general]" html.valueishtml="0" name=county_fips visible="1" edit.limit=3 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=3 alignment="0" tabsequence=327DAT*,66 border="0" color="0" x="622" y="8" height="76" width="439" format="[general]" html.valueishtml="0" name=site_id visible="1" edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=4 alignment="0" tabsequence=32766 border="0" color="0" x="1070" y="8" height="76" width="DAT*.302" format="[general]" html.valueishtml="0" name=scc visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=5 alignment="0" tabsequence=32766 border="0" color="0" x="1381" y="8" height="76" width="137" format="[general]" html.valueishtml="0" name=scc4 visibDAT*0le="1" edit.limit=4 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=6 alignment="0" tabsequence=32766 border="0" color="0" x="1527" y="8" height="76" width="448" format="[general]" html.valueishtml="0" name=facility_category visible="1" edit.limit=2 edit.case=any edit.focusrectDAT*2angle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=7 alignment="1" tabsequence=32766 border="0" color="0" x="1984" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=sic_primary visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.nilisnull=yes edit.aDAT*4utohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=19 alignment="0" tabsequence=32766 border="0" color="0" x="2322" y="8" height="76" width="1399" format="[general]" html.valueishtml="0" name=facility_name visible="1" edit.limit=50 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" DAT*font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=8 alignment="0" tabsequence=32766 border="0" color="0" x="3730" y="8" height="76" width="1125" format="[general]" html.valueishtml="0" name=site_description visible="1" edit.limit=40 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.familDAT*8@O@X@j)@s )@!|  @$"# =@'%& @*()DAT*: @-+,)@0./ @312@645@978@<a:;Q@?=> @B@ADAT*< @ECD @HFG:as_statefips:as_countyfips :as_userid as_statefipsas_countyfips as_useridrap_tmp_sources state_fipsrap_tmp_sources.state_fips county_fipsrap_tmp_sources.county_fips+site_iDAT* drap_tmp_sources.site_id4sccrap_tmp_sources.scc=scc4rap_tmp_sources.scc4Ffacility_category"rap_tmp_sources.facility_categoryO sic_primaryrap_tmp_sources.sic_primaryXsite_description!rap_tmp_sources.site_descriptionjstreet_line_1rap_tmp_sources.street_line_1sstreet_line_2rap_tmp_sources.street_linDAT*^forward global type n_ds_nei_tmp_sources from n_ds_nei_import_temp_base end type end forward global type n_ds_nei_tmp_sources from n_ds_nei_import_temp_base end type global n_ds_nei_tmp_sources n_ds_nei_tmp_sources forward prototypes public function double of_getsourcerid (string as_scc) end prototypes public function double of_getsourcerid (string as_scc); double ld_sourcerid = 0 if this.of_find("scc = '" + as_scc + "' and not isnull(source_rid)") then ld_sourcerid = doDAT*BObject used for importing NEI dataforward global type n_cst_nei_import from nonvisualobject end type end forward global type n_cst_nei_import from nonvisualobject end type global n_cst_nei_import n_cst_nei_import type variables //temp tables n_ds_nei_tmp_ctrl_equip_activities ids_ctrlequipactivities n_ds_nei_tmp_emis_activities ids_emisactivities n_ds_nei_tmp_emis_period_activities ids_emisperiodactivities n_ds_nei_tmp_emis_rel_pt_devices ids_emisrelptdevices n_ds_nei_tmp_emis_uniDAT*Dt_devices ids_emisunitdevices n_ds_nei_tmp_processes ids_processes n_ds_nei_tmp_sources ids_sources //cache data n_ds_nei_import_county_activities ids_countyactivities n_ds_nei_import_state_activities ids_stateactivities n_ds_nei_tmp_sources_grpby_statecounty ids_sourcesgrpbystatecounty n_ds_nei_import_conversion_lookup_codes ids_conversionlookupcodes //other string is_sourcetype string is_statefips string is_countyfips string is_tribalcode long il_updates, il_inserts, il_discarDAT*ds string is_errormsg double id_staterid, id_countyrid, id_cityrid string is_logfilename long il_header //used with dw_header //import window w_imain iw_imain //rapids tables n_ds_nei_import_rap_actvities ids_rapactivities n_ds_nei_import_rap_sources ids_rapsources n_ds_nei_import_rap_devices ids_rapdevices n_ds_nei_import_rap_processes ids_rapprocesses n_ds_nei_import_rap_streams ids_rapstreams n_ds_nei_import_rap_reference_codes ids_raprefcodes n_ds_nei_import_rap_proc_spec_schDAT*Hrelease 8; datawindow(units=0 timer_interval=0 color=16777215 processing=1 HTMLDW=no print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.prompt=no print.buttons=no print.preview.buttons=no grid.lines=0 ) header(height=80 color="536870912" ) summary(height=0 color="536870912" ) footer(height=0 color="536870912" ) detail(height=92 color="536870912" ) table(cDAT*Jolumn=(type=char(2) updatewhereclause=yes name=state_fips dbname="rap_tmp_sources.state_fips" ) column=(type=char(3) updatewhereclause=yes name=county_fips dbname="rap_tmp_sources.county_fips" ) column=(type=char(3) updatewhereclause=yes name=tribal_code dbname="rap_tmp_sources.tribal_code" ) retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"rap_tmp_sources~" ) COLUMN(NAME=~"rap_tmp_sources.state_fips~") COLUMN(NAME=~"rap_tmp_sources.county_fips~") COLUMN(NAME=~"rap_tmp_sources.tribal_code~")WHEDAT*LRE( EXP1 =~"rap_tmp_sources.user_id~" OP =~"=~" EXP2 =~":as_userid~" ) GROUP(NAME=~"rap_tmp_sources.state_fips~") GROUP(NAME=~"rap_tmp_sources.county_fips~") GROUP(NAME=~"rap_tmp_sources.tribal_code~")) ORDER(NAME=~"rap_tmp_sources.state_fips~" ASC=yes ) ORDER(NAME=~"rap_tmp_sources.county_fips~" ASC=yes ) ORDER(NAME=~"rap_tmp_sources.tribal_code~" ASC=yes ) ARG(NAME = ~"as_userid~" TYPE = string) " arguments=(("as_userid", string)) ) text(band=header alignment="2" text="State Fips" boDAT*Nrder="0" color="0" x="9" y="8" height="64" width="274" html.valueishtml="0" name=state_fips_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="County Fips" border="0" color="0" x="293" y="8" height="64" width="320" html.valueishtml="0" name=county_fips_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.DAT*Ppitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=1 alignment="0" tabsequence=32766 border="0" color="0" x="9" y="8" height="76" width="274" format="[general]" html.valueishtml="0" name=state_fips visible="1" edit.limit=2 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.DAT*ncolor="536870912" ) column(band=detail id=2 alignment="0" tabsequence=32766 border="0" color="0" x="293" y="8" height="76" width="320" format="[general]" html.valueishtml="0" name=county_fips visible="1" edit.limit=3 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=3 alignment=DAT*TPDW0800pdw+dABc```` F$nn``DAT*Vst @P-`"DAT*X  state_fips_t$1<  $ 0%  ArialArial$2$-10$400$ 536870912$ 9DAT*Z$8$@64$<274% State Fips State Fips"!0`-# $&(+county_fips_t$%@%293$'F@320%)* County Fips County Fips",0`"DAT*\./ 2468:<?tribal_code_t< 0 $1-12$3 16777215$5n622$74$9L76$;I73%=> Tribal Code Tribal Code"@0DAT*@@\CXODBE8GI(ML state_fips$F 9$H<274&JK [general] [general]"N0XCPBDAT*`uble(this.of_getdata("source_rid")) end if return ld_sourceRid end function on n_ds_nei_tmp_sources.create call datastore::create TriggerEvent( this, "constructor" ) end on on n_ds_nei_tmp_sources.destroy call datastore::destroy TriggerEvent( this, "destructor" ) end on event constructor;//set the file extension and data source this.of_setDataType("txt", "d_nei_rap_tmp_sources") //override the default name //this.of_setFileName("ds_tmp_sources") //set the file descripDAT*tion this.of_setFileDescription("rap_tmp_sources") //override the default save as option of no headings this.of_setFileHeadings(true) end event DAT*dglobal type f_dlookup from function_object end type forward prototypes global function any f_dlookup (string as_returndatacolumn, string as_table, string as_condition) end prototypes global function any f_dlookup (string as_returndatacolumn, string as_table, string as_condition);//******************************************************************************** // // Object: f_dlookup ( string as_refcolumn, string as_table, string as_condition ) returns any // Function: f_dLookDAT*nup // Access: public // Arguments: string as_returndatacolumn // string as_table // string as_condition // Returns: any -- Returns the value of the data column name // Description: This is a Domain Lookup function where you give Column Name for // the data returned from the table and condition // //******************************************************************************** // Revision History // Date Name Revision //----------------------------------DAT*hforward global type n_ds_nei_tmp_sources_grpby_statecounty from n_ds_nei_import_temp_base end type end forward global type n_ds_nei_tmp_sources_grpby_statecounty from n_ds_nei_import_temp_base end type global n_ds_nei_tmp_sources_grpby_statecounty n_ds_nei_tmp_sources_grpby_statecounty on n_ds_nei_tmp_sources_grpby_statecounty.create call super::create end on on n_ds_nei_tmp_sources_grpby_statecounty.destroy call super::destroy end on event constructor;call super::constructor;DAT*t//set the file extension and data source this.of_setDataType("txt", "d_nei_rap_tmp_sources_grpby_statecounty") //override the default name //this.of_setFileName("ds_tmp_sources") //override the default save as option of no headings this.of_setFileHeadings(true) end event event ue_populate;call super::ue_populate;long ll_rc string ls_null, ls_filter setnull(ls_null) ll_rc = this.retrieve(gs_user_id) if ll_rc < 0 then //error data populated by dbError event signalError(il_erroDAT*lo@AdA"o@o@7@@@ a@V@@aI@I@l^@^@a@p@ LIq@q@ 0 n_ds_nei_import_temp_basen_ds_conversion_basedwobjectn_cst_conversion_basefileaccesssaveastypepowerobject?te\+Șn_cst_nei_importct`@DAT*vbXȐw_imaings_user_idtransactionsqlca|0X2- snv_importn_ds_nei_import_temp_base(   al_rowas_actionaa_data+ue_scanrow+ue_populate+ue_scanbegin+ue_scanend+ue_populateendas_sortof_sortas_filterof_filteras_findof_findof_findnextof_getcountas_columnof_getdataof_populateof_resetofDAT*p---------------------------------------------- // 08/13/2001 Michael Colombo Initial Version //******************************************************************************** string ls_sql string ls_type long ll_return long ll_sqldbcode string ls_sqlError, ls_newsyntax datastore lds_dynamic any la_null, la_data //la_null = '' //la_data = la_null lds_dynamic = create datastore if isnull(trim(as_returnDataColumn)) or trim(as_returnDataColumn) = '' & or isnull(trim(as_tablDAT*re)) or trim(as_table) = '' & or isnull(trim(as_condition)) or trim(as_condition) = '' then return la_null end if ls_sql = "select " + as_returnDataColumn + & " from " + as_table + & " where " + as_condition if isnull(ls_sql) or ls_sql = '' then la_data= la_null else ls_newsyntax = SQLCA.syntaxFromSQL(ls_sql, "", ls_sqlError) if len(ls_sqlError) > 0 then messagebox('Error - Invalid data type', 'Please enter the correct data type') //signalerror(-1, ls_sqlerror) DAT* else ls_sqlError = "" lds_dynamic.create(ls_newsyntax, ls_sqlError) if len(ls_sqlError) > 0 then signalerror(-1, ls_sqlerror) else lds_dynamic.settransobject(SQLCA) ll_return = lds_dynamic.retrieve() if ll_return > 0 then la_data = lds_dynamic.object.data[1,1] else la_data = la_null end if end if end if end if destroy(lds_dynamic) return la_data end function DAT*rr, is_error) end if //ll_rc = this.of_scan("set_process_information", ls_null) return ll_rc end event DAT*_setdataas_dataobjectof_setdataobjectof_scanof_scanreverseab_lockof_setfilterlockof_setsortlockanv_importof_registerimportof_setneiimport+create+destroy4x LLSALQdLStBSBASIiorLSABBC QCn_cst_nei_import.8HDAT*zo@)b?dA *o@o@D@@M a@c@@nI@I@ya@^@^@o@o@o@v@v@ 0 n_ds_nei_import_county_activitiesn_ds_nei_import_temp_basedwobjectn_cst_conversion_basefileaccesssaveastypen_cst_nei_importpowerobject?ho޴ho޴DAT*Hhodatastoren_ds_conversion_basemessage8`2* n_ds_nei_import_county_activities C of_getcountyrid+create+destroy+constructor+ue_populate DQL x _initsrcn_ds_nei_import_temp_basen_ds_nei_import_county_activitiesdwobjectn_cst_conversion_basefileaccesssaveastypen_cst_nei_imDAT*~o@)b?dA )o@o@C@@L a@b@@mI@I@xa@^@^@8o@o@Bo@Wv@v@W _ n_ds_nei_import_state_activitiesn_ds_nei_import_temp_basedwobjectn_cst_conversion_basefileaccesssaveastypen_cst_nei_importpowerobject?P  P  DAT*datastoren_ds_conversion_basemessage2) n_ds_nei_import_state_activities B of_getstaterid+create+destroy+constructor+ue_populate DQL x _initsrcn_ds_nei_import_temp_basen_ds_nei_import_state_activitiesdwobjectn_cst_conversion_basefileaccesssaveastypen_cst_nei_importpowerobjectdatastoren_ds_conversion_basemessage)@DAT*o@yAdA +o@to@E@@aN a@d@@qoI@I@za@^@^@o@v@v@aow 0 n_ds_nei_tmp_ctrl_equip_activitiesn_ds_nei_import_temp_basedwobjectn_cst_conversion_basefileaccesssaveastypen_cst_nei_importpowerobject?so0܂0܂DAT*hn0n_ds_conversion_basemessage<d2+ n_ds_nei_tmp_ctrl_equip_activities K +create+destroy+constructoral_rowas_actionaa_data+ue_scanrow5 QL&-7LLSA  x _initsrcn_ds_nei_import_temp_basen_ds_nei_tmp_ctrl_equip_activitiesdwobjectn_cst_conversion_DAT*o@ d=hnn_ds_conversion_basemessage8`2' n_ds_nei_tmp_emis_unit_devices K +create+destroy+constructoral_rowas_actionaa_data+ue_scanrow5 QL&-7LLSA  x _initsrcn_ds_nei_import_temp_basen_ds_nei_tmp_emis_unit_devicesdwobjectn_cst_conversion_basefileaccDAT*forward global type n_ds_nei_tmp_processes from n_ds_nei_import_temp_base end type end forward global type n_ds_nei_tmp_processes from n_ds_nei_import_temp_base end type global n_ds_nei_tmp_processes n_ds_nei_tmp_processes type variables string is_euid string is_processid string is_primarydevicetypecd string is_secondarydevicetypecd string is_findstring string is_sortstring string is_emissionrelptid string is_ceid string is_stackid string is_confignum string is_tribal_code //DAT* 1/27/2005 SJO end variables on n_ds_nei_tmp_processes.create call super::create end on on n_ds_nei_tmp_processes.destroy call super::destroy end on event constructor;call super::constructor;//set the file extension and data source this.of_setDataType("txt", "d_nei_rap_tmp_processes") //override the default name //this.of_setFileName("ds_Tmp_ctr_equip_activities") //set the file description this.of_setFileDescription("rap_tmp_processes") //override the default save as oDAT*o@pAdA o@to@7@@!@ a@aV@@aI@I@la@a}^@^@G,o@o@6o@Kv@v@K S n_ds_nei_tmp_sourcesn_ds_nei_import_temp_basedwobjectn_cst_conversion_basefileaccesssaveastypen_cst_nei_importpowerobject?pδδdatastoren_DAT* ds_conversion_basemessage2 n_ds_nei_tmp_sources = as_sccof_getsourcerid+create+destroy+constructor DSQL x _initsrcn_ds_nei_import_temp_basen_ds_nei_tmp_sourcesdwobjectn_cst_conversion_basefileaccesssaveastypen_cst_nei_importpowerobjectdatastoren_ds_conversion_basemessage droceim@evic+_sdDAT*o@)b?dA $o@o@4@@= a@S@@^I@I@i^@^@o@o@" d_ds_nei_import_rapids_basen_ds_cache_basedwobjectn_cst_conversion_basefileaccesssaveastypepowerobject?nd: d: datastorex2$ d_ds_nei_import_DAT* rapids_base  +create+destroy Q x _initsrcn_ds_cache_based_ds_nei_import_rapids_basedwobjectn_cst_conversion_basefileaccesssaveastypepowerobjectdatastore8%z@`!nX=@(F@\@g@r@H~@ A(DAT*o@oAdA $o@o@@@@I a@_@@jI@I@u^@^@$o@9v@v@9 Ao@o@AK n_ds_nei_import_rap_sourcesd_ds_nei_import_rapids_basedwobjectn_cst_conversion_basefileaccesssaveastypepowerobject?r e  e n_ds_conversion_basemessagedatDAT* astore2$ n_ds_nei_import_rap_sources  & +constructor+create+destroy LQ x _initsrcd_ds_nei_import_rapids_basen_ds_nei_import_rap_sourcesdwobjectn_cst_conversion_basefileaccesssaveastypepowerobjectn_ds_conversion_basemessagedatastore rcs_ca_d@i_im-s_dwoIt_@ersiRle@ssshpo@bjecDAT*o@)b?dA $o@o@@@@I a@_@@jI@I@u^@^@to@v@v@ae o@o@0 n_ds_nei_import_rap_devicesd_ds_nei_import_rapids_basedwobjectn_cst_conversion_basefileaccesssaveastypepowerobject?䇵䇵0DAT* n_ds_conversion_basemessagedatastore$L2$ n_ds_nei_import_rap_devices & +constructor+create+destroy LQ x _initsrcd_ds_nei_import_rapids_basen_ds_nei_import_rap_devicesdwobjectn_cst_conversion_basefileaccesssaveastypepowerobjectn_ds_conversion_basemessagedatastore rcs_neDAT*o@)b?eA &o@o@B@@K a@a@@lI@I@w^@^@(o@=v@v@= Eo@o@aO n_ds_nei_import_rap_processesd_ds_nei_import_rapids_basedwobjectn_cst_conversion_basefileaccesssaveastypepowerobject?H ȕH ȕn_ds_conversion_basemessageDAT* datastore2& n_ds_nei_import_rap_processes  & +constructor+create+destroy LQ x _initsrcd_ds_nei_import_rapids_basen_ds_nei_import_rap_processesdwobjectn_cst_conversion_basefileaccesssaveastypepowerobjectn_ds_conversion_basemessagedatastore @-K@T@j@DAT*o@)b?eA $o@o@@@@I a@_@@jI@I@u^@^@$o@9v@v@9 Ao@o@K n_ds_nei_import_rap_streamsd_ds_nei_import_rapids_basedwobjectn_cst_conversion_basefileaccesssaveastypepowerobject?oǴ$Ǵ$n_ds_conversion_basemessagedatDAT* astore2$ n_ds_nei_import_rap_streams  & +constructor+create+destroy LQ x _initsrcd_ds_nei_import_rapids_basen_ds_nei_import_rap_streamsdwobjectn_cst_conversion_basefileaccesssaveastypepowerobjectn_ds_conversion_basemessagedatastore @-I@R@h@DAT*o@)b?eA &o@o@B@@K a@a@@lI@I@w^@^@(o@=v@v@= Eo@o@O n_ds_nei_import_rap_actvitiesd_ds_nei_import_rapids_basedwobjectn_cst_conversion_basefileaccesssaveastypepowerobject?objp(p(n_ds_conversion_basemessageDAT* datastore2& n_ds_nei_import_rap_actvities  & +constructor+create+destroy LQ x _initsrcd_ds_nei_import_rapids_basen_ds_nei_import_rap_actvitiesdwobjectn_cst_conversion_basefileaccesssaveastypepowerobjectn_ds_conversion_basemessagedatastore @-K@T@j@DAT*o@)b?eA ,o@o@F@@O a@e@@pI@I@{a@^@^@<o@o@Fo@`[v@v@a[ec ac n_ds_nei_import_rap_reference_codesn_ds_nei_import_temp_basedwobjectn_cst_conversion_basefileaccesssaveastypen_cst_nei_importpowerobject?baCCDAT* datastoren_ds_conversion_basemessage2, n_ds_nei_import_rap_reference_codes 3 +create+destroy+constructor+ue_populate QL x _initsrcn_ds_nei_import_temp_basen_ds_nei_import_rap_reference_codesdwobjectn_cst_conversion_basefileaccesssaveastypen_cst_nei_importpowerobjectdatastoren_ds_conversion_basemessage @DAT*_@)b?eA_@_@t_@a,`@`@q6j@j@Dk@k@Pl@l@dm@m@p@@@@@@@@^@^@  n@n@u@u@ f_parserecordstringfunction_objectstructuremailrecipientenvironmentmailfiledescriptionmailmessagedatawindowchildlistviewitemtreeviewitemconnectioninfopowerobjectdatawindowextobject2 7 adw_objectas_recordstringf_parserecordstDAT*forward global type n_ds_nei_import_conversion_lookup_codes from n_ds_nei_cache_base end type end forward global type n_ds_nei_import_conversion_lookup_codes from n_ds_nei_cache_base end type global n_ds_nei_import_conversion_lookup_codes n_ds_nei_import_conversion_lookup_codes type variables //retrieval arguments string is_rapidsFieldName string is_rapidsValueName[] end variables forward prototypes public function integer of_populate (string as_rapidsfieldname, string as_rapiDAT*dsValueName[]) public function boolean of_findneivalue (string as_rapidsfieldname, string as_rapidsvaluename, ref string as_neivalue1) public function boolean of_findrapidsvalue (string as_rapidsfieldname, string as_systemvaluename1, ref string as_rapidsvaluename) end prototypes public function integer of_populate (string as_rapidsfieldname, string as_rapidsValueName[]);//set values for retrieval arguments and call ancestor of_populate() ue_populate string ls_empty[] is_rapidsFieldNaDAT* ring/  SCdatawindow.S x function_objectf_parserecordstringstructuremailrecipientenvironmentmailfiledescriptionmailmessagedatawindowchildlistviewitemtreeviewitemconnectioninfopowerobjectdatawindowextobject rc@s_neses_ne,on@ion_6es@bjecDnv@on_bPce@aveadt_@expopch@sepn@conv e@age h@DAT*o@)b?eA *o@o@F@@O a@e@@pI@I@{^@^@,o@Av@v@A Io@o@S n_ds_nei_import_rap_group_membersd_ds_nei_import_rapids_basedwobjectn_cst_conversion_basefileaccesssaveastypepowerobject?tem h hn_ds_conversion_basemesDAT* sagedatastore2* n_ds_nei_import_rap_group_members  & +constructor+create+destroy LQ x _initsrcd_ds_nei_import_rapids_basen_ds_nei_import_rap_group_membersdwobjectn_cst_conversion_basefileaccesssaveastypepowerobjectn_ds_conversion_basemessagedatastore @-O@X@DAT*o@)b?eA (o@o@D@@M a@c@@nI@I@y^@^@(o@=v@v@= Eo@o@O n_ds_nei_import_rap_connectionsd_ds_nei_import_rapids_basedwobjectn_cst_conversion_basefileaccesssaveastypepowerobject?pn_ds_conversion_basemessageDAT*forward global type n_ds_nei_import_rap_group_members from d_ds_nei_import_rapids_base end type end forward global type n_ds_nei_import_rap_group_members from d_ds_nei_import_rapids_base end type global n_ds_nei_import_rap_group_members n_ds_nei_import_rap_group_members event constructor;call super::constructor;//set the file extension and data source this.of_setDataType("txt", "d_nei_import_rap_group_members") //override the default name //this.of_setFileName("ds_tmp_emis_rel_pt_dDAT*evices") //set the file description this.of_setFileDescription("rap_group_members") //override the default save as option of no headings this.of_setFileHeadings(true) end event on n_ds_nei_import_rap_group_members.create call datastore::create TriggerEvent( this, "constructor" ) end on on n_ds_nei_import_rap_group_members.destroy call datastore::destroy TriggerEvent( this, "destructor" ) end on DAT* datastore2( n_ds_nei_import_rap_connections  & +constructor+create+destroy LQ x _initsrcd_ds_nei_import_rapids_basen_ds_nei_import_rap_connectionsdwobjectn_cst_conversion_basefileaccesssaveastypepowerobjectn_ds_conversion_basemessagedatastore @-M@V@lDAT*o@)b?eA ,o@o@H@@Q a@g@@rI@I@}^@^@,o@Av@v@A Io@o@S n_ds_nei_import_rap_location_groupsd_ds_nei_import_rapids_basedwobjectn_cst_conversion_basefileaccesssaveastypepowerobject?cŵŵn_ds_conversion_basemesDAT*forward global type n_ds_nei_import_rap_location_coordinates from d_ds_nei_import_rapids_base end type end forward global type n_ds_nei_import_rap_location_coordinates from d_ds_nei_import_rapids_base end type global n_ds_nei_import_rap_location_coordinates n_ds_nei_import_rap_location_coordinates event constructor;call super::constructor;//set the file extension and data source this.of_setDataType("txt", "d_nei_import_rap_location_coordinates") //override the default name //this.oDAT*f_setFileName("ds_tmp_emis_rel_pt_devices") //set the file description this.of_setFileDescription("rap_location_coordinates") //override the default save as option of no headings this.of_setFileHeadings(true) end event on n_ds_nei_import_rap_location_coordinates.create call datastore::create TriggerEvent( this, "constructor" ) end on on n_ds_nei_import_rap_location_coordinates.destroy call datastore::destroy TriggerEvent( this, "destructor" ) end on DAT* sagedatastore2, n_ds_nei_import_rap_location_groups  & +constructor+create+destroy LQ x _initsrcd_ds_nei_import_rapids_basen_ds_nei_import_rap_location_groupsdwobjectn_cst_conversion_basefileaccesssaveastypepowerobjectn_ds_conversion_basemessagedatastore @-Q@Z@DAT*_@)b?eA _@_@T_@a.`@`@q8j@j@aFk@k@qRl@l@Qfm@m@!r@@q@@@@a@@^@^@$ f_stringglobalreplacefunction_objectstructuremailrecipientenvironmentmailfiledescriptionmailmessagedatawindowchildlistviewitemtreeviewitemconnectioninfopowerobject2 D as_sourceas_oldas_newab_ignorecasef_stringglobalreplace> DAT*  SSSSB x function_objectf_stringglobalreplacestructuremailrecipientenvironmentmailfiledescriptionmailmessagedatawindowchildlistviewitemtreeviewitemconnectioninfopowerobject@ .@8@F@R@f@r@@3 @ @ @DAT*_@)b?eA _@_@_@a+`@`@5j@j@Ck@k@Ol@l@cm@m@o@@@@@@@@A^@^@qryjt f_countoccurrencesfunction_objectstructuremailrecipientenvironmentmailfiledescriptionmailmessagedatawindowchildlistviewitemtreeviewitemconnectioninfopowerobject2 = as_sourceas_targetab_ignorecasef_countoccurrences1 DAT*forward global type n_ds_nei_import_county_activities from n_ds_nei_import_temp_base end type end forward global type n_ds_nei_import_county_activities from n_ds_nei_import_temp_base end type global n_ds_nei_import_county_activities n_ds_nei_import_county_activities type variables double id_staterid end variables forward prototypes public function double of_getcountyrid () end prototypes public function double of_getcountyrid ();//returns the county rid associated with the couDAT*nty fips if this.rowcount() > 0 then return this.object.rid[1] end if return 0 end function on n_ds_nei_import_county_activities.create call datastore::create TriggerEvent( this, "constructor" ) end on on n_ds_nei_import_county_activities.destroy call datastore::destroy TriggerEvent( this, "destructor" ) end on event constructor;call super::constructor;//set the file extension and data source this.of_setDataType("txt", "d_nei_dataset_county_activities") //override theDAT* default name //this.of_setFileName("ds_county_activities") //override the default save as option of no headings this.of_setFileHeadings(true) end event event ue_populate;long ll_rc string ls_null, ls_filter setnull(ls_null) ll_rc = this.retrieve(is_countyfips, id_staterid) if ll_rc < 0 then //error data populated by dbError event signalError(il_error, is_error) end if //ll_rc = this.of_scan("set_process_information", ls_null) return ll_rc end event DAT*forward global type n_ds_nei_import_state_activities from n_ds_nei_import_temp_base end type end forward global type n_ds_nei_import_state_activities from n_ds_nei_import_temp_base end type global n_ds_nei_import_state_activities n_ds_nei_import_state_activities forward prototypes public function double of_getstaterid () end prototypes public function double of_getstaterid ();//returns the county rid associated with the county fips if this.rowcount() > 0 then return this.objectDAT*.rid[1] end if return 0 end function on n_ds_nei_import_state_activities.create call datastore::create TriggerEvent( this, "constructor" ) end on on n_ds_nei_import_state_activities.destroy call datastore::destroy TriggerEvent( this, "destructor" ) end on event constructor;call super::constructor;//set the file extension and data source this.of_setDataType("txt", "d_nei_dataset_state_activities") //override the default name //this.of_setFileName("ds_state_activities") DAT* //override the default save as option of no headings this.of_setFileHeadings(true) end event event ue_populate;long ll_rc string ls_null, ls_filter setnull(ls_null) ll_rc = this.retrieve(is_statefips) if ll_rc < 0 then //error data populated by dbError event signalError(il_error, is_error) end if //ll_rc = this.of_scan("set_process_information", ls_null) return ll_rc end event DAT* LSSB x function_objectf_countoccurrencesstructuremailrecipientenvironmentmailfiledescriptionmailmessagedatawindowchildlistviewitemtreeviewitemconnectioninfopowerobject on@ectobplac+e@reci5ro@tmaCri@nmaOda@ndowcvi@emtom@ectier@ct @ @ @ DAT*o@)b?eA 0o@o@L@@U a@k@@vI@I@^@^@0o@Ev@v@E Mo@o@W n_ds_nei_import_rap_proc_spec_schedulesd_ds_nei_import_rapids_basedwobjectn_cst_conversion_basefileaccesssaveastypepowerobject?yϽϽn_ds_conversion_baseDAT* messagedatastore20 n_ds_nei_import_rap_proc_spec_schedules & +constructor+create+destroy LQ x _initsrcd_ds_nei_import_rapids_basen_ds_nei_import_rap_proc_spec_schedulesdwobjectn_cst_conversion_basefileaccesssaveastypepowerobjectn_ds_conversion_basemessagedatastoreaq@j@-k@PU@m@^DAT*o@)b?eA 1o@o@M@@V a@l@@wI@I@^@^@0o@Ev@v@E Mo@o@W n_ds_nei_import_rap_location_coordinatesd_ds_nei_import_rapids_basedwobjectn_cst_conversion_basefileaccesssaveastypepowerobject?  n_ds_conversion_baseDAT* messagedatastore21 n_ds_nei_import_rap_location_coordinates  & +constructor+create+destroy LQ x _initsrcd_ds_nei_import_rapids_basen_ds_nei_import_rap_location_coordinatesdwobjectn_cst_conversion_basefileaccesssaveastypepowerobjectn_ds_conversion_basemessagedatastore @-V@_DAT*o@`wA-A /o@do@aI@@qR a@ah@@asI@I@a~a@a^@^@asp< n_ds_nei_tmp_sources_grpby_statecountyn_ds_nei_import_temp_basedwobjectn_cst_conversion_basefileaccesssaveastypen_cst_nei_importpowerobjecteHH2/DAT*  n_ds_nei_tmp_sources_grpby_statecounty   x _initsrcn_ds_nei_import_temp_basen_ds_nei_tmp_sources_grpby_statecountydwobjectn_cst_conversion_basefileaccesssaveastypen_cst_nei_importpowerobject rcvisu_d@i_im+idkupRma@cipi[nm@mailqpt@mail|ta@owchew@treco@ DAT*o@;AeA 0o@o@D@@M a@c@@nI@I@ya@o@^@^@So@@v@v@qry t8 n_ds_nei_import_conversion_lookup_codesn_ds_nei_cache_basedwobjectn_cst_conversion_basefileaccesssaveastypen_cst_nei_exportn_ds_cache_basepowerobject? |r |rDAT* Ȭ Ȭn_ds_conversion_basemessage Hp20 n_ds_nei_import_conversion_lookup_codes  as_rapidsfieldnameeas_rapidsvaluenameof_populateas_neivalue1of_findneivalueas_systemvaluename1of_findrapidsvalue_ +create+destroy+constructor+ueDAT* release 6; datawindow(units=0 timer_interval=0 color=16777215 processing=1 print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.prompt=no print.buttons=no print.preview.buttons=no grid.lines=0 ) header(height=68 color="536870912" ) summary(height=0 color="536870912" ) footer(height=0 color="536870912" ) detail(height=80 color="536870912" ) table(column=(typDAT*rap_group_membersn_ds_nei_import_rap_connectionsn_ds_nei_import_rap_location_coordinatesn_ds_nei_import_rap_location_groupsn_ds_nei_import_temp_basestr_ierrord_ds_nei_import_rapids_basedatastoregs_user_idtransactionsqlcadelete from rap_tmp_sources where user_id =' ' +. bAf_sqlcheckdelete from rap_tmp_emis_unit_devices where user_id =' ' 58gbAdelete from rap_tmp_emis_rel_pDAT* t_devices where user_id =' ' 7:bAdelete from rap_tmp_processes where user_id =' ' -0teXbAdelete from rap_tmp_cntrl_equip_activities where user_id =' ' :=bAdelete from rap_tmp_emis_period_activities where user_id =' ' :=DbAdelete from rap_tmp_emis_activities where user_id ='DAT*o@qhAdA o@o@9@@B a@X@@cI@I@na@^@^@o@v@v@ 0 n_ds_nei_tmp_processesn_ds_nei_import_temp_basedwobjectn_cst_conversion_basefileaccesssaveastypen_cst_nei_importpowerobject?por>l>lDAT* ?ˑn_ds_conversion_basemessage0X2 n_ds_nei_tmp_processes K +create+destroy+constructoral_rowas_actionaa_data+ue_scanrow5 QL&-7LLSA  x _initsrcn_ds_nei_import_temp_basen_ds_nei_tmp_processesdwobjectn_cst_conversion_basefileaccesssaveastypen_cst_neiDAT*_@)b?eA_@_@_@"`@`@,j@j@:k@k@Fl@l@Zm@m@f@@v@@@@@@A^@^@qryjto@o@aq@q@alo r f_dlookupfunction_objectstructuremailrecipientenvironmentmailfiledescriptionmailmessagedatawindowchildlistviewitemtreeviewitemconnectioninfopowerobjectdatastoretransactionsqlca2 < as_returndatacolumnas_tableas_cDAT* onditionf_dlookup1 %ASSS x function_objectf_dlookupstructuremailrecipientenvironmentmailfiledescriptionmailmessagedatawindowchildlistviewitemtreeviewitemconnectioninfopowerobjectdatastoretransaction on@ecturess"ai@ipie,me@ailf:ti@ailmFaw@wchiZwi@treefon@ionivbj@ @DAT*a@nAeA'a@a@a@7`@`@Aj@j@Ok@k@[l@l@om@m@{@@@@A@@A@@^@^@xnv@v@  d_ds_nei_import_cityrid_lookupnonvisualobjectstructuremailrecipientenvironmentmailfiledescriptionmailmessagedatawindowchildlistviewitemtreeviewitemconnectioninfopowerobjectmessage2' d_ds_nei_import_cityrid_lookup & DAT*  +constructor+create+destroy LQ x _initsrcnonvisualobjectd_ds_nei_import_cityrid_lookupstructuremailrecipientenvironmentmailfiledescriptionmailmessagedatawindowchildlistviewitemtreeviewitemconnectioninfopowerobjectmessage onectst@ure!enviro@fi@scriJme@edaXil@stvidev@temxin@oweras@trate@stro @DAT* @ @ th il@ 4,1(,$ d ::message @   4880)(8d 0 createconstructortriggerevent ( 480) 8DAT* ' 36bAf_msgstringn_ds_cache_baseuo_headeruo_loadlogf_get_sequencef_insertstreamf_insertactivitySelect RAP_GEOGRAPHIC_LOCATIONS.RID from RAP_GEOGRAPHIC_LOCATIONS where RAP_GEOGRAPHIC_LOCATIONS.TYPE ='CITY' and RAP_GEOGRAPHIC_LOCATIONS.NAME =' ' and RAP_GEOGRAPHIC_LOCATIONS.PARENT_RID =0 VbA`bAf_dlookupINSERT INTO DAT*rap_activities ( creation_date_time , metric_code , metric_level_type , ref_rid , start_date_time , user_id , value , data_code , end_date_time , reference_code , reference_type ) VALUES ( datetime , 'tribal code' , 'src' , 0 , '2005-01-31 15:29:54.875000' , ' ' , ' ' , '05' , '2005-01-31 15:29:54.875000' , ' ' , 'IMPORT' ) ">AD2 bAINSERT INTO ids_rapactivities ( creation_date_time , metric_code , metric_level_type , ref_rDAT*id , start_date_time , user_id , value , data_code , end_date_time , reference_code , reference_type ) VALUES ( datetime , 'TRIBAL CODE' , 'SRC' , 0 , '2005-01-31 15:29:55.297000' , ' ' , ' ' , '2005-01-31 15:29:55.297000' , ' ' ) :=@ cAf_insertdevicef_insertprocessINSERT INTO rap_activities ( rap_activities.creation_date_time , rap_activities.metric_code , rap_activities.metric_level_type , rap_activities.ref_rid , rap_aDAT*ctivities.start_date_time , rap_activities.user_id , rap_activities.value ) VALUES ( timestamp , 'TRIBAL CODE' , 'SRC' , 0 , '2005-01-31 15:29:55.782000' , ' ' , ' ' ) 8;>AD 7 cAf_del_sourcesmessage $         V`   2  L     2 n_cst_nei_importDAT*  of_loadtemptablesof_cleartemptablesof_updatetemptableads_tempal_rowas_columnaa_valueimporterrof_settempitemaa_dateof_converttodateof_loadcachedataof_loadimportdriveraw_imainof_registerwimainof_startimportof_updaterapidstableof_resetcountersas_sourceas_destinationof_setlogfilenameof_setlogmessageas_attrnameas_messageof_putinmessagelogads_objectas_columnnameab_requiredof_setvalueab_insertad_processridas_beginmonthas_endmonthas_yearDAT*ad_relativeactivityamountof_addprocessspecificscheduleof_yieldas_codeas_idad_inputridad_outputridab_addmessageof_insertstreamactivityas_metriccodeas_metricleveltypeal_refridadt_startdateas_valueas_datacodeadt_enddateas_materialcodeas_methodtypeas_referencecodeas_referencetypead_valueamtas_valuetypeas_valueunitcodeof_insertactivityof_createptsourcesof_createptdevicesof_createarstreamsof_createarsourcesof_createarprocessesof_createaremissionprocessdataof_createaremissioDAT*nperiodactivitydataof_createaremissionactivitydataof_createardevicesof_createarcontrolequipmentactivitydataof_createorthroughputactivitiesof_createorstreamsof_createorsourcesof_createorprocessesof_createordischargeactivitiesof_createordevicesas_devicecodeas_deviceidal_sourceridas_devicenameas_sourcetypeof_insertdeviceof_createptprocessesas_processcodeas_processidal_deviceridas_processnameas_modetypeas_sccamscodeas_commenttextab_useseasonforcompareof_insertprocessof_createDAT*ptcntrleqptdevicesprocessesof_createptemisreldevicesprocessesad_parentad_childof_addgroupmembersad_fromdevicead_todeviceof_addconnectionsof_createptdeviceconnectionsof_createptstreamsof_createptsourceactivitiesof_createptemisunitdeviceactivitiesof_createptemisreleaseptactivitiesof_createptemissionprocessdataof_createptcontrolequipmentactivitydataas_pollutantof_checkneipollutantgroupof_createptemissionperiodactivitydataof_createptemissionactivitydataan_groupridan_seqnoas_subtypDAT*ean_eastingkmdataan_latitudean_longitudean_northingkmdataai_zonenoof_addlocationcoordinatesof_resettemptablesan_ridof_bulkdeletesourcesad_refridas_shapetypead_accuracyamtas_accuracytypeas_calculationtypeas_datumyearas_measureddescof_addlocationgroups+create+destroy+destructor+constructorE LI@$IPZc%LRCn_ds_nei_import_temp_base.LSARCstr_ierror.@$c%LCn_ds_nei_import_temp_base.RCstr_ierrorDAT* .|WAICw_imain.@&c%LCd_ds_nei_import_rapids_base.RCstr_ierror.Q) ISS IFRILSSp'I{Zc%LCdatastore.LSARCstr_ierror.B@&c%LCd_ds_nei_import_rapids_base.RCstr_ierror.BDDSSSDB@$*DAT*"6Ic%CDSSDDLRCstr_ierror.BiwIc%CDSSLWSSWSSSSDSSLRCstr_ierror.BIc%CDSSLSSLRCstr_ierror.B,5DQ^myDAT*$Ic%CDSSLSSSSSBLRCstr_ierror.BDDD,:2BSDDDSDDDDIll2$ILLSLNXetDDSDSSSS x,H`HDAT*&` (@P x _initsrcnonvisualobjectn_cst_nei_importstructuremailrecipientenvironmentmailfiledescriptionmailmessagedatawindowchildlistviewitemtreeviewitemconnectioninfopowerobjectn_ds_nei_tmp_ctrl_equip_activitiesn_ds_nei_tmp_emis_activitiesn_ds_nei_tmp_emis_period_activitiesn_ds_nei_tmp_emis_rel_pt_devicesn_ds_nei_tmp_emis_unit_devicesn_ds_nei_tmp_processesn_ds_nei_tmp_sourcesn_ds_nei_iDAT*(mport_county_activitiesn_ds_nei_import_state_activitiesn_ds_nei_tmp_sources_grpby_statecountyn_ds_nei_import_conversion_lookup_codesw_imainn_ds_nei_import_rap_actvitiesn_ds_nei_import_rap_sourcesn_ds_nei_import_rap_devicesn_ds_nei_import_rap_processesn_ds_nei_import_rap_streamsn_ds_nei_import_rap_reference_codesn_ds_nei_import_rap_proc_spec_schedulesn_ds_nei_import_rap_group_membersn_ds_nei_import_rap_connectionsn_ds_nei_import_rap_location_coordinatesn_ds_nei_import_rap_location_grDAT**oupsn_ds_nei_import_temp_basestr_ierrord_ds_nei_import_rapids_basedatastoretransactionn_ds_cache_baseuo_headeruo_loadlogmessage@!2@<@J@V@j@v@@ @ @ @og_f n@y@r+@ht@D@n@htDAT*,__l@dthv@widt@l_@ll_a@@;@8%r@C@@@_@{@0@<@_r@ ur@#!d@C"@l#o@@$@%@&@'@)@-@.@EmisDAT*./d@obje 8g@ >:OK>%>      !"#$%&'()*+,-./0123456789:;<=<' $8@$6H$`h$6p$)81DAT*0$$6$$6$)81 $ $6$$$6,$)481T$\d$6l$t|$6$)81@$$6DAT*2$$6$)81$$6$ $6($)081`D$LT$6\$dl$6t$)|81$)81,*Tv DAT*!J"t#$)*+,&-62@3j456;<=$>F?VD`EFGHKLM"P,d ll_rc ids_ctrlequipactivities is_statefips( (  is_countyfipsP!P of_populate:xids_emisactivities( ( P!P:xids_emisperiodactivities2 ( ( P!P:xids_emisrelptdeDAT*6forward global type n_ds_nei_import_temp_base from n_ds_conversion_base end type end forward shared variables n_cst_nei_import snv_import end variables global type n_ds_nei_import_temp_base from n_ds_conversion_base event type long ue_scanrow ( long al_row, string as_action, any aa_data ) event type long ue_populate ( ) event ue_scanbegin ( ) event ue_scanend ( ) event ue_populateend ( ) end type global n_ds_nei_import_temp_base n_ds_nei_import_temp_base type variables //fiDAT*8nd string string is_find //last row accessed via of_find() of_findNext() or of_getData() long il_row = -1 //lock sort and filter flags boolean ib_sortLock = false boolean ib_filterLock = false //set up the retrieval arguments string is_statefips, is_countyfips, is_tribalcode //used with ue_scanrow string is_scc string is_siteid string is_erid string is_processid string is_euid n_cst_nei_import inv_import end variables forward prototypes public function long of_sorDAT*:t (string as_sort) public function long of_filter (string as_filter) public function boolean of_find (string as_find) public function boolean of_findnext () public function long of_getcount (string as_find) public function any of_getdata (string as_column) public function long of_populate () public function integer of_reset () public function long of_setdata (string as_column, any aa_data) public function long of_setdataobject (string as_dataobject) public function long of_scan (string aDAT*<s_action) public function long of_scanreverse (string as_action) public function long of_scanreverse (string as_action, any aa_data) public function long of_scan (string as_action, any aa_data) public function boolean of_setfilterlock (boolean ab_lock) public function boolean of_setsortlock (boolean ab_lock) public subroutine of_registerimport (n_cst_nei_import anv_import) public subroutine of_setneiimport () end prototypes event ue_scanrow; //******************************************DAT*>************************************** // // Object: n_ds_cache_base inherited from n_ds_conversion_base // Event: ue_scanrow // Arguments: long al_row // string as_action // any aa_data // Returns: long // (Return NULL to stop the scanning process normally) // (Return value < 0 to stop the scanning with error status) // Description: // This event is triggered by the of_scan() function, which loops through the // datastore and "visits" each row. DAT*@ This event is triggered once for each row // visited, processing can be done on a row by row basis. A case block is used to // determine what action to perform on each row (e.g. a function call or other // operation). Any data needed for row processing can be passed in via the aa_data // argument. If this event returns NULL, the whole scan is stopped. // // NOTE: This event should be extended by descendant classes in order to // perform specific processing on the row given iDAT*Bn al_row. The as_action // argument should be checked in a CASE block in order to determine what // action should be performed. // //******************************************************************************** // Revision History // Date Name Revision //-------------------------------------------------------------------------------- // 10/12/2000 Mark Young Initial Version //******************************************************************************** //EXTEND this scriDAT*Dpt as follows //DO NOT place code here in the base class unless it will apply to all //objects of this class and its descendants //EXAMPLE: /* //Return NULL to stop the scanning process normally //(of_scan() will return the row stopped on) //Return Negative Value to stop the scanning process with error status //(of_scan() will return the Negative Value) //force argument to upper case as_action = upper(trim(as_action)) choose case as_action // **************************DAT*F*********************************************** case "ACTION 1" // ************************************************************************* function_1(aa_data) // ************************************************************************* case "ACTION 2" // ************************************************************************* function_2() // ************************************************************************* case "ACTION 3" // **********************DAT*H*************************************************** . . . // ************************************************************************* case else // ************************************************************************* //default action or error signalError(-1, "Unknow action '" + as_action + "' for ue_scanRow().") return -1 end choose */ return 0 end event event type long ue_populate();/* January 21, 2005 by Steve Oliphant Added in code to check DAT*Jfor nif 2.0 versus nif 3.0 data. If this is nif 3.0, then do the search with a tribal code term also. This event retrieves data from the data base for the current object, "this". I'm not sure we need to do a retrieve on tribal code. I will leave the table type check in for now, but will make the same call in both cases. */ long ll_rc string ls_null, ls_filter setnull(ls_null) if mid(w_imain.is_table_type, 1, 3) = "nei" then ll_rc = this.retrieve(is_statefips, is_couDAT*Lntyfips, gs_user_id) else ll_rc = this.retrieve(is_statefips, is_countyfips, gs_user_id) // ll_rc = this.retrieve(is_statefips, is_countyfips, is_tribalcode, gs_user_id) end if if ll_rc < 0 then //error data populated by dbError event signalError(il_error, is_error) end if of_setneiimport() //ll_rc = this.of_scan("set_process_information", ls_null) return ll_rc end event public function long of_sort (string as_sort);//*******************************************************DAT*N************************* // // Object: n_ds_cache_base inherited from n_ds_conversion_base // Function: of_sort // Access: public // Arguments: string as_sort // Returns: long; this.rowCount() // Description: Applies a sort to this datastore // //******************************************************************************** // Revision History // Date Name Revision //-------------------------------------------------------------------------------- // 07/28/200DAT*P0 Mark Young Initial Version //******************************************************************************** long ll_rc as_sort = trim(as_sort) //check for locked sort if ib_sortLock then signalError(ll_rc, "Data Object: " + is_dataObject + ". The Sort is Locked.") return -1 end if //apply a sort to the master datastore ll_rc = this.setSort(as_sort) if ll_rc < 0 then signalError(ll_rc, "Data Object: " + is_dataObject + ". SetSort() failed. Sort string '" + as_sorDAT*Rt + "'") return -1 end if ll_rc = this.sort() if ll_rc < 0 then signalError(ll_rc, "Data Object: " + is_dataObject + ". Sort() failed. Sort string '" + as_sort + "'") return -1 end if return this.rowCount() end function public function long of_filter (string as_filter);//******************************************************************************** // // Object: n_ds_cache_base inherited from n_ds_conversion_base // Function: of_filter // Access: publicDAT*T // Arguments: string as_filter // Returns: long; this.rowCount() // Description: applies a filter to this // //******************************************************************************** // Revision History // Date Name Revision //-------------------------------------------------------------------------------- // 07/25/2000 Mark Young Initial Version //******************************************************************************** long ll_rc as_filter = trim(asDAT*V_filter) //check for locked filter if ib_filterLock then signalError(ll_rc, "Data Object: " + is_dataObject + ". The Filter is Locked.") return -1 end if //apply a filter to the master datastore ll_rc = this.setFilter(as_filter) if ll_rc < 0 then signalError(ll_rc, "Data Object: " + is_dataObject + ". SetFilter() failed. Filter string '" + as_filter + "'") return -1 end if ll_rc = this.filter() if ll_rc < 0 then signalError(ll_rc, "Data Object: " + is_dataObject + ".DAT*X Filter() failed. Filter string '" + as_filter + "'") return -1 end if return this.rowCount() end function public function boolean of_find (string as_find);//******************************************************************************** // // Object: n_ds_cache_base inherited from n_ds_conversion_base // Function: of_find // Access: public // Arguments: string as_find // Returns: boolean // Description: // Finds data in this datastore based on the finDAT*Zd string. Sets the // internal row pointer (il_row) to the row found. // //******************************************************************************** // Revision History // Date Name Revision //-------------------------------------------------------------------------------- // 10/12/2000 Mark Young Initial Version //******************************************************************************** //find the first row matching the find string il_row = this.find(as_find, 1,DAT*\ this.rowCount()) if il_row < 0 then is_find = "" signalError(il_row, "Data Object: " + is_dataObject + ". Find() failed. Find string '" + as_find + "'") return false end if //save the find string is_find = as_find if il_row > 0 then return true else return false end if end function public function boolean of_findnext ();//******************************************************************************** // // Object: n_ds_cache_base inherited from n_ds_conversioDAT*^n_base // Function: of_findnext // Access: public // Arguments: none // Returns: boolean // Finds data in this datastore based on the find string. Sets the // internal row pointer (il_row) to the row found. // //******************************************************************************** // Revision History // Date Name Revision //-------------------------------------------------------------------------------- // 10/12/2000 Mark Young Initial Version //******DAT*`************************************************************************** //if of_find() wasn't called successfully, don't search if il_row <= 0 or is_find = "" then signalError(il_row, "Data Object: " + is_dataObject + ". A successful call to of_find() must be made before calling of_findNext()") return false end if //if we are at the end of the buffer, don't search if il_row >= this.rowCount() then return false end if //find the next row matching the stored find string ilDAT*b_row = this.find(is_find, il_row + 1, this.rowCount()) if il_row < 0 then signalError(il_row, "Data Object: " + is_dataObject + ". FindNext() failed. Find string '" + is_find + "'") return false end if if il_row > 0 then return true else return false end if end function public function long of_getcount (string as_find);//******************************************************************************** // // Object: n_ds_cache_base inherited from n_ds_conversion_base DAT*d// Function: of_getcount // Access: public // Arguments: string as_find // Returns: long // Description: Loops through this datastore looking for the number of occurence by // criteria passed in as a parameter // //******************************************************************************** // Revision History // Date Name Revision //-------------------------------------------------------------------------------- // 10/23/2000 Michael Colombo Initial VersionDAT*f //******************************************************************************** long ll_rowfound, ll_rc, ll_foundcount ll_foundcount = 0 ll_rowfound = 0 ll_rc = this.rowcount() if ll_rc < 1 then return 0 end if //loops until rowfound > ll_rc DO ll_rowfound = this.find(as_find, ll_rowfound + 1, ll_rc ) if ll_rowfound > 0 then ll_foundcount++ //increments the found counter by one when there is a sucessful find else return ll_foundcount //exits out once theDAT*hre are no more finds end if LOOP UNTIL (ll_rowfound + 1) > ll_rc return ll_foundCount end function public function any of_getdata (string as_column);//******************************************************************************** // // Object: n_ds_cache_base inherited from n_ds_conversion_base // Function: of_getData // Access: public // Arguments: string as_column // Returns: any // Description: // Returns a data value from the row indicatedDAT*j // by internal row pointer il_row and column as_column. Il_row // is set by calling of_find() or of_findNext(). // //******************************************************************************** // Revision History // Date Name Revision //-------------------------------------------------------------------------------- // 07/28/2000 Mark Young Initial Version //******************************************************************************** string ls_type any as_data iDAT*lf il_row <= 0 or is_find = "" then signalError(il_row, "Data Object: " + is_dataObject + ". A successful call to of_find() must be made before calling of_getData()") return il_row end if as_column = trim(lower(as_column)) ls_type = this.describe(as_column + ".colType") choose case lower(left(ls_type, 5)) case "char(" /*char(n)*/ as_data = this.getItemString(il_row, as_column) case "decim" /*decimal(n)*/, "int", "long", "numbe" /*number*/, "real", "ulong" as_data = this.getIDAT*ntemNumber(il_row, as_column) case "date" as_data = this.getItemDate(il_row, as_column) case "time" as_data = this.getItemTime(il_row, as_column) case "datet" /*datetime*/, "times" /*timestamp*/ as_data = this.getItemDateTime(il_row, as_column) case else signalError(-1, "Data Object: " + is_dataObject + ". Invalid column name '" + as_column + "', or unknown column data type '" + ls_type + "'") return -1 end choose return as_data end function public function long of_DAT*ppopulate ();//******************************************************************************** // // Object: n_ds_cache_base inherited from n_ds_conversion_base // Function: of_populate // Access: public // Arguments: none // Returns: long // Description: triggers event ue_populate // //******************************************************************************** // Revision History // Date Name Revision //------------------------------------------------------DAT*r-------------------------- // 11/16/2000 Michael Colombo Initial Version //******************************************************************************** long ll_rc ll_rc = this.trigger event ue_populate() if ll_rc >= 0 then this.trigger event ue_populateEnd() end if return ll_rc end function public function integer of_reset ();//******************************************************************************** // // Object: n_ds_cache_base inherited from n_ds_converDAT*tsion_base // Function: of_reset // Access: public // Arguments: none // Returns: integer // Description: Wrapper for this.reset() // //******************************************************************************** // Revision History // Date Name Revision //-------------------------------------------------------------------------------- // 10/13/2000 Mark Young Initial Version //******************************************************************************** rDAT*veturn this.reset() end function public function long of_setdata (string as_column, any aa_data);//******************************************************************************** // // Object: n_ds_cache_base inherited from n_ds_conversion_base // Function: of_setdata // Access: public // Arguments: string as_column // any aa_data // Returns: long // Description: // Sets a data value in this for the row indicated // by internal row pointer il_row and columnDAT*x as_column. Il_row // is set by calling of_find() or of_findNext(). // //******************************************************************************** // Revision History // Date Name Revision //-------------------------------------------------------------------------------- // 08/04/2000 Mark Young Initial Version //******************************************************************************** string ls_type long ll_rc if il_row <= 0 or is_find = "" then signalErrorDAT*z(il_row, "Data Object: " + is_dataObject + ". A successful call to of_find() must be made before calling of_setData()") return il_row end if as_column = trim(lower(as_column)) ls_type = this.describe(as_column + ".colType") if ls_type = "?" or ls_type = "!" then signalError(-1, "Data Object: " + is_dataObject + ". Invalid column name '" + as_column + "'") return -1 end if ll_rc = this.setItem(il_row, as_column, aa_data) if ll_rc < 0 then signalError(ll_rc, "Data Object: "DAT*| + is_dataObject + ". Call to setItem() failed for column '" + as_column + "'") return -1 end if return 1 end function public function long of_setdataobject (string as_dataobject);//******************************************************************************** // // Object: n_ds_cache_base inherited from n_ds_conversion_base // Function: of_setdataobject // Access: public // Arguments: string as_dataobject // Returns: long // Description: Calls the function sDAT*~etTransObject // //******************************************************************************** // Revision History // Date Name Revision //-------------------------------------------------------------------------------- // 11/16/2000 Mark Young Initial Version //******************************************************************************** is_dataObject = trim(lower(as_dataObject)) this.dataObject = is_dataObject return this.setTransObject(sqlca) end function publicDAT* function long of_scan (string as_action);//******************************************************************************** // // Object: n_ds_cache_base inherited from n_ds_conversion_base // Function: of_scan // Access: public // Arguments: string as_action // Returns: long (0 if whole buffer scanned; row number if stopped on specific row) // Description: // Overloaded function without data argument. // Scans the datastore, calling ue_scanRow() on each row. // IfDAT* ue_scanRow() returns null, then the scan stops on that row. // //******************************************************************************** // Revision History // Date Name Revision //-------------------------------------------------------------------------------- // 10/12/2000 Mark Young Initial Version //******************************************************************************** any aa_data //set the data argument to null setNull(aa_data) //call the overloadedDAT* of_scan() function with all arguments return this.of_scan(as_action, aa_data) end function public function long of_scanreverse (string as_action);//******************************************************************************** // // Object: n_ds_cache_base inherited from n_ds_conversion_base // Function: of_scanReverse // Access: public // Arguments: string as_action // Returns: long (0 if whole buffer scanned; row number if stopped on specific row) // DescripDAT*tion: // Overloaded function without data argument. // Scans the datastore backwards, calling ue_scanRow() on each row. // If ue_scanRow() returns null, then the scan stops on that row. // //******************************************************************************** // Revision History // Date Name Revision //-------------------------------------------------------------------------------- // 10/12/2000 Mark Young Initial Version //********************************************DAT************************************* any aa_data //set the data argument to null setNull(aa_data) //call the overloaded of_scanReverse() function with all arguments return this.of_scanReverse(as_action, aa_data) end function public function long of_scanreverse (string as_action, any aa_data);//******************************************************************************** // // Object: n_ds_cache_base inherited from n_ds_conversion_base // Function: of_scanReverse(DAT*) // Access: public // Arguments: string as_action // any aa_data // Returns: long // 0 if whole buffer scanned // Row Number if stopped on specific row // < 0 if stopped on error // Description: // Scans the datastore backwards, calling ue_scanRow() on each row. // If ue_scanRow() returns null, then the scan stops on that row. // If ue_scanRow() returns < 0, then the scan stops and returns negative value. // //*************************************DAT******************************************** // Revision History // Date Name Revision //-------------------------------------------------------------------------------- // 10/12/2000 Mark Young Initial Version //******************************************************************************** long ll_row long ll_rc //trigger the begin scan event for any pre-processing this.trigger event ue_scanBegin() //loop through datastore backwards for ll_row = this.rowCount() to 1 steDAT*p -1 //call ue_scanRow() with requested action ll_rc = this.trigger event ue_scanRow(ll_row, as_action, aa_data) if ll_rc < 0 then //stop scan on error return ll_rc end if //if ue_scanRow() returns null, then stop on this row if isNull(ll_rc) then exit end if next //trigger the end scan event for any post-processing this.trigger event ue_scanEnd() if ll_row < 1 then //whole buffer was scanned return 0 else //scan was stopped on a specific row DAT* return ll_row end if end function public function long of_scan (string as_action, any aa_data);//******************************************************************************** // // Object: n_ds_cache_base inherited from n_ds_conversion_base // Function: of_scan // Access: public // Arguments: string as_action // Returns: long // 0 if whole buffer scanned // Row Number if stopped on specific row // < 0 if stopped on error // Description: //DAT* Scans the datastore, calling ue_scanRow() on each row. // If ue_scanRow() returns null, then the scan stops on that row. // If ue_scanRow() returns < 0, then the scan stops and returns negative value. // //******************************************************************************** // Revision History // Date Name Revision //-------------------------------------------------------------------------------- // 10/12/2000 Mark Young Initial Version //*****************************DAT*Z*************************************************** long ll_row long ll_rc //trigger the begin scan event for any pre-processing this.trigger event ue_scanBegin() //loop through datastore for ll_row = 1 to this.rowCount() //call ue_scanRow() with requested action ll_rc = this.trigger event ue_scanRow(ll_row, as_action, aa_data) if ll_rc < 0 then //stop scan on error return ll_rc end if //if ue_scanRow() returns null, then stop on this row if isNull(ll_rc) DAT*edules ids_rapspecificschedules n_ds_nei_import_rap_group_members ids_rapgroupmembers n_ds_nei_import_rap_connections ids_rapconnections n_ds_nei_import_rap_location_coordinates ids_raplocationcoordinates n_ds_nei_import_rap_location_groups ids_raplocationgroups end variables forward prototypes public function long of_loadtemptables () public function integer of_cleartemptables () public function integer of_updatetemptable () public function long of_settempitem (ref n_ds_nei_import_temDAT*p_base ads_temp, long al_row, string as_column, any aa_value, ref str_ierror importerr) public function long of_updatetemptable (n_ds_nei_import_temp_base ads_temp, ref str_ierror importerr) public function datetime of_converttodate (any aa_date) public function long of_loadcachedata () public function long of_loadimportdriver () public function integer of_registerwimain (w_imain aw_imain) public function integer of_startimport () public function long of_updaterapidstable (d_ds_nei_import_rDAT*apids_base ads_temp, ref str_ierror importerr) public subroutine of_resetcounters () public function integer of_setlogfilename (string as_source, string as_destination) public function integer of_setlogmessage (string as_source, string as_destination) public function integer of_putinmessagelog (long al_row, string as_attrname, string as_message) public function long of_setvalue (datastore ads_object, long al_row, string as_columnname, any aa_value, ref str_ierror importerr, boolean ab_requireDAT*d) public function long of_updaterapidstable (d_ds_nei_import_rapids_base ads_temp, ref str_ierror importerr, boolean ab_insert) public function double of_addprocessspecificschedule (double ad_processrid, string as_beginmonth, string as_endmonth, string as_year, double ad_relativeactivityamount) public function boolean of_yield () public function double of_insertstreamactivity (string as_code, string as_id, double ad_inputrid, double ad_outputrid, long al_row, ref str_ierror importerr, booleanDAT* ab_addmessage) public function double of_insertactivity (string as_metriccode, string as_metricleveltype, long al_refrid, datetime adt_startdate, string as_value, string as_datacode, datetime adt_enddate, string as_materialcode, string as_methodtype, string as_referencecode, string as_referencetype, double ad_valueamt, string as_valuetype, string as_valueunitcode, long al_row, ref str_ierror importerr, boolean ab_addmessage) public function long of_createptsources () public function long of_crDAT*vices<( ( <P!P<:xids_emisunitdevices( ( P!P:xids_processes( ( P!P:xids_sources8( ( 8P!P8:xids_raprefcodes:x 8 @ H ` h p               DAT* $ , 4 T \ d l t |                  ( 0 D L T \ d l t |   ,(,* $,*:81B1,(,* ,*;811,(,* ,*<811DAT*,(,* ,*=811,(,* ,*>81J1,(,* ,*?811,(,* ,*@81112BF R t  :J N!Z"|%&'(+d gs_user_idsqlca((@*@( DAT* + $)08<,*8$1z,*8@0,*d$6@8,*$)8<,*$1,*80,*$6@8,*$)8<,*$1z,*80,*$6@8,*8$)@8<,*H$1,*8P0,*p$6@DAT*H 8,*$)8<,*$1z,*80,*$6@8,*$)8<,*$1,*80,* $6@8,* $)(8<,*0$1z,*880,*P$6@8,*&@F v z &@FvzDAT*Tht x _initsrcn_ds_conversion_basen_ds_nei_import_temp_basedwobjectn_cst_conversion_basefileaccesssaveastypepowerobject_sharsrcn_cst_nei_importw_imaintransaction@&@@I@_@j@u@@DAT* @ @ C*)     1Ud! al_rowas_actionaa_data<  B @8, $11@88 4$6L$DAT*forward global type n_ds_nei_tmp_emis_activities from n_ds_nei_import_temp_base end type end forward global type n_ds_nei_tmp_emis_activities from n_ds_nei_import_temp_base end type global n_ds_nei_tmp_emis_activities n_ds_nei_tmp_emis_activities type variables string is_tribal_code end variables on n_ds_nei_tmp_emis_activities.create call super::create end on on n_ds_nei_tmp_emis_activities.destroy call super::destroy end on event constructor;call super::constructor;//seDAT* t the file extension and data source this.of_setDataType("txt", "d_nei_rap_tmp_emis_activities") //override the default name //this.of_setFileName("ds_tmp_emis_activities") //set the file description this.of_setFileDescription("rap_tmp_emis_activities") //override the default save as option of no headings this.of_setFileHeadings(true) end event event ue_scanrow;call super::ue_scanrow;//******************************************************************************** // Revision DAT*6, 6)`8h$6p$6, 6)x81 $$6+@+8)8X #2d3 ll_rcls_nullls_filterw_imaings_user_idd   @ ( @P is_table_typeWneiis_statefips$ is_countyfips<!retrieDAT*veT$ <!Til_erroris_errorof_setneiimportB 4 L ` h p x     $h8<$z%8Dz&+@+81)d8<18l$z%8tz&z&8z&+@+81)8<1x8$zDAT*%8z&z&8z&+@+81)8 \h #$%&l)xd as_sortll_rc( 8 ib_sortlockData Object: is_dataobject+. The Sort is Locked.setsort[+. SetSort() failed. Sort string ''sort+. Sort() failed. Sort string 'rowcount < d l   DAT*  $h8 @$z%8Hz&+@+81)l8<18 t$z%8|z&z&8z&+@+81)8<1x8 $z%8z&z&8z&+@+81)8 \h #$%&l)xd as_filteDAT*rll_rc( 8 ib_filterlockData Object: is_dataobject%/. The Filter is Locked.setfiltera/. SetFilter() failed. Filter string ''filtera/. Filter() failed. Filter string 'rowcountd  @ l t     1)$8)48<$1L8T0X$8`DAT*forward global type n_ds_nei_tmp_emis_period_activities from n_ds_nei_import_temp_base end type end forward global type n_ds_nei_tmp_emis_period_activities from n_ds_nei_import_temp_base end type global n_ds_nei_tmp_emis_period_activities n_ds_nei_tmp_emis_period_activities type variables string is_tribal_code // sjo 1/28/05 end variables on n_ds_nei_tmp_emis_period_activities.create call super::create end on on n_ds_nei_tmp_emis_period_activities.destroy call super::destroy DAT*  end on event constructor;call super::constructor;//set the file extension and data source this.of_setDataType("txt", "d_nei_rap_tmp_emis_period_activities") //override the default name //this.of_setFileName("ds_tmp_emis_period_activities") //set the file description this.of_setFileDescription("rap_tmp_emis_period_activities") //override the default save as option of no headings this.of_setFileHeadings(true) end event event ue_scanrow;call super::ue_scanrow;//****************DAT*portpowerobjectdatastoren_ds_conversion_basemessage@+M@V@l@w@@@  @@ @ t@ D+*v)81`$$8,019nH98]DAT*1I`d P rowcountobject@rid__get_attribute_item0 $ H 4 880)(8d 0 createconstructortriggerevent ( 4 880)(8d 0 destroydestructortriggerevent ( DAT*+L@U1@Rk@v@@R@ @@ @ @ D+)v)81`$$8,019nH98]1I`d P rowcountDAT*object@rid__get_attribute_item0 $ H 4 880)(8d 0 createconstructortriggerevent ( 4 880)(8d 0 destroydestructortriggerevent ( 88080)H89)d8, n1|DAT*ption of no headings this.of_setFileHeadings(true) end event event ue_scanrow;call super::ue_scanrow;//******************************************************************************** // Revision History // Date Name Revision //-------------------------------------------------------------------------------- // 10/12/2000 Mark Young Initial Version // 01/31/2005 Steve Oliphant Added NIF 3 functionality // section 3.2.3 Determine Configuration Number of design document. // DAT*me = upper(trim(as_rapidsFieldName)) is_rapidsValueName = ls_empty is_rapidsValueName = as_rapidsValueName return super::of_populate() end function public function boolean of_findneivalue (string as_rapidsfieldname, string as_rapidsvaluename, ref string as_neivalue1); if this.of_find("system_code = 'NEI' and " +& "rapids_field_name = '" + as_rapidsFieldName + "' and rapids_value_name = '" + as_rapidsValueName + "'") then as_neiValue1 = trim(string(this.of_getData("system_DAT*value_name_1"))) if as_neiValue1 = "" then setNull(as_neiValue1) return false end if return true else setNull(as_neiValue1) return false end if end function public function boolean of_findrapidsvalue (string as_rapidsfieldname, string as_systemvaluename1, ref string as_rapidsvaluename);/* Modified 1/29/05 by Steve Oliphant Added in the null check on column system_value_name_2 per the design document requirements in section 3.2.4.17 Create EmissionDAT*  Activity Data Assign Pollutant Name = Select RAPIDS_VALUE_NAME from RAP_CONVERSION_LOOKUP_CODES where SYSTEM_CODE = 'NEI' and RAPIDS_FIELD_NAME = RAPIDS Pollutant Field Name and SYSTEM_VALUE_NAME_1 = rap_tmp_emis_activities.pollutant_code and SYSTEM_VALUE_NAME_2 is NULL. */ if this.of_find("system_code = 'NEI' and " & + "rapids_field_name = '" + as_rapidsFieldName & + "' and system_value_name_1 = '" + as_systemValueName1 + "'") & then if iDAT*T // Added in the check on tribal_code for case "UPDATE DEVICE RID" // per section 4.2.2.3. //******************************************************************************** //EXTEND this script as follows //DO NOT place code here in the base class unless it will apply to all //objects of this class and its descendants //EXAMPLE: //Return NULL to stop the scanning process normally //(of_scan() will return the row stopped on) //Return Negative Value to stop the scanniDAT*basefileaccesssaveastypen_cst_nei_importpowerobjectn_ds_conversion_basemessage rcs_neem@sen+potateNs@jectWve@n_bames@veasx_n@mporec@taston@ion_ ge@ject @ C**8d  createDAT*8d  destroy88080)L88T0)89)8, 1, $> Z pd& ancestorreturnvalue::message( @ constructortxtd_nei_rap_tmp_ctr_equip_activitiesof_setdatatype;rap_tmp_ctr_equip_activitiesof_setfiledescriptionoDAT*astypen_cst_nei_importpowerobjectn_ds_conversion_basemessage uctxttm@r_eq+tif_seH@;Qr_@p_acgf_@iledro@q}he@gs@ @stri un@ C**8d  create8DAT* d  destroy88080)H88P0)89)8, 1, $> Z pd& ancestorreturnvalue::message( @ constructortxtd_nei_rap_tmp_emis_activitiesof_setdatatype@6rap_tmp_emis_activitiesof_setfiledescription hof_setfileheadingsDAT* n_basefileaccesssaveastypen_cst_nei_importpowerobjectn_ds_conversion_basemessage uctxttm@is_a+ofdataO@rap_Xct@iesnde@ptioy@etfi@@ F@r() il@ C**8d  createDAT*eateptdevices () public function long of_createarstreams () public function long of_createarsources () public function long of_createarprocesses () public function long of_createaremissionprocessdata () public function long of_createaremissionperiodactivitydata () public function long of_createaremissionactivitydata () public function long of_createardevices () public function long of_createarcontrolequipmentactivitydata () public function long of_createorthroughputactivities () public fDAT*unction long of_createorstreams () public function long of_createorsources () public function long of_createorprocesses () public function long of_createordischargeactivities () public function long of_createordevices () public function double of_insertdevice (string as_devicecode, string as_deviceid, long al_sourcerid, string as_devicename, string as_sourcetype, long al_row, ref str_ierror importerr, boolean ab_addmessage) public function long of_createptprocesses () public function doubleDAT* of_insertprocess (string as_processcode, string as_processid, long al_devicerid, string as_processname, string as_modetype, string as_sccamscode, string as_commenttext, string as_sourcetype, boolean ab_useseasonforcompare, long al_row, ref str_ierror importerr, boolean ab_addmessage) public function long of_createptcntrleqptdevicesprocesses () public function long of_createptemisreldevicesprocesses () public function double of_addgroupmembers (double ad_parent, double ad_child) public functioDAT*n double of_addconnections (double ad_fromdevice, double ad_todevice) public function long of_createptdeviceconnections () public function long of_createptstreams () public function long of_createptsourceactivities () public function long of_createptemisunitdeviceactivities () public function long of_createptemisreleaseptactivities () public function long of_createptemissionprocessdata () public function long of_createptcontrolequipmentactivitydata () public function boolean of_checkneipolDAT*lutantgroup (string as_pollutant) public function long of_createptemissionperiodactivitydata () public function long of_createptemissionactivitydata () public function double of_addlocationcoordinates (double an_grouprid, double an_seqno, string as_subtype, double an_eastingkmdata, double an_latitude, double an_longitude, double an_northingkmdata, integer ai_zoneno) public function integer of_resettemptables () public function long of_bulkdeletesources (long an_rid, string as_id, long al_row)DAT*global type f_parserecordstring from function_object end type forward prototypes global function string f_parserecordstring (datawindow adw_object, string as_recordstring) end prototypes global function string f_parserecordstring (datawindow adw_object, string as_recordstring);//parses a fixed length string into a tab delimited string, //based on the structure of the datastore //currently only works for datastores with char(n) field types MDY 2/02 integer li_columncount integer li_cDAT*olumn integer li_pos, li_pos1, li_pos2 integer li_columnLength, li_dataLength string ls_null string ls_type string ls_data string ls_temp string ls_record = "" any la_data boolean lb_unsupported, lb_lengthError setNull(ls_null) setNull(la_data) //loop through the datastore columns lb_lengthError = false li_pos = 1 li_columncount = integer(adw_object.Object.DataWindow.Column.Count) /* This next if block removes the user_id field from the column count */ for li_coluDAT*mn = 1 to li_columncount lb_unsupported = false //grab the column length ls_type = adw_object.describe("#" + string(li_column) + ".colType") choose case lower(left(ls_type, 5)) case "char(" /*char(n)*/ //get the column length li_pos1 = pos(ls_type, "(") + 1 li_pos2 = pos(ls_type, ")") ls_temp = mid(ls_type, li_pos1, li_pos2 - li_pos1) li_columnLength = integer(ls_temp) case "decim" /*decimal(n)*/, "int", "long", "numbe" /*number*/, "real", "ulong" DAT*  lb_unsupported = true exit case "date" lb_unsupported = true exit case "time" lb_unsupported = true exit case "datet" /*datetime*/, "times" /*timestamp*/ lb_unsupported = true exit case else signalError(-1, "Invalid column number '" + string(li_column) + "', or unknown column data type '" + ls_type + "'") exit end choose if lb_unsupported then signalError(-1, "Unsupported column data type '" + ls_type + "'. " +& "Function of_pDAT*  public function double of_addlocationgroups (double ad_refrid, string as_shapetype, double ad_accuracyamt, string as_accuracytype, string as_calculationtype, string as_datumyear, string as_measureddesc) end prototypes public function long of_loadtemptables ();/* The way this works. It runs through the data by state and county fips codes. One set at a time. This routine is just used for NEI data and processes each of the seven temp tables data. This routine loads in the currDAT*Q8SI(VU county_fips$R@%293$TF@320"W0OYBZ\^I a` tribal_code$[n622$]0$_IDAT* 73"b0@egrkCijDAT*   sourcetype sourcetype recordtype recordtype datasource datasourceorderorderDAT*PDW0800pdw+XW````) F$&nn``DAT* @D` DAT*umn(band=detail id=21 alignment="0" tabsequence=32766 border="0" color="0" x="11730" y="8" height="64" width="549" format="[general]" name=rap_activities_value edit.limit=12 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) htmltable(border="1" cellpadding="0" cellspacing="0" generatecss="no" nowrap="yes")DAT* rid_t< $0%  MS Sans SerifMS Sans Serif$ 2$-8$700$1$ 536870912$ DAT*9$8$452$<274%RidRid`)! "$&creation_date_time_t$#@%293$%E581%'(Creation Date TimeCreation Date Time`2 *DAT* +-/metric_code_t$,r882$.x%549%01 Metric Code Metric Code`;)3 468metric_level_type_t$5;1440$7w 544%9:Metric Level TypeMetric Level Type`D2<DAT* =?A ref_rid_t$>1993$@<274%BCRef RidRef Rid`M;E FHJstart_date_time_t$G2277$Ih475%KLStart Date TimeStart Date Time`VDAT*DN OQS user_id_t$P\ 2761$R0219%TUWhoWho`_MW XZ\value_t$Y 2990$[x%549%]^ValueValue`hV`DAT* acecomment_text_t$b 3547$d2194%fg Comments Comments`q_i jlnconfidential_flag_t$kw5751$mOi361%op Confidential Confidential`zDAT*hr suw data_code_t$t;6121$vE;315%xy Data Code Data Code`q{ |~end_date_time_t$}.6446$x%549%End Date TimeEnd DaDAT* te Time`z material_code_t$[7003$x%549%Material CodeMaterial Code` method_type_t$v7561$U389% DAT* Method Type Method Type` reference_code_t$7959$x%549%Reference CodeReference Code` reference_type_t$GE!8517$i480DAT*%Reference TypeReference Type`  value_amt_t$.#9006$658% Value Amount Value Amount`  value_type_t$D%9673$JDAT*R338% Value Type Value Type` value_unit_code_t$%'10021$k489%Value Unit CodeValue Unit Code@@PPDAT* (rid$ 9$@64$<274& [general] [general](creation_date_time$@%DAT*293$E581&[shortdate] [time][shortdate] [time]( metric_code$r882$x%549& [general] [general]DAT*((metric_level_type$;1440$w 5442(ref_rid$1993$<274DAT*<(start_date_time$2277$h475F(user_id$\ 2761$0219DAT*P( value$ 2990$x%549   Z(  comment_text$  3547$ 2194 DAT*d(confidential_flag$w5751$Oi361 n( data_code$;6121$E;315#  x(DAT*"end_date_time$.6446$!x%549*$%' () material_code$&[7003$(x%5491#+,.(DAT*$0 method_type$-v7561$/U3898*235(7 reference_code$47959$6x%549?19:<(DAT*"e=decimal(0) update=yes updatewhereclause=yes name=rid dbname="rap_devices.rid" ) column=(type=char(15) update=yes updatewhereclause=yes name=code dbname="rap_devices.code" ) column=(type=char(15) update=yes updatewhereclause=yes key=yes name=id dbname="rap_devices.id" ) column=(type=decimal(0) update=yes updatewhereclause=yes key=yes name=source_rid dbname="rap_devices.source_rid" ) column=(type=char(255) update=yes updatewhereclause=yes name=comment_text dbname="rap_devices.comment_text"DAT* ) column=(type=date update=yes updatewhereclause=yes name=dismantle_date dbname="rap_devices.dismantle_date" ) column=(type=char(1) update=yes updatewhereclause=yes name=group_flag dbname="rap_devices.group_flag" ) column=(type=char(20) update=yes updatewhereclause=yes name=group_type dbname="rap_devices.group_type" ) column=(type=date update=yes updatewhereclause=yes name=install_date dbname="rap_devices.install_date" ) column=(type=char(50) update=yes updatewhereclause=yes name=name dDAT*&>reference_type$;GE!8517$=i480I8@ACE(H value_amt$B.#9006$D658&FG [general] [general]P?JKMDAT*((O value_type$LD%9673$NJR338IQRT(Vvalue_unit_code$S%'10021$Uk489@DAT**Y^dc@gef @jhi @mkl DAT*,pnosqr vtu ywx@|z{ @}~ @ @DAT*.  # *@1 8@? @IPDAT*0 @$p_Zti[ri\l_] :ref_rid :metric_code:metric_level_type:start_date_time$_`abref_rid metric_codemetric_level_typestart_date_timerap_activities  ridrap_activities.ridcreation_date_time"rap_activities.creation_date_time metric_coderap_activities.metric_codemetDAT* ric_level_type!rap_activities.metric_level_typeref_ridrap_activities.ref_ridstart_date_timerap_activities.start_date_timeuser_idrap_activities.user_idvaluerap_activities.value comment_textrap_activities.comment_textconfidential_flag!rap_activities.confidential_flag data_coderap_activities.dDAT*4release 6; datawindow(units=0 timer_interval=0 color=16777215 processing=1 print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.prompt=no print.buttons=no print.preview.buttons=no grid.lines=0 ) header(height=68 color="536870912" ) summary(height=0 color="536870912" ) footer(height=0 color="536870912" ) detail(height=80 color="536870912" ) table(column=(typDAT*6e=decimal(0) update=yes updatewhereclause=yes name=rid dbname="rap_sources.rid" initial="null" ) column=(type=char(15) update=yes updatewhereclause=yes name=code dbname="rap_sources.code" initial="null" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=geographic_county_rid dbname="rap_sources.geographic_county_rid" initial="null" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=geographic_state_rid dbname="rap_sources.geographic_state_rid" initial="null" ) colDAT*8umn=(type=char(15) update=yes updatewhereclause=yes key=yes name=id dbname="rap_sources.id" initial="null" ) column=(type=char(50) update=yes updatewhereclause=yes name=name dbname="rap_sources.name" initial="null" ) column=(type=char(1) update=yes updatewhereclause=yes name=type dbname="rap_sources.type" initial="null" ) column=(type=datetime update=yes updatewhereclause=yes name=begin_operation_date dbname="rap_sources.begin_operation_date" ) column=(type=char(255) update=yes updatewhereDAT*:clause=yes name=comment_text dbname="rap_sources.comment_text" ) column=(type=datetime update=yes updatewhereclause=yes name=end_operation_date dbname="rap_sources.end_operation_date" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=geographic_incorp_rid dbname="rap_sources.geographic_incorp_rid" initial="null" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=geographic_locale_rid dbname="rap_sources.geographic_locale_rid" initial="null" ) column=(type=char(1)DAT*< update=yes updatewhereclause=yes name=group_flag dbname="rap_sources.group_flag" ) column=(type=char(20) update=yes updatewhereclause=yes name=group_type dbname="rap_sources.group_type" ) column=(type=char(40) update=yes updatewhereclause=yes name=location_line_1_addr dbname="rap_sources.location_line_1_addr" ) column=(type=char(40) update=yes updatewhereclause=yes name=location_line_2_addr dbname="rap_sources.location_line_2_addr" ) column=(type=char(11) update=yes updatewhereclause=yes DAT*>name=location_zip_code dbname="rap_sources.location_zip_code" ) column=(type=char(4) update=yes updatewhereclause=yes name=sic_code dbname="rap_sources.sic_code" ) column=(type=char(15) update=yes updatewhereclause=yes name=operator_id dbname="rap_sources.operator_id" ) column=(type=char(15) update=yes updatewhereclause=yes name=operator_code dbname="rap_sources.operator_code" ) column=(type=char(50) update=yes updatewhereclause=yes name=operator_name dbname="rap_sources.operator_name" ) DAT*@ column=(type=char(6) update=yes updatewhereclause=yes name=naics_code dbname="rap_sources.naics_code" ) retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"rap_sources~" ) COLUMN(NAME=~"rap_sources.rid~") COLUMN(NAME=~"rap_sources.code~") COLUMN(NAME=~"rap_sources.geographic_county_rid~") COLUMN(NAME=~"rap_sources.geographic_state_rid~") COLUMN(NAME=~"rap_sources.id~") COLUMN(NAME=~"rap_sources.name~") COLUMN(NAME=~"rap_sources.type~") COLUMN(NAME=~"rap_sources.begin_operation_date~") COLUMN(NAME=~"rDAT*Bap_sources.comment_text~") COLUMN(NAME=~"rap_sources.end_operation_date~") COLUMN(NAME=~"rap_sources.geographic_incorp_rid~") COLUMN(NAME=~"rap_sources.geographic_locale_rid~") COLUMN(NAME=~"rap_sources.group_flag~") COLUMN(NAME=~"rap_sources.group_type~") COLUMN(NAME=~"rap_sources.location_line_1_addr~") COLUMN(NAME=~"rap_sources.location_line_2_addr~") COLUMN(NAME=~"rap_sources.location_zip_code~") COLUMN(NAME=~"rap_sources.sic_code~") COLUMN(NAME=~"rap_sources.operator_id~") COLUMN(NAME=~"rap_sDAT*Dources.operator_code~") COLUMN(NAME=~"rap_sources.operator_name~") COLUMN(NAME=~"rap_sources.naics_code~")WHERE( EXP1 =~"rap_sources.id~" OP =~"=~" EXP2 =~":as_sourceID~" ) ) ARG(NAME = ~"as_sourceID~" TYPE = string) " update="rap_sources" updatewhere=0 updatekeyinplace=yes arguments=(("as_sourceID", string)) ) text(band=header alignment="2" text="Rid"border="0" color="0" x="9" y="8" height="52" width="274" name=rid_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.faDAT*Fmily="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Agency Source Code"border="0" color="0" x="293" y="8" height="52" width="658" name=code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="County"border="0" color="0" x="960" y="8" height="52" width="274" name=geographiDAT*Hc_county_rid_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="State"border="0" color="0" x="1243" y="8" height="52" width="274" name=geographic_state_rid_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2DAT*J" text="Agency Source Id"border="0" color="0" x="1527" y="8" height="52" width="535" name=id_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Agency Source Name"border="0" color="0" x="2071" y="8" height="52" width="1426" name=name_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" baDAT*Lckground.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Source Type"border="0" color="0" x="3506" y="8" height="52" width="379" name=type_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Begin Operation Date"border="0" color="0" x="3895" y="8" height="52" width="649" name=begin_operation_date_t font.face="MS Sans DAT*NSerif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Comments"border="0" color="0" x="4553" y="8" height="52" width="2194" name=comment_text_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="End Operation Date"border="0" cDAT*Polor="0" x="6757" y="8" height="52" width="594" name=end_operation_date_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Incorporated City"border="0" color="0" x="7360" y="8" height="52" width="521" name=geographic_incorp_rid_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" backgrouDAT*Rnd.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Locale"border="0" color="0" x="7890" y="8" height="52" width="274" name=geographic_locale_rid_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Group Flag"border="0" color="0" x="8174" y="8" height="52" width="329" name=group_flag_t font.face="MS Sans Serif" font.heDAT*Tight="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Group Type"border="0" color="0" x="8512" y="8" height="52" width="878" name=group_type_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Location Line 1 Address"border="0" color="0" xDAT*V="9399" y="8" height="52" width="1317" name=location_line_1_addr_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Location Line 2 Address"border="0" color="0" x="10725" y="8" height="52" width="1317" name=location_line_2_addr_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" backgrouDAT*Xnd.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Zip"border="0" color="0" x="12050" y="8" height="52" width="393" name=location_zip_code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="SIC Code"border="0" color="0" x="12453" y="8" height="52" width="279" name=sic_code_t font.face="MS Sans Serif" font.height="-8"DAT*Z font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Operator Id"border="0" color="0" x="12741" y="8" height="52" width="357" name=operator_id_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Operator Code"border="0" color="0" x="13106" y="8" hDAT*\eight="52" width="494" name=operator_code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Operator Name"border="0" color="0" x="13609" y="8" height="52" width="1458" name=operator_name_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912"DAT*^ ) text(band=header alignment="0" text="Naics Code"border="0" color="0" x="15077" y="4" height="76" width="311" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" ) column(band=detail id=1 alignment="1" tabsequence=10 border="0" color="0" x="9" y="8" height="64" width="274" format="[general]" name=rid edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes fonDAT*`t.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=2 alignment="0" tabsequence=20 border="0" color="0" x="293" y="8" height="64" width="658" format="[general]" name=code edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0DAT*b" background.mode="1" background.color="536870912" ) column(band=detail id=3 alignment="1" tabsequence=30 border="0" color="0" x="960" y="8" height="64" width="274" format="[general]" name=geographic_county_rid edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=4 alignment="DAT*d1" tabsequence=40 border="0" color="0" x="1243" y="8" height="64" width="274" format="[general]" name=geographic_state_rid edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=5 alignment="0" tabsequence=50 border="0" color="0" x="1527" y="8" height="64" width="535" format="[geDAT*fneral]" name=id edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=6 alignment="0" tabsequence=60 border="0" color="0" x="2071" y="8" height="64" width="1426" format="[general]" name=name edit.limit=50 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscrolDAT*hl=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=7 alignment="0" tabsequence=70 border="0" color="0" x="3506" y="8" height="64" width="379" format="[general]" name=type edit.limit=1 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.DAT*jcharset="0" background.mode="1" background.color="536870912" ) column(band=detail id=8 alignment="0" tabsequence=80 border="0" color="0" x="3895" y="8" height="64" width="649" format="[general]" name=begin_operation_date edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=9 aDAT*llignment="0" tabsequence=90 border="0" color="0" x="4553" y="8" height="64" width="2194" format="[general]" name=comment_text edit.limit=255 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=10 alignment="0" tabsequence=100 border="0" color="0" x="6757" y="8" height="64" width="594" formDAT*nat="[general]" name=end_operation_date edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=11 alignment="1" tabsequence=110 border="0" color="0" x="7360" y="8" height="64" width="521" format="[general]" name=geographic_incorp_rid edit.limit=0 edit.case=any edit.focusrectangleDAT*p=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=12 alignment="1" tabsequence=120 border="0" color="0" x="7890" y="8" height="64" width="274" format="[general]" name=geographic_locale_rid edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-DAT*8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=13 alignment="0" tabsequence=130 border="0" color="0" x="8174" y="8" height="64" width="329" format="[general]" name=group_flag edit.limit=1 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" backgroDAT*tPDW0800pdw+````< F$+nn``DAT*v @D` DAT*x rid_t< $0%  MS Sans SerifMS Sans Serif$ 2$-8$700$1$ 536870912$ DAT*z9$8$452$<274%RidRid`)! "$&code_t$#@%293$%658%'(Agency Source CodeAgency Source Code`2 * +DAT*|-/geographic_county_rid_t$,960$.<274%01CountyCounty`;)3 468geographic_state_rid_t$51243$7<274%9:StateState`D2< DAT*~=?Aid_t$>N1527$@u535%BCAgency Source IdAgency Source Id`M;E FHJname_t$G2071$I81426%KLAgency Source NameAgency Source Name`VDNDAT* OQStype_t$P 3506$RS{379%TU Source Type Source Type`_MW XZ\begin_operation_date_t$YT73895$[649%]^Begin Operation DateBegin Operation DDAT*ate`hV` acecomment_text_t$b4553$d2194%fg Comments Comments`q_i jlnend_operation_date_t$ke6757$mR594%opEnd ODAT*peration DateEnd Operation Date`zhr suwgeographic_incorp_rid_t$tJ7360$vr 521%xyIncorporated CityIncorporated City`q{ |~geographic_locale_rid_t$}7890$DAT*<274%LocaleLocale`z  group_flag_t$8174$HI329% Group Flag Group Flag`  group_type_t$F@!8512$DAT*n878% Group Type Group Type` location_line_1_addr_t$$9399$ %1317%Location Line 1 AddressLocation Line 1 Address` location_line_2_addrDAT*_t$* )10725$ %1317%Location Line 2 AddressLocation Line 2 Address` location_zip_code_t$L /12050$V393%ZipZip` DAT* sic_code_t$ 012453$=279% SIC Code SIC Code` operator_id_t$ 112741$Ne357% Operator Id Operator Id` DAT*operator_code_t$3 2313106$l494%Operator CodeOperator Code` operator_name_t$ )513609$?1458%Operator NameOperator Name`DAT* < %ArialArial$-12$400$ 16777215$ :15077$4$L76$D7311% Naics Code NDAT*aics Code@@P (rid$ 9$@64$<274& [general] [general]DAT*(code$@%293$658& [general] [general] (geographic_county_rid$960$<DAT*274   ((geographic_state_rid$ 1243$<274 2(id$N1527$u53DAT*5<(2name$2071$81426% "F($type$! 3506$#S{379/DAT*&')+P(.begin_operation_date$(T73895$*649&,- [general] [general]6%013 Z(5 comment_text$24553$DAT*42194=/78:+ d(<end_operation_date$9e6757$;R594D6>?A n(Cgeographic_incorp_rid$@J7360DAT*$Br 521K=EFH x(Jgeographic_locale_rid$G7890$I<274RDLMO (Q group_flag$N8174DAT*$PHI329YKSTV(X group_type$UF@!8512$Wn878`RZ[](_(location_line_1_addr$\$9399$DAT*^ %1317gYabd(f(location_line_2_addr$c* )10725$e %1317n`hik(m location_zip_code$jL /12050DAT*$lV393ugopr(t sic_code$q 012453$s=279|nvwy({ operator_id$x 112741$zDAT*Ne357u}~(operator_code$3 2313106$l494|(2operator_name$ )513609$DAT*?1458  naics_code$ :15077$0$<60$D7311@DAT*@ @@ @  DAT*@3@@% @/ @6 @=  @D DAT* @K @R@Y)@`)@g @n@u@|DAT*@3@@   :as_sourceID  as_sourceID rap_sourcesridrap_sources.ridnullcoderap_sources.codenullgeographic_county_rid"rap_sources.geographic_county_ridnullgeographic_state_rid!rap_sources.geographicDAT*_state_rid nullidrap_sources.idnullnamerap_sources.namenulltyperap_sources.typenullbegin_operation_date!rap_sources.begin_operation_date% comment_textrap_sources.comment_text/end_operation_daterap_sources.end_operation_date6geographic_incorp_rid"rap_sources.geographic_incorp_ridDAT*=nullgeographic_locale_rid"rap_sources.geographic_locale_ridDnull group_flagrap_sources.group_flagK group_typerap_sources.group_typeRlocation_line_1_addr!rap_sources.location_line_1_addrYlocation_line_2_addr!rap_sources.location_line_2_addr`location_zip_coderap_sources.location_zip_codeg sic_codeDAT*rap_sources.sic_coden operator_idrap_sources.operator_iduoperator_coderap_sources.operator_code|operator_namerap_sources.operator_name naics_coderap_sources.naics_codePBSELECT( VERSION(400) TABLE(NAME="rap_sources" ) COLUMN(NAME="rap_sources.rid") COLUMN(NAME="rap_sources.code") COLUMN(NAME="rap_sources.geographic_county_rid") COLUMN(NAME="rap_sources.geograDAT*6 phic_state_rid") COLUMN(NAME="rap_sources.id") COLUMN(NAME="rap_sources.name") COLUMN(NAME="rap_sources.type") COLUMN(NAME="rap_sources.begin_operation_date") COLUMN(NAME="rap_sources.comment_text") COLUMN(NAME="rap_sources.end_operation_date") COLUMN(NAME="rap_sources.geographic_incorp_rid") COLUMN(NAME="rap_sources.geographic_locale_rid") COLUMN(NAME="rap_sources.group_flag") COLUMN(NAME="rap_sources.group_type") COLUMN(NAME="rap_sources.location_line_1_addr") COLUMN(NAME="rap_sources.location_lDAT*und.color="536870912" ) column(band=detail id=14 alignment="0" tabsequence=140 border="0" color="0" x="8512" y="8" height="64" width="878" format="[general]" name=group_type edit.limit=20 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=15 alignment="0" tabsequence=150 border="0" colorDAT*="0" x="9399" y="8" height="64" width="1317" format="[general]" name=location_line_1_addr edit.limit=40 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=16 alignment="0" tabsequence=160 border="0" color="0" x="10725" y="8" height="64" width="1317" format="[general]" name=location_line_DAT*2_addr edit.limit=40 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=17 alignment="0" tabsequence=170 border="0" color="0" x="12050" y="8" height="64" width="393" format="[general]" name=location_zip_code edit.limit=11 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohDAT*Fscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=18 alignment="0" tabsequence=180 border="0" color="0" x="12453" y="8" height="64" width="279" format="[general]" name=sic_code edit.limit=4 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitDAT*bname="rap_devices.name" ) column=(type=char(15) update=yes updatewhereclause=yes name=operator_code dbname="rap_devices.operator_code" ) column=(type=char(15) update=yes updatewhereclause=yes name=operator_id dbname="rap_devices.operator_id" ) column=(type=char(50) update=yes updatewhereclause=yes name=operator_name dbname="rap_devices.operator_name" ) column=(type=char(4) update=yes updatewhereclause=yes name=sic_code dbname="rap_devices.sic_code" ) column=(type=char(6) update=yes updaDAT*tewhereclause=yes name=naics_code dbname="rap_devices.naics_code" ) retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"rap_devices~" ) COLUMN(NAME=~"rap_devices.rid~") COLUMN(NAME=~"rap_devices.code~") COLUMN(NAME=~"rap_devices.id~") COLUMN(NAME=~"rap_devices.source_rid~") COLUMN(NAME=~"rap_devices.comment_text~") COLUMN(NAME=~"rap_devices.dismantle_date~") COLUMN(NAME=~"rap_devices.group_flag~") COLUMN(NAME=~"rap_devices.group_type~") COLUMN(NAME=~"rap_devices.install_date~") COLUMN(NAME=~"rap_devicDAT*es.name~") COLUMN(NAME=~"rap_devices.operator_code~") COLUMN(NAME=~"rap_devices.operator_id~") COLUMN(NAME=~"rap_devices.operator_name~") COLUMN(NAME=~"rap_devices.sic_code~") COLUMN(NAME=~"rap_devices.naics_code~")WHERE( EXP1 =~"rap_devices.id~" OP =~"=~" EXP2 =~":as_deviceID~" LOGIC =~"and~" ) WHERE( EXP1 =~"rap_devices.source_rid~" OP =~"=~" EXP2 =~":al_sourcerid~" ) ) ARG(NAME = ~"as_deviceID~" TYPE = string) ARG(NAME = ~"as_devicecode~" TYPE = string) ARG(NAME = ~"al_sourDAT*cerid~" TYPE = number) " update="rap_devices" updatewhere=1 updatekeyinplace=yes arguments=(("as_deviceID", string),("as_devicecode", string),("al_sourcerid", number)) ) text(band=header alignment="2" text="Rid"border="0" color="0" x="9" y="8" height="52" width="274" name=rid_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Agency Device Code"boDAT*rder="0" color="0" x="293" y="8" height="52" width="658" name=code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Agency Device Id"border="0" color="0" x="960" y="8" height="52" width="535" name=id_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.colDAT*or="536870912" ) text(band=header alignment="2" text="Source Rid"border="0" color="0" x="1504" y="8" height="52" width="334" name=source_rid_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Comments"border="0" color="0" x="1847" y="8" height="52" width="2194" name=comment_text_t font.face="MS Sans Serif" font.height="-8" font.weight="700" fonDAT*t.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Dismantle Date"border="0" color="0" x="4050" y="8" height="52" width="457" name=dismantle_date_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Group Flag"border="0" color="0" x="4517" y="8" height="52" width="329"DAT* name=group_flag_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Group Type"border="0" color="0" x="4855" y="8" height="52" width="658" name=group_type_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2DAT*" text="Install Date"border="0" color="0" x="5522" y="8" height="52" width="352" name=install_date_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Agency Device Name"border="0" color="0" x="5883" y="8" height="52" width="1426" name=name_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset=DAT*"0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Operator Device Code"border="0" color="0" x="7319" y="8" height="52" width="667" name=operator_code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Operator Device Id"border="0" color="0" x="7995" y="8" height="52" width="576" name=operator_id_t font.fDAT*ace="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Operator Device Name"border="0" color="0" x="8581" y="8" height="52" width="1426" name=operator_name_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="SIC CDAT*ode"border="0" color="0" x="10016" y="8" height="52" width="279" name=sic_code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="0" text="Naics Code"border="0" color="0" x="10304" y="8" height="52" width="238" font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color=DAT*"16777215" ) column(band=detail id=1 alignment="1" tabsequence=10 border="0" color="0" x="9" y="8" height="64" width="274" format="[general]" name=rid edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=2 alignment="0" tabsequence=20 border="0" color="0" x="293" y="8" height=DAT*"64" width="658" format="[general]" name=code edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=3 alignment="0" tabsequence=30 border="0" color="0" x="960" y="8" height="64" width="535" format="[general]" name=id edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoDAT*select=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=4 alignment="1" tabsequence=40 border="0" color="0" x="1504" y="8" height="64" width="334" format="[general]" name=source_rid edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" fontDAT*.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=5 alignment="0" tabsequence=50 border="0" color="0" x="1847" y="8" height="64" width="2194" format="[general]" name=comment_text edit.limit=255 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )DAT* column(band=detail id=6 alignment="0" tabsequence=60 border="0" color="0" x="4050" y="8" height="64" width="457" format="[general]" name=dismantle_date edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=7 alignment="0" tabsequence=70 border="0" color="0" x="4517" y="8" heigDAT*ht="64" width="329" format="[general]" name=group_flag edit.limit=1 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=8 alignment="0" tabsequence=80 border="0" color="0" x="4855" y="8" height="64" width="658" format="[general]" name=group_type edit.limit=20 edit.case=any edit.focusrectaDAT*ngle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=9 alignment="0" tabsequence=90 border="0" color="0" x="5522" y="8" height="64" width="352" format="[general]" name=install_date edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" fontDAT*.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=10 alignment="0" tabsequence=100 border="0" color="0" x="5883" y="8" height="64" width="1426" format="[general]" name=name edit.limit=50 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="DAT*536870912" ) column(band=detail id=11 alignment="0" tabsequence=110 border="0" color="0" x="7319" y="8" height="64" width="667" format="[general]" name=operator_code edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=12 alignment="0" tabsequence=120 border="0" color="0" x="DAT*7995" y="8" height="64" width="576" format="[general]" name=operator_id edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=13 alignment="0" tabsequence=130 border="0" color="0" x="8581" y="8" height="64" width="1426" format="[general]" name=operator_name edit.limit=50 edit.DAT*0case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=14 alignment="0" tabsequence=140 border="0" color="0" x="10016" y="8" height="64" width="279" format="[general]" name=sic_code edit.limit=4 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans SerifDAT*PDW0800Updw+````.) F$Unn``DAT*P @D` DAT* rid_t< $0%  MS Sans SerifMS Sans Serif$ 2$-8$700$1$ 536870912$ DAT*9$8$452$<274%RidRid`)! "$&code_t$#@%293$%658%'(Agency Device CodeAgency Device Code`2 * +DAT*-/id_t$,960$.u535%01Agency Device IdAgency Device Id`;)3 468 source_rid_t$5I1504$7IN334%9: Source Rid Source Rid`D2<DAT* =?Acomment_text_t$>71847$@2194%BC Comments Comments`M;E FHJdismantle_date_t$Gv4050$Id457%KLDismantle DateDismantle Date`VDNDAT* OQS group_flag_t$P4517$RHI329%TU Group Flag Group Flag`_MW XZ\ group_type_t$Y&4855$[658%]^ Group Type Group Type`hV`DAT* aceinstall_date_t$b5522$dM`352%fg Install Date Install Date`q_i jlnname_t$k5883$m81426%opAgency Device NameAgency Device NamDAT*e`zhr suwoperator_code_t$tA7319$v667%xyOperator Device CodeOperator Device Code`q{ |~operator_id_t$};7995$~@576%DAT*Operator Device IdOperator Device Id`z operator_name_t$U!8581$81426%Operator Device NameOperator Device Name`  sic_code_t$ '10016$DAT*=279% SIC Code SIC Code` $ 16777215$@(10304$4238% Naics Code Naics Code@@PDAT* (rid$ 9$@64$<274& [general] [general](code$@DAT*%293$658& [general] [general](id$960$u535(( DAT* source_rid$I1504$IN3342( comment_text$71847$2194<(dismantle_DAT* date$v4050$d457& [general] [general]F( group_flag$4517$HI329P(DAT* group_type$&4855$658 Z( install_date$5522$M`352 d(DAT*2name$5883$81426 n(operator_code$A7319$667 x(DAT* operator_id$;7995$~@576 (2operator_name$U!8581$81426  (  DAT*sic_code$  '10016$ =279  naics_code$ 553648127$@(10304$4238@! DAT*O@$"# @'%&@*()-+,DAT* 0./@312 @645@978@<:; @?=> 3@B@A @EDAT*CD @HFG 3@KIJ@NLM@ :as_deviceID:al_sourcerid as_deviceIDas_devicecode al_sourcerid rap_devicesridrap_devices.ridcoderap_devices.codeDAT*idrap_devices.id source_ridrap_devices.source_rid comment_textrap_devices.comment_textdismantle_daterap_devices.dismantle_date group_flagrap_devices.group_flag group_typerap_devices.group_type install_daterap_devices.install_datenamerap_devices.nameopeDAT*0 rator_coderap_devices.operator_code operator_idrap_devices.operator_idoperator_namerap_devices.operator_name sic_coderap_devices.sic_code naics_coderap_devices.naics_codeiPBSELECT( VERSION(400) TABLE(NAME="rap_devices" ) COLUMN(NAME="rap_devices.rid") COLUMN(NAME="rap_devices.code") COLUMN(NAME="rap_devices.id") COLUMN(NAME="rap_devices.source_rid") COLUDAT* release 6; datawindow(units=0 timer_interval=0 color=16777215 processing=1 print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.prompt=no print.buttons=no print.preview.buttons=no grid.lines=0 ) header(height=68 color="536870912" ) summary(height=0 color="536870912" ) footer(height=0 color="536870912" ) detail(height=80 color="536870912" ) table(column=(typDAT*"e=decimal(0) update=yes updatewhereclause=yes name=rid dbname="rap_processes.rid" ) column=(type=char(15) update=yes updatewhereclause=yes name=code dbname="rap_processes.code" ) column=(type=decimal(0) update=yes updatewhereclause=yes key=yes name=device_rid dbname="rap_processes.device_rid" ) column=(type=char(15) update=yes updatewhereclause=yes key=yes name=id dbname="rap_processes.id" ) column=(type=char(255) update=yes updatewhereclause=yes name=comment_text dbname="rap_processes.comDAT*$ment_text" ) column=(type=char(2) update=yes updatewhereclause=yes name=daily_schedule_code dbname="rap_processes.daily_schedule_code" ) column=(type=char(1) update=yes updatewhereclause=yes name=group_flag dbname="rap_processes.group_flag" ) column=(type=char(20) update=yes updatewhereclause=yes name=group_type dbname="rap_processes.group_type" ) column=(type=char(6) update=yes updatewhereclause=yes name=mode_type dbname="rap_processes.mode_type" ) column=(type=char(50) update=yes updatDAT*&ewhereclause=yes name=name dbname="rap_processes.name" ) column=(type=char(15) update=yes updatewhereclause=yes name=operator_code dbname="rap_processes.operator_code" ) column=(type=char(15) update=yes updatewhereclause=yes name=operator_id dbname="rap_processes.operator_id" ) column=(type=char(50) update=yes updatewhereclause=yes name=operator_name dbname="rap_processes.operator_name" ) column=(type=char(12) update=yes updatewhereclause=yes name=primary_material_code dbname="rap_processeDAT*(s.primary_material_code" ) column=(type=char(10) update=yes updatewhereclause=yes name=scc_ams_code dbname="rap_processes.scc_ams_code" ) column=(type=char(2) update=yes updatewhereclause=yes name=weekly_schedule_code dbname="rap_processes.weekly_schedule_code" ) column=(type=char(2) update=yes updatewhereclause=yes name=yearly_schedule_code dbname="rap_processes.yearly_schedule_code" ) retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"rap_processes~" ) COLUMN(NAME=~"rap_processes.rid~") COLUMDAT**N(NAME=~"rap_processes.code~") COLUMN(NAME=~"rap_processes.device_rid~") COLUMN(NAME=~"rap_processes.id~") COLUMN(NAME=~"rap_processes.comment_text~") COLUMN(NAME=~"rap_processes.daily_schedule_code~") COLUMN(NAME=~"rap_processes.group_flag~") COLUMN(NAME=~"rap_processes.group_type~") COLUMN(NAME=~"rap_processes.mode_type~") COLUMN(NAME=~"rap_processes.name~") COLUMN(NAME=~"rap_processes.operator_code~") COLUMN(NAME=~"rap_processes.operator_id~") COLUMN(NAME=~"rap_processes.operator_name~") COLUMNDAT*,(NAME=~"rap_processes.primary_material_code~") COLUMN(NAME=~"rap_processes.scc_ams_code~") COLUMN(NAME=~"rap_processes.weekly_schedule_code~") COLUMN(NAME=~"rap_processes.yearly_schedule_code~")WHERE( EXP1 =~"rap_processes.device_rid~" OP =~"=~" EXP2 =~":al_devicerid~" LOGIC =~"and~" ) WHERE( EXP1 =~"rap_processes.id~" OP =~"=~" EXP2 =~":as_processid~" ) ) ARG(NAME = ~"al_devicerid~" TYPE = number) ARG(NAME = ~"as_processid~" TYPE = string) " update="rap_processes" updatewhere=DAT*.1 updatekeyinplace=yes arguments=(("al_devicerid", number),("as_processid", string)) ) text(band=header alignment="2" text="Rid"border="0" color="0" x="9" y="8" height="52" width="274" name=rid_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Agency Process Code"border="0" color="0" x="293" y="8" height="52" width="658" name=code_t font.face="DAT*0MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Device Rid"border="0" color="0" x="960" y="8" height="52" width="334" name=device_rid_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Agency Process Id"border=DAT*2"0" color="0" x="1303" y="8" height="52" width="562" name=id_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Comments"border="0" color="0" x="1874" y="8" height="52" width="2194" name=comment_text_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.colorDAT*4="536870912" ) text(band=header alignment="2" text="Daily Schedule Code"border="0" color="0" x="4078" y="8" height="52" width="626" name=daily_schedule_code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Group Flag"border="0" color="0" x="4713" y="8" height="52" width="329" name=group_flag_t font.face="MS Sans Serif" font.height="-8" font.weDAT*6ight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Group Type"border="0" color="0" x="5051" y="8" height="52" width="878" name=group_type_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Mode"border="0" color="0" x="5938" y="8" height="52" width="265DAT*8" name=mode_type_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Agency Process Name"border="0" color="0" x="6213" y="8" height="52" width="1755" name=name_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignmenDAT*:t="2" text="Operator Process Code"border="0" color="0" x="7977" y="8" height="52" width="695" name=operator_code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Operator Process Id"border="0" color="0" x="8681" y="8" height="52" width="603" name=operator_id_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.piDAT*<tch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Operator Process Name"border="0" color="0" x="9294" y="8" height="52" width="1755" name=operator_name_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Primary Material Code"border="0" color="0" x="11058" y="8" height="52" width="658" DAT*> name=primary_material_code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="SCC AMS Code"border="0" color="0" x="11726" y="8" height="52" width="453" name=scc_ams_code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=headDAT*@er alignment="2" text="Weekly Schedule Code"border="0" color="0" x="12187" y="8" height="52" width="695" name=weekly_schedule_code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Yearly Schedule Code"border="0" color="0" x="12891" y="8" height="52" width="663" name=yearly_schedule_code_t font.face="MS Sans Serif" font.height="-8" font.weight="DAT*B700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=1 alignment="1" tabsequence=10 border="0" color="0" x="9" y="8" height="64" width="274" format="[general]" name=rid edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) colDAT*Dumn(band=detail id=2 alignment="0" tabsequence=20 border="0" color="0" x="293" y="8" height="64" width="658" format="[general]" name=code edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=3 alignment="1" tabsequence=30 border="0" color="0" x="960" y="8" height="64" width="3DAT*F34" format="[general]" name=device_rid edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=4 alignment="0" tabsequence=40 border="0" color="0" x="1303" y="8" height="64" width="562" format="[general]" name=id edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=DAT*Hyes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=5 alignment="0" tabsequence=50 border="0" color="0" x="1874" y="8" height="64" width="2194" format="[general]" name=comment_text edit.limit=255 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.fDAT*Jamily="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=6 alignment="0" tabsequence=60 border="0" color="0" x="4078" y="8" height="64" width="626" format="[general]" name=daily_schedule_code edit.limit=2 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912"DAT*L ) column(band=detail id=7 alignment="0" tabsequence=70 border="0" color="0" x="4713" y="8" height="64" width="329" format="[general]" name=group_flag edit.limit=1 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=8 alignment="0" tabsequence=80 border="0" color="0" x="5051" y="8" heightDAT*N="64" width="878" format="[general]" name=group_type edit.limit=20 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=9 alignment="0" tabsequence=90 border="0" color="0" x="5938" y="8" height="64" width="265" format="[general]" name=mode_type edit.limit=6 edit.case=any edit.focusrectanglDAT*Pe=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=10 alignment="0" tabsequence=100 border="0" color="0" x="6213" y="8" height="64" width="1755" format="[general]" name=name edit.limit=50 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weightDAT*R="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=11 alignment="0" tabsequence=110 border="0" color="0" x="7977" y="8" height="64" width="695" format="[general]" name=operator_code edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color=DAT*T"536870912" ) column(band=detail id=12 alignment="0" tabsequence=120 border="0" color="0" x="8681" y="8" height="64" width="603" format="[general]" name=operator_id edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=13 alignment="0" tabsequence=130 border="0" color="0" x="9DAT*V294" y="8" height="64" width="1755" format="[general]" name=operator_name edit.limit=50 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=14 alignment="0" tabsequence=140 border="0" color="0" x="11058" y="8" height="64" width="658" format="[general]" name=primary_material_code edit.limiDAT*Xt=12 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=15 alignment="0" tabsequence=150 border="0" color="0" x="11726" y="8" height="64" width="453" format="[general]" name=scc_ams_code edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.faceDAT*Z="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=16 alignment="0" tabsequence=160 border="0" color="0" x="12187" y="8" height="64" width="695" format="[general]" name=weekly_schedule_code edit.limit=2 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" foDAT*\nt.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=17 alignment="0" tabsequence=170 border="0" color="0" x="12891" y="8" height="64" width="663" format="[general]" name=yearly_schedule_code edit.limit=2 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) htmltable(border="1DAT*B" cellpadding="0" cellspacing="0" generatecss="no" nowrap="yes") NOD*j8.s ENT*0600I7A$d_nei_dataset_county_activities.dwoENT*0600XcPA$d_nei_dataset_county_activities.srdENT*0600,G7A#d_nei_dataset_state_activities.dwoENT*0600cNQ\<#d_nei_dataset_state_activities.srdENT*0600dA d_ds_nei_import_rapids_base.udoENT*0600d A d_ds_nei_import_rapids_base.sruENT*0600>7A d_nei_import_rap_activities.dwoENT*0600iEA d_nei_import_rap_activities.srdENT*0600$27Ad_nei_import_rap_devices.dwoENT*0600G5XX?d_nei_import_rap_devices.srdENT*0600j77Ad_nei_import_rap_processes.dwoENT*0600 =ʣ<d_nei_import_rap_processes.srdENT*0600rgF7Ad_nei_import_rap_sources.dwoENT*06002M`?d_nei_import_rap_sources.srdENT*06007Ad_nei_import_rap_streams.dwoENT*0600L<d_nei_import_rap_streams.srdENT*0600|R7A'd_nei_rap_tmp_ctr_equip_activities.dwoENT*0600YqA'd_nei_rap_tmp_ctr_equip_activities.srdENT*0600$ j :<%d_nei_import_rap_reference_codes.srdENT*0600$ 7A%d_nei_import_rap_reference_codes.dwoENT*06008V7A"d_nei_rap_tmp_emis_activities.dwoENT*0600X^8A"d_nei_rap_tmp_emis_activities.srdENT*0600@7A)d_nei_rap_tmp_emis_period_activities.dwoENT*0600EA)d_nei_rap_tmp_emis_period_activities.srdENT*0600jd7A&d_nei_rap_tmp_emis_rel_pt_devices.dwoENT*0600 ( <,d_nei_import_rap_process_spec_schedules.srdENT*0600~ Z(7A,d_nei_import_rap_process_spec_schedules.dwoENT*0600oA&d_nei_rap_tmp_emis_rel_pt_devices.srdENT*0600aF7A$d_nei_rap_tmp_emis_unit_devices.dwoENT*0600 8&<#d_nei_import_rap_group_members.srdENT*0600 7A#d_nei_import_rap_group_members.dwoENT*0600KA$d_nei_rap_tmp_emis_unit_devices.srdENT*0600*7Ad_nei_rap_tmp_processes.dwoENT*0600"A&<!d_nei_import_rap_connections.srdENT*0600" g7A!d_nei_import_rap_connections.dwoENT*0600ȓAd_nei_rap_tmp_processes.srdENT*0600"o<*d_nei_import_rap_location_coordinates.srdENT*0600| g 7A*d_nei_import_rap_location_coordinates.dwoENT*0600. <%d_nei_import_rap_location_groups.srdENT*0600 7A%d_nei_import_rap_location_groups.dwoENT*0600D4,GBA}d_nei_import_files.srdENT*0600f467Ad_nei_import_files.dwoENT*0600, 7A d_nei_import_cityrid_lookup.dwoENT*0600fA} d_nei_import_cityrid_lookup.srdENT*0600eA#d_ds_nei_import_cityrid_lookup.udoENT*0600/nA#d_ds_nei_import_cityrid_lookup.sruDAT*lPDW0800tpdw+21````4 F$"tnn``DAT*no @D` DAT*p rid_t< $0%  MS Sans SerifMS Sans Serif$ 2$-8$700$1$ 536870912$ DAT*r9$8$452$<274%RidRid`)! "$&code_t$#@%293$%658%'(Agency Process CodeAgency Process Code`2 * +DAT*t-/ device_rid_t$,960$.IN334%01 Device Rid Device Rid`;)3 468id_t$51303$7{2562%9:Agency Process IdAgency Process Id`D2<DAT*v =?Acomment_text_t$>R1874$@2194%BC Comments Comments`M;E FHJdaily_schedule_code_t$G|4078$Ir626%KLDaily Schedule CodeDaily Schedule Code`VDNDAT*x OQS group_flag_t$Pi4713$RHI329%TU Group Flag Group Flag`_MW XZ\ group_type_t$YQ5051$[n878%]^ Group Type Group Type`hDAT*zV` ace mode_type_t$b25938$d: 265%fgModeMode`q_i jlnname_t$kOE6213$m1755%opAgency Process NameAgency Process NDAT*|ame`zhr suwoperator_code_t$t)7977$v695%xyOperator Process CodeOperator Process Code`q{ |~operator_id_t$}k!8681$[603%DAT*~Operator Process IdOperator Process Id`z operator_name_t$N$9294$1755%Operator Process NameOperator Process Name` primary_material_code_t$s 2+DAT*11058$658%Primary Material CodePrimary Material Code` scc_ams_code_t$ -11726$c453% SCC AMS Code SCC AMS Code` weekly_DAT*schedule_code_t$j /12187$695%Weekly Schedule CodeWeekly Schedule Code` yearly_schedule_code_t$ [212891$663%Yearly Schedule CodeYearly Schedule Code@DAT*@P* (rid$ 9$@64$<274& [general] [general]DAT*(code$@%293$658& [general] [general]( device_rid$960$IN334DAT*((id$1303${25622( comment_text$R1874$2194DAT*<(daily_schedule_code$|4078$r626F( group_flag$i4713$HI329DAT*P( group_type$Q5051$n878 Z( mode_type$25938$: 265DAT* d(2name$OE6213$1755 n(operator_code$)7977$695  DAT* x(  operator_id$ k!8681$ [603 (2operator_name$N$9294$1755DAT*( primary_material_code$s 2+11058$658# (" scc_ams_code$ -11726$!c453*$%'DAT*()weekly_schedule_code$&j /12187$(695#+,.(0yearly_schedule_code$- [212891$/663@36:DAT*9n@=;< @@>?@CAB FDAT*DEIGH@LJK@OMN@RPQ@UST @XVW 3@[YZ DAT*@^\] @a_` 3@dbc @gef @j#hi@m*kl@45:al_devicerid:as_processid78 al_devicerid as_proDAT*cessidrap_processesridrap_processes.ridcoderap_processes.code device_ridrap_processes.device_rididrap_processes.id comment_textrap_processes.comment_textdaily_schedule_code"rap_processes.daily_schedule_code group_flagrap_processes.group_flag group_typerap_processes.group_DAT*type mode_typerap_processes.mode_typenamerap_processes.nameoperator_coderap_processes.operator_code operator_idrap_processes.operator_idoperator_namerap_processes.operator_nameprimary_material_code$rap_processes.primary_material_code scc_ams_coderap_processes.scc_ams_codeDAT*weekly_schedule_code#rap_processes.weekly_schedule_code#yearly_schedule_code#rap_processes.yearly_schedule_code*PBSELECT( VERSION(400) TABLE(NAME="rap_processes" ) COLUMN(NAME="rap_processes.rid") COLUMN(NAME="rap_processes.code") COLUMN(NAME="rap_processes.device_rid") COLUMN(NAME="rap_processes.id") COLUMN(NAME="rap_processes.comment_text") COLUMN(NAME="rap_processes.daily_schedule_code") COLUMN(NAME="rap_processes.group_flag") COLUMN(NAMEDAT*4 ="rap_processes.group_type") COLUMN(NAME="rap_processes.mode_type") COLUMN(NAME="rap_processes.name") COLUMN(NAME="rap_processes.operator_code") COLUMN(NAME="rap_processes.operator_id") COLUMN(NAME="rap_processes.operator_name") COLUMN(NAME="rap_processes.primary_material_code") COLUMN(NAME="rap_processes.scc_ams_code") COLUMN(NAME="rap_processes.weekly_schedule_code") COLUMN(NAME="rap_processes.yearly_schedule_code")WHERE( EXP1 ="rap_processes.device_rid" OP ="=" EXP2 ="" LOGIC ="and"DAT*release 6; datawindow(units=0 timer_interval=0 color=16777215 processing=1 print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.prompt=no print.buttons=no print.preview.buttons=no grid.lines=0 ) header(height=68 color="536870912" ) summary(height=0 color="536870912" ) footer(height=0 color="536870912" ) detail(height=80 color="536870912" ) table(column=(typDAT*e=decimal(0) update=yes updatewhereclause=yes name=rid dbname="rap_streams.rid" ) column=(type=char(15) update=yes updatewhereclause=yes name=code dbname="rap_streams.code" ) column=(type=char(20) update=yes updatewhereclause=yes key=yes name=id dbname="rap_streams.id" ) column=(type=decimal(0) update=yes updatewhereclause=yes name=from_process_rid dbname="rap_streams.from_process_rid" ) column=(type=char(50) update=yes updatewhereclause=yes name=name dbname="rap_streams.name" ) column=(DAT*type=decimal(0) update=yes updatewhereclause=yes name=to_process_rid dbname="rap_streams.to_process_rid" ) retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"rap_streams~" ) COLUMN(NAME=~"rap_streams.rid~") COLUMN(NAME=~"rap_streams.code~") COLUMN(NAME=~"rap_streams.id~") COLUMN(NAME=~"rap_streams.from_process_rid~") COLUMN(NAME=~"rap_streams.name~") COLUMN(NAME=~"rap_streams.to_process_rid~")WHERE( EXP1 =~"rap_streams.id~" OP =~"=~" EXP2 =~":as_streamid~" ) ) ARG(NAME = ~"as_streamid~" TYPE DAT*= string) " update="rap_streams" updatewhere=1 updatekeyinplace=yes arguments=(("as_streamid", string)) ) text(band=header alignment="2" text="Rid"border="0" color="0" x="9" y="8" height="52" width="274" name=rid_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Code"border="0" color="0" x="293" y="8" height="52" width="658" name=code_t font.faDAT*ce="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Agency Stream Id"border="0" color="0" x="960" y="8" height="52" width="530" name=id_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="From Process Rid"borderDAT*="0" color="0" x="1499" y="8" height="52" width="526" name=from_process_rid_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Name"border="0" color="0" x="2034" y="8" height="52" width="1426" name=name_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.coDAT*lor="536870912" ) text(band=header alignment="2" text="To Process Rid"border="0" color="0" x="3470" y="8" height="52" width="462" name=to_process_rid_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=1 alignment="1" tabsequence=10 border="0" color="0" x="9" y="8" height="64" width="274" format="[general]" name=rid edit.limit=0 edit.case=any edit.focusrectangleDAT*=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=2 alignment="0" tabsequence=20 border="0" color="0" x="293" y="8" height="64" width="658" format="[general]" name=code edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700DAT*" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=3 alignment="0" tabsequence=30 border="0" color="0" x="960" y="8" height="64" width="530" format="[general]" name=id edit.limit=20 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) coluDAT*mn(band=detail id=4 alignment="1" tabsequence=40 border="0" color="0" x="1499" y="8" height="64" width="526" format="[general]" name=from_process_rid edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=5 alignment="0" tabsequence=50 border="0" color="0" x="2034" y="8" height="DAT*64" width="1426" format="[general]" name=name edit.limit=50 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=6 alignment="1" tabsequence=60 border="0" color="0" x="3470" y="8" height="64" width="462" format="[general]" name=to_process_rid edit.limit=0 edit.case=any edit.focusrectangle=DAT*$no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) htmltable(border="1" cellpadding="0" cellspacing="0" generatecss="no" nowrap="yes") DAT*PDW0800pdw+MN````\ F$ nn``DAT* @DD` DAT* rid_t< $0%  MS Sans SerifMS Sans Serif$ 2$-8$700$1$ 536870912$ DAT*9$8$452$<274%RidRid`)! "$&code_t$#@%293$%658%'(CodeCode`2 * +-/DAT*id_t$,960$.t530%01Agency Stream IdAgency Stream Id`;)3 468from_process_rid_t$5H1499$7s526%9:From Process RidFrom Process Rid`D2< =DAT*?Aname_t$>2034$@81426%BCNameName`;E FHJto_process_rid_t$G 3470$Ie462%KLTo Process RidTo Process Rid@DAT*@POz[PNQSUW (Zrid$R 9$T@64$V<274&XY [general] [general]eO\N]S_aDAT*(dcode$^@%293$`658&bc [general] [general]l[fNgSia(kid$h960$jt530semNnDAT*SpW((rfrom_process_rid$oH1499$qs526zltNuSwa2(y2name$v2034$x81426s{N|S~DAT*W<(to_process_rid$} 3470$e462@@DAT*O @[@el @s3@z @ ure :as_streamid 68 DAT*as_streamid rap_streamsridrap_streams.ridOcoderap_streams.code[idrap_streams.idefrom_process_ridrap_streams.from_process_ridlnamerap_streams.namesto_process_ridrap_streams.to_process_ridziPBSELECT( VERSION(400) TABLE(NAME="rap_streams" ) COLUMN(NAME="rap_streams.rid") COLUMN(NAME="rap_streams.code") COLUMN(NAMEDAT*Q="rap_streams.id") COLUMN(NAME="rap_streams.from_process_rid") COLUMN(NAME="rap_streams.name") COLUMN(NAME="rap_streams.to_process_rid")WHERE( EXP1 ="rap_streams.id" OP ="=" EXP2 ="" ) ) ARG(NAME = "as_streamid" TYPE = string) "no"yesDAT*release 6; datawindow(units=0 timer_interval=0 color=16777215 processing=1 print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.prompt=no print.buttons=no print.preview.buttons=no grid.lines=0 ) header(height=68 color="536870912" ) summary(height=0 color="536870912" ) footer(height=0 color="536870912" ) detail(height=80 color="536870912" ) table(column=(typDAT*e=decimal(0) update=yes updatewhereclause=yes name=rid dbname="rap_activities.rid" ) column=(type=datetime update=yes updatewhereclause=yes name=creation_date_time dbname="rap_activities.creation_date_time" ) column=(type=char(12) update=yes updatewhereclause=yes key=yes name=metric_code dbname="rap_activities.metric_code" ) column=(type=char(3) update=yes updatewhereclause=yes key=yes name=metric_level_type dbname="rap_activities.metric_level_type" ) column=(type=decimal(0) update=yes updDAT*atewhereclause=yes key=yes name=ref_rid dbname="rap_activities.ref_rid" ) column=(type=datetime update=yes updatewhereclause=yes key=yes name=start_date_time dbname="rap_activities.start_date_time" ) column=(type=char(4) update=yes updatewhereclause=yes name=user_id dbname="rap_activities.user_id" ) column=(type=char(12) update=yes updatewhereclause=yes name=value dbname="rap_activities.value" ) column=(type=char(255) update=yes updatewhereclause=yes name=comment_text dbname="rap_activitieDAT*s.comment_text" ) column=(type=char(1) update=yes updatewhereclause=yes name=confidential_flag dbname="rap_activities.confidential_flag" ) column=(type=char(4) update=yes updatewhereclause=yes key=yes name=data_code dbname="rap_activities.data_code" ) column=(type=datetime update=yes updatewhereclause=yes key=yes name=end_date_time dbname="rap_activities.end_date_time" ) column=(type=char(12) update=yes updatewhereclause=yes key=yes name=material_code dbname="rap_activities.material_code" DAT*) column=(type=char(2) update=yes updatewhereclause=yes name=method_type dbname="rap_activities.method_type" ) column=(type=char(12) update=yes updatewhereclause=yes key=yes name=reference_code dbname="rap_activities.reference_code" ) column=(type=char(6) update=yes updatewhereclause=yes name=reference_type dbname="rap_activities.reference_type" ) column=(type=real update=yes updatewhereclause=yes name=value_amt dbname="rap_activities.value_amt" ) column=(type=char(3) update=yes updatewhDAT*ereclause=yes key=yes name=value_type dbname="rap_activities.value_type" ) column=(type=char(8) update=yes updatewhereclause=yes name=value_unit_code dbname="rap_activities.value_unit_code" ) retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"rap_activities~" ) COLUMN(NAME=~"rap_activities.rid~") COLUMN(NAME=~"rap_activities.creation_date_time~") COLUMN(NAME=~"rap_activities.metric_code~") COLUMN(NAME=~"rap_activities.metric_level_type~") COLUMN(NAME=~"rap_activities.ref_rid~") COLUMN(NAME=~"rap_acDAT*tivities.start_date_time~") COLUMN(NAME=~"rap_activities.user_id~") COLUMN(NAME=~"rap_activities.value~") COLUMN(NAME=~"rap_activities.comment_text~") COLUMN(NAME=~"rap_activities.confidential_flag~") COLUMN(NAME=~"rap_activities.data_code~") COLUMN(NAME=~"rap_activities.end_date_time~") COLUMN(NAME=~"rap_activities.material_code~") COLUMN(NAME=~"rap_activities.method_type~") COLUMN(NAME=~"rap_activities.reference_code~") COLUMN(NAME=~"rap_activities.reference_type~") COLUMN(NAME=~"rap_activities.DAT*value_amt~") COLUMN(NAME=~"rap_activities.value_type~") COLUMN(NAME=~"rap_activities.value_unit_code~")WHERE( EXP1 =~"rap_activities.ref_rid~" OP =~"=~" EXP2 =~":ref_rid~" LOGIC =~"and~" ) WHERE( EXP1 =~"rap_activities.metric_code~" OP =~"=~" EXP2 =~":metric_code~" LOGIC =~"and~" ) WHERE( EXP1 =~"rap_activities.metric_level_type~" OP =~"=~" EXP2 =~":metric_level_type~" LOGIC =~"and~" ) WHERE( EXP1 =~"rap_activities.start_date_time~" OP =~"=~" EXP2 =~":startDAT*_date_time~" ) ) ARG(NAME = ~"ref_rid~" TYPE = number) ARG(NAME = ~"metric_code~" TYPE = string) ARG(NAME = ~"metric_level_type~" TYPE = string) ARG(NAME = ~"start_date_time~" TYPE = datetime) " update="rap_activities" updatewhere=1 updatekeyinplace=yes arguments=(("ref_rid", number),("metric_code", string),("metric_level_type", string),("start_date_time", datetime)) ) text(band=header alignment="2" text="Rid"border="0" color="0" x="9" y="8" height="52" width="274" name=rid_t font.face="MS SDAT*ans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Creation Date Time"border="0" color="0" x="293" y="8" height="52" width="581" name=creation_date_time_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Metric Code"bDAT*order="0" color="0" x="882" y="8" height="52" width="549" name=metric_code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Metric Level Type"border="0" color="0" x="1440" y="8" height="52" width="544" name=metric_level_type_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" backgrounDAT*d.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Ref Rid"border="0" color="0" x="1993" y="8" height="52" width="274" name=ref_rid_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Start Date Time"border="0" color="0" x="2277" y="8" height="52" width="475" name=start_date_time_t font.face="MS Sans Serif" font.heightDAT*="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Who"border="0" color="0" x="2761" y="8" height="52" width="219" name=user_id_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Value"border="0" color="0" x="2990" y="8" height="52" width=DAT*"549" name=value_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Comments"border="0" color="0" x="3547" y="8" height="52" width="2194" name=comment_text_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="DAT*2" text="Confidential"border="0" color="0" x="5751" y="8" height="52" width="361" name=confidential_flag_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Data Code"border="0" color="0" x="6121" y="8" height="52" width="315" name=data_code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charsetDAT*="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="End Date Time"border="0" color="0" x="6446" y="8" height="52" width="549" name=end_date_time_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Material Code"border="0" color="0" x="7003" y="8" height="52" width="549" name=material_code_t font.face="MS SDAT*ans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Method Type"border="0" color="0" x="7561" y="8" height="52" width="389" name=method_type_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Reference Code"border="0" DAT*color="0" x="7959" y="8" height="52" width="549" name=reference_code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Reference Type"border="0" color="0" x="8517" y="8" height="52" width="480" name=reference_type_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" bDAT*ackground.color="536870912" ) text(band=header alignment="2" text="Value Amount"border="0" color="0" x="9006" y="8" height="52" width="658" name=value_amt_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Value Type"border="0" color="0" x="9673" y="8" height="52" width="338" name=value_type_t font.face="MS Sans Serif" font.height="-8" font.weigDAT*ht="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Value Unit Code"border="0" color="0" x="10021" y="8" height="52" width="489" name=value_unit_code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=1 alignment="1" tabsequence=10 border="0" color="0" x="9" y="8" heighDAT*t="64" width="274" format="[general]" name=rid edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=2 alignment="0" tabsequence=20 border="0" color="0" x="293" y="8" height="64" width="581" format="[shortdate] [time]" name=creation_date_time edit.limit=0 edit.case=any edit.focDAT* usrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=3 alignment="0" tabsequence=30 border="0" color="0" x="882" y="8" height="64" width="549" format="[general]" name=metric_code edit.limit=12 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8DAT* " font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=4 alignment="0" tabsequence=40 border="0" color="0" x="1440" y="8" height="64" width="544" format="[general]" name=metric_level_type edit.limit=3 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" bacDAT* kground.color="536870912" ) column(band=detail id=5 alignment="1" tabsequence=50 border="0" color="0" x="1993" y="8" height="64" width="274" format="[general]" name=ref_rid edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=6 alignment="0" tabsequence=60 border="0" color="0"DAT*  x="2277" y="8" height="64" width="475" format="[shortdate] [time]" name=start_date_time edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=7 alignment="0" tabsequence=70 border="0" color="0" x="2761" y="8" height="64" width="219" format="[general]" name=user_id edit.limit=4DAT*  edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=8 alignment="0" tabsequence=80 border="0" color="0" x="2990" y="8" height="64" width="549" format="[general]" name=value edit.limit=12 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans SeriDAT* f" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=9 alignment="0" tabsequence=90 border="0" color="0" x="3547" y="8" height="64" width="2194" format="[general]" name=comment_text edit.limit=255 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" backgroDAT* und.mode="1" background.color="536870912" ) column(band=detail id=10 alignment="0" tabsequence=100 border="0" color="0" x="5751" y="8" height="64" width="361" format="[general]" name=confidential_flag edit.limit=1 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=11 alignment="0" tabseqDAT* uence=110 border="0" color="0" x="6121" y="8" height="64" width="315" format="[general]" name=data_code edit.limit=4 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=12 alignment="0" tabsequence=120 border="0" color="0" x="6446" y="8" height="64" width="549" format="[shortdate] [time]" DAT*  name=end_date_time edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=13 alignment="0" tabsequence=130 border="0" color="0" x="7003" y="8" height="64" width="549" format="[general]" name=material_code edit.limit=12 edit.case=any edit.focusrectangle=no edit.autoselect=yes ediDAT* t.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=14 alignment="0" tabsequence=140 border="0" color="0" x="7561" y="8" height="64" width="389" format="[general]" name=method_type edit.limit=2 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2"DAT*  font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=15 alignment="0" tabsequence=150 border="0" color="0" x="7959" y="8" height="64" width="549" format="[general]" name=reference_code edit.limit=12 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(DAT* band=detail id=16 alignment="0" tabsequence=160 border="0" color="0" x="8517" y="8" height="64" width="480" format="[general]" name=reference_type edit.limit=6 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=17 alignment="1" tabsequence=170 border="0" color="0" x="9006" y="8" height="6DAT* 4" width="658" format="[general]" name=value_amt edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=18 alignment="0" tabsequence=180 border="0" color="0" x="9673" y="8" height="64" width="338" format="[general]" name=value_type edit.limit=3 edit.case=any edit.focusrectangle=DAT* no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=19 alignment="0" tabsequence=190 border="0" color="0" x="10021" y="8" height="64" width="489" format="[general]" name=value_unit_code edit.limit=8 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" fonDAT*t.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) htmltable(border="1" cellpadding="0" cellspacing="0" generatecss="no" nowrap="yes")DAT* ata_codeend_date_timerap_activities.end_date_timematerial_coderap_activities.material_code# method_typerap_activities.method_type*reference_coderap_activities.reference_code1reference_typerap_activities.reference_type8 value_amtrap_activities.value_amt? value_typerap_activities.value_typeDAT* Ivalue_unit_coderap_activities.value_unit_codePYPBSELECT( VERSION(400) TABLE(NAME="rap_activities" ) COLUMN(NAME="rap_activities.rid") COLUMN(NAME="rap_activities.creation_date_time") COLUMN(NAME="rap_activities.metric_code") COLUMN(NAME="rap_activities.metric_level_type") COLUMN(NAME="rap_activities.ref_rid") COLUMN(NAME="rap_activities.start_date_time") COLUMN(NAME="rap_activities.user_id") COLUMN(NAME="rap_activities.value") COLUMN(NAME="rap_activities.cDAT*" omment_text") COLUMN(NAME="rap_activities.confidential_flag") COLUMN(NAME="rap_activities.data_code") COLUMN(NAME="rap_activities.end_date_time") COLUMN(NAME="rap_activities.material_code") COLUMN(NAME="rap_activities.method_type") COLUMN(NAME="rap_activities.reference_code") COLUMN(NAME="rap_activities.reference_type") COLUMN(NAME="rap_activities.value_amt") COLUMN(NAME="rap_activities.value_type") COLUMN(NAME="rap_activities.value_unit_code")WHERE( EXP1 ="rap_activities.ref_rid" OP ="=" DAT*. EXP2 ="" LOGIC ="and" ) WHERE( EXP1 ="rap_activities.metric_code" OP ="=" EXP2 ="" LOGIC ="and" ) WHERE( EXP1 ="rap_activities.metric_level_type" OP ="=" EXP2 ="" LOGIC ="and" ) WHERE( EXP1 ="rap_activities.start_date_time" OP ="=" EXP2 ="" ) ) ARG(NAME = "ref_rid" TYPE = number) ARG(NAME = "metric_code" TYPE = string) ARG(NAME = "metric_level_type" TYPE = string) ARG(NAME = "start_date_time" TYPE = datetime) "DAT*& PDW0800Npdw+?)*>```` F$Nnn``DAT*( I @D ` DAT**  code_t< $0%  MS Sans SerifMS Sans Serif$ 2$-8$700$1$ 536870912$ DAT*, 9$8$452$x%549%CodeCode`! "$&comment_text_t$#|7567$%n4718%'( Comment Text Comment Text@@DAT*. P+77,*-/13 (6 code$. 9$0@64$2x%549&45 [general] [general]+8*9/;3(DAT*0 = comment_text$:|7567$<n4718@A@H@DAT*2 D+BC G7EF@rap_reference_codescoderap_reference_codes.code+ comment_text!rap_reference_codes.comment_text7PBSELECT( VERSION(400) TABLE(NAME="rap_reference_codes" ) COLUMN(NAME="rap_reference_codes.code") COLUMN(NAME="rap_reference_codes.comment_text")) JLDAT*Q"Kno"MyesDAT*6 ( county_fips$@%293$F@320"0(site_id$n622$`439DAT*8 "0( scc$.1070$B.302"0 (  emission_unit_id$.e1381$DAT*:  _434" 0( process_id$ 1824$>283"0" (  start_dateDAT*< $E2117$HI329& [general] [general]"!0+#$&()( end_date$% 2455$'HI329"*04",DAT*> -/ (21 start_time$.c 2793$0HI329"30=+568 (;: end_time$7; 3131$9HI329"<0IDAT*@ 4>?AC (GFactual_throughput$@ 3470$Bi480&DE [general] [general]"H0R=JKM (PO throughput_unit_num$DAT*B Lbw3959$Nz.558"Q0[ISTV (YX material$U4526$WHI329"Z0dR\]_(bDAT*D ainventory_year$^(4864$`Rw375"c0m[efh(kjinput_stream_rid$g|5248$ia443"l0xdnoDAT*F qs vuuser_id$pE5701$r0$t 800"w0myzq| ~ tribal_code${n6510$}I73"DAT*H 0@@DAT*J @ @@ @ @" @+  @4DAT*L   @= @I @R  @[ @d @mx@DAT*N p_isiter:as_statefips:as_countyfips :as_userIDp_ as_statefipsas_countyfips as_useridrap_tmp_emis_period_activities state_fips*rap_tmp_emis_period_activities.state_fips county_fips+rap_tmp_emis_period_activities.county_fipssite_id'rap_tmp_emis_period_activities.site_idscc#rap_tmp_emis_period_activities.sccDAT*P emission_unit_id0rap_tmp_emis_period_activities.emission_unit_id process_id*rap_tmp_emis_period_activities.process_id  start_date*rap_tmp_emis_period_activities.start_date end_date(rap_tmp_emis_period_activities.end_date" start_time*rap_tmp_emis_period_activities.start_time+ end_time(rap_tmp_emis_period_activities.end_time4DAT*R actual_throughput1rap_tmp_emis_period_activities.actual_throughput=throughput_unit_num3rap_tmp_emis_period_activities.throughput_unit_numI material(rap_tmp_emis_period_activities.materialRinventory_year.rap_tmp_emis_period_activities.inventory_year[input_stream_rid0rap_tmp_emis_period_activities.input_stream_ridduser_id'rap_tmp_emis_period_activitiDAT*T es.user_idm tribal_code+rap_tmp_emis_period_activities.tribal_codex;PBSELECT( VERSION(400) TABLE(NAME="rap_tmp_emis_period_activities" ) COLUMN(NAME="rap_tmp_emis_period_activities.state_fips") COLUMN(NAME="rap_tmp_emis_period_activities.county_fips") COLUMN(NAME="rap_tmp_emis_period_activities.site_id") COLUMN(NAME="rap_tmp_emis_period_activities.scc") COLUMN(NAME="rap_tmp_emis_period_activities.emission_unit_id") COLUMN(NAME="rap_tmp_emis_period_DAT*V activities.process_id") COLUMN(NAME="rap_tmp_emis_period_activities.start_date") COLUMN(NAME="rap_tmp_emis_period_activities.end_date") COLUMN(NAME="rap_tmp_emis_period_activities.start_time") COLUMN(NAME="rap_tmp_emis_period_activities.end_time") COLUMN(NAME="rap_tmp_emis_period_activities.actual_throughput") COLUMN(NAME="rap_tmp_emis_period_activities.throughput_unit_num") COLUMN(NAME="rap_tmp_emis_period_activities.material") COLUMN(NAME="rap_tmp_emis_period_activities.inventory_year") COLUMN(NDAT*X AME="rap_tmp_emis_period_activities.input_stream_rid") COLUMN(NAME="rap_tmp_emis_period_activities.user_id") COLUMN(NAME="rap_tmp_emis_period_activities.tribal_code")WHERE( EXP1 ="rap_tmp_emis_period_activities.state_fips" OP ="=" EXP2 ="" LOGIC ="and" ) WHERE( EXP1 ="rap_tmp_emis_period_activities.county_fips" OP ="=" EXP2 ="" LOGIC ="and" ) WHERE( EXP1 ="rap_tmp_emis_period_activities.user_id" OP ="=" EXP2 ="" ) ) ORDER(NAME="rap_tmp_emis_period_activities.state_DAT*Z fips" ASC=yes ) ORDER(NAME="rap_tmp_emis_period_activities.county_fips" ASC=yes ) ARG(NAME = "as_statefips" TYPE = string) ARG(NAME = "as_countyfips" TYPE = string) ARG(NAME = "as_userid" TYPE = string) \"1"1"1"1"0"DAT*00"0DAT*^ er="0" color="0" x="3131" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=end_time visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=11 alignment="1" tabsequence=32766 border="0" color="0" x="3470" y="8" height="76" width="480" DAT*` format="[general]" html.valueishtml="0" name=actual_throughput visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=12 alignment="0" tabsequence=32766 border="0" color="0" x="3959" y="8" height="76" width="558" format="[general]" html.valueishtml="0" name=tDAT*b hroughput_unit_num visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=13 alignment="1" tabsequence=32766 border="0" color="0" x="4526" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=material visible="1" edit.limit=0 edit.case=aDAT*f ny edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=14 alignment="1" tabsequence=32766 border="0" color="0" x="4864" y="8" height="76" width="375" format="[general]" html.valueishtml="0" name=inventory_year visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes editDAT*forward global type d_ds_nei_import_rapids_base from n_ds_cache_base end type end forward global type d_ds_nei_import_rapids_base from n_ds_cache_base end type global d_ds_nei_import_rapids_base d_ds_nei_import_rapids_base on d_ds_nei_import_rapids_base.create call datastore::create TriggerEvent( this, "constructor" ) end on on d_ds_nei_import_rapids_base.destroy call datastore::destroy TriggerEvent( this, "destructor" ) end on DAT*h .autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=15 alignment="1" tabsequence=32766 border="0" color="0" x="5248" y="8" height="76" width="443" format="[general]" html.valueishtml="0" name=input_stream_rid visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="AriaDAT*j l" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=16 alignment="0" tabsequence=32766 border="0" color="0" x="5701" y="0" height="64" width="800" format="[general]" html.valueishtml="0" name=user_id visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.moDAT*l de="1" background.color="536870912" ) column(band=detail id=17 alignment="0" tabsequence=32766 border="0" color="0" x="6510" y="0" height="64" width="73" format="[general]" html.valueishtml="0" name=tribal_code visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) htmltable(border="1" ) htmlgen(clientevents="1" clientvaliDAT*|dation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" netscapelayers="0" ) DAT*l -10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=25 alignment="0" tabsequence=32766 border="0" color="0" x="12480" y="0" height="64" width="366" format="[general]" html.valueishtml="0" name=horiz_collection_method_code visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" backgroDAT*r forward global type n_ds_nei_import_rap_sources from d_ds_nei_import_rapids_base end type end forward global type n_ds_nei_import_rap_sources from d_ds_nei_import_rapids_base end type global n_ds_nei_import_rap_sources n_ds_nei_import_rap_sources event constructor;//set the file extension and data source this.of_setDataType("txt", "d_nei_import_rap_sources") //override the default name //this.of_setFileName("ds_tmp_emis_rel_pt_devices") //set the file description this.of_setFilDAT*^eDescription("rap_sources") //override the default save as option of no headings this.of_setFileHeadings(true) end event on n_ds_nei_import_rap_sources.create call datastore::create TriggerEvent( this, "constructor" ) end on on n_ds_nei_import_rap_sources.destroy call datastore::destroy TriggerEvent( this, "destructor" ) end on DAT*v forward global type n_ds_nei_import_rap_devices from d_ds_nei_import_rapids_base end type end forward global type n_ds_nei_import_rap_devices from d_ds_nei_import_rapids_base end type global n_ds_nei_import_rap_devices n_ds_nei_import_rap_devices type variables end variables event constructor;call super::constructor;//set the file extension and data source this.of_setDataType("txt", "d_nei_import_rap_devices") //override the default name //this.of_setFileName("ds_tmp_emis_relDAT*_pt_devices") //set the file description this.of_setFileDescription("rap_devices") //override the default save as option of no headings this.of_setFileHeadings(true) end event on n_ds_nei_import_rap_devices.create call datastore::create TriggerEvent( this, "constructor" ) end on on n_ds_nei_import_rap_devices.destroy call datastore::destroy TriggerEvent( this, "destructor" ) end on DAT*z forward global type n_ds_nei_tmp_emis_unit_devices from n_ds_nei_import_temp_base end type end forward global type n_ds_nei_tmp_emis_unit_devices from n_ds_nei_import_temp_base end type global n_ds_nei_tmp_emis_unit_devices n_ds_nei_tmp_emis_unit_devices type variables string is_tribal_code end variables on n_ds_nei_tmp_emis_unit_devices.create call super::create end on on n_ds_nei_tmp_emis_unit_devices.destroy call super::destroy end on event constructor;call super::consDAT*| tructor;//set the file extension and data source this.of_setDataType("txt", "d_nei_rap_tmp_emis_unit_devices") //override the default name //this.of_setFileName("ds_tmp_emis_unit_devices") //set the file description this.of_setFileDescription("rap_tmp_emission_unit_devices") //override the default save as option of no headings this.of_setFileHeadings(true) end event event ue_scanrow;//******************************************************************************** // Revision HisDAT* tory // Date Name Revision //-------------------------------------------------------------------------------- // 10/12/2000 Mark Young Initial Version // 01/30/2005 Steve Oliphant Added in tribal code check for case "UPDATE SOURCE RID BY SITE ID" // 01/31/2005 Steve Oliphant Added in tribal code check for case "UPDATE SOURCE RID" //******************************************************************************** //EXTEND this script as follows //DO NOT place code here in the base clDAT* PDW0800pdw+qr````7 F$nn``DAT*  @Dh` DAT*  rid_t< $0%  MS Sans SerifMS Sans Serif$ 2$-8$700$1$ 536870912$ DAT* 9$8$452$<274%RidRid`)! "$&process_rid_t$#@%293$%Oi361%'( Process Rid Process Rid`2 * +DAT* -/relative_activity_amt_t$,663$.745%01Relative Activity AmountRelative Activity Amount`;)3 468begin_day_date_code_t$561417$7681%9:Beginning Day or DateBeginning Day or DaDAT* te`D2< =?Abegin_hour_no_t$>;2107$@e462%BCBeginning HourBeginning Hour`M;E FHJbegin_month_no_t$G4 2578$In503%KLDAT* Beginning MonthBeginning Month`VDN OQSend_day_date_code_t$P 3090$RN590%TUEnding Day or DateEnding Day or Date`_MW XZ\end_hour_no_t$Y'i3689$[QrDAT* forward global type n_ds_nei_import_rap_processes from d_ds_nei_import_rapids_base end type end forward global type n_ds_nei_import_rap_processes from d_ds_nei_import_rapids_base end type global n_ds_nei_import_rap_processes n_ds_nei_import_rap_processes event constructor;call super::constructor;//set the file extension and data source this.of_setDataType("txt", "d_nei_import_rap_processes") //override the default name //this.of_setFileName("ds_tmp_emis_rel_pt_devices") //set thDAT*e file description this.of_setFileDescription("rap_processes") //override the default save as option of no headings this.of_setFileHeadings(true) end event on n_ds_nei_import_rap_processes.create call datastore::create TriggerEvent( this, "constructor" ) end on on n_ds_nei_import_rap_processes.destroy call datastore::destroy TriggerEvent( this, "destructor" ) end on DAT* 370%]^ Ending Hour Ending Hour`hV` aceend_month_no_t$bz4069$dZ411%fg Ending Month Ending Month`_i jlnyear_t$k4489$mDAT* &174%opYearYear@@Pstruwy{ (~rid$v 9$x@64$z<274&|} DAT* [general] [general]srw{( process_rid$@%293$Oi361rw{(relative_activity_amt$663$DAT* forward global type n_ds_nei_import_rap_streams from d_ds_nei_import_rapids_base end type end forward global type n_ds_nei_import_rap_streams from d_ds_nei_import_rapids_base end type global n_ds_nei_import_rap_streams n_ds_nei_import_rap_streams event constructor;call super::constructor;//set the file extension and data source this.of_setDataType("txt", "d_nei_import_rap_streams") //override the default name //this.of_setFileName("ds_tmp_emis_rel_pt_devices") //set the file desDAT*vcription this.of_setFileDescription("rap_streams") //override the default save as option of no headings this.of_setFileHeadings(true) end event on n_ds_nei_import_rap_streams.create call datastore::create TriggerEvent( this, "constructor" ) end on on n_ds_nei_import_rap_streams.destroy call datastore::destroy TriggerEvent( this, "destructor" ) end on DAT* 745rw((begin_day_date_code$61417$681& [general] [general]rw2(begin_hour_noDAT* $;2107$e462rw<(begin_month_no$4 2578$n503rwF(end_day_date_codeDAT* $ 3090$N590rwP( end_hour_no$'i3689$Qr370rw Z( end_month_no$DAT* z4069$Z411rw d(year$4489$&174@DAT*  @s @  @DAT* forward global type n_ds_nei_import_rap_actvities from d_ds_nei_import_rapids_base end type end forward global type n_ds_nei_import_rap_actvities from d_ds_nei_import_rapids_base end type global n_ds_nei_import_rap_actvities n_ds_nei_import_rap_actvities event constructor;call super::constructor;//set the file extension and data source this.of_setDataType("txt", "d_nei_import_rap_activities") //override the default name //this.of_setFileName("ds_tmp_emis_rel_pt_devices") //set tDAT*he file description this.of_setFileDescription("rap_activities") //override the default save as option of no headings this.of_setFileHeadings(true) end event on n_ds_nei_import_rap_actvities.create call datastore::create TriggerEvent( this, "constructor" ) end on on n_ds_nei_import_rap_actvities.destroy call datastore::destroy TriggerEvent( this, "destructor" ) end on NOD*Z 8{ENT*0600 eA+n_ds_nei_tmp_sources_grpby_statecounty.udoENT*0600f^`wA+n_ds_nei_tmp_sources_grpby_statecounty.sruDAT*   $p_isd_tien:ld_processrid:ls_beginmonth :ls_endmonth :ls_year$lDAT* d_processridls_beginmonth ls_endmonthls_yearrap_process_specific_schedules rid#rap_process_specific_schedules.rids process_rid+rap_process_specific_schedules.process_ridrelative_activity_amt5rap_process_specific_schedules.relative_activity_amtbegin_day_date_code3rap_process_specific_schedules.begin_day_date_codebegin_hour_no-rap_process_DAT* specific_schedules.begin_hour_nobegin_month_no.rap_process_specific_schedules.begin_month_noend_day_date_code1rap_process_specific_schedules.end_day_date_code end_hour_no+rap_process_specific_schedules.end_hour_no end_month_no,rap_process_specific_schedules.end_month_noyear$rap_process_specific_schedules.yearPBSELECT( VERSION(400) TDAT* ABLE(NAME="rap_process_specific_schedules" ) COLUMN(NAME="rap_process_specific_schedules.rid") COLUMN(NAME="rap_process_specific_schedules.process_rid") COLUMN(NAME="rap_process_specific_schedules.relative_activity_amt") COLUMN(NAME="rap_process_specific_schedules.begin_day_date_code") COLUMN(NAME="rap_process_specific_schedules.begin_hour_no") COLUMN(NAME="rap_process_specific_schedules.begin_month_no") COLUMN(NAME="rap_process_specific_schedules.end_day_date_code") COLUMN(NAME="rap_process_speciDAT* fic_schedules.end_hour_no") COLUMN(NAME="rap_process_specific_schedules.end_month_no") COLUMN(NAME="rap_process_specific_schedules.year")WHERE( EXP1 ="rap_process_specific_schedules.process_rid" OP ="=" EXP2 ="" LOGIC ="and" ) WHERE( EXP1 ="rap_process_specific_schedules.begin_month_no" OP ="=" EXP2 ="" LOGIC ="and" ) WHERE( EXP1 ="rap_process_specific_schedules.end_month_no" OP ="=" EXP2 ="" LOGIC ="and" ) WHERE( EXP1 ="rap_process_specific_schedules.year" DAT* ass unless it will apply to all //objects of this class and its descendants //EXAMPLE: //Return NULL to stop the scanning process normally //(of_scan() will return the row stopped on) //Return Negative Value to stop the scanning process with error status //(of_scan() will return the Negative Value) //force argument to upper case as_action = upper(trim(as_action)) choose case as_action // ************************************************************************* case "DAT*\UPDATE SOURCE RID" // ************************************************************************* if is_scc = left(string(this.object.scc[al_row]), 4) & and is_tribal_code = this.object.tribal_code[al_row] then this.object.source_rid[al_row] = double(aa_data) end if // ************************************************************************* case "UPDATE SOURCE RID BY SITE ID" // ************************************************************************* if is_siteid = thDAT* ent set in the datawindow for each temp table. */ long ll_rc = 0 // load control equipment data ids_ctrlequipactivities.is_statefips = is_statefips ids_ctrlequipactivities.is_countyfips = is_countyfips ll_rc = ids_ctrlequipactivities.of_populate() if ll_rc < 0 then return ll_rc end if // load emission period data ids_emisactivities.is_statefips = is_statefips ids_emisactivities.is_countyfips = is_countyfips ll_rc = ids_emisactivities.of_populate() if ll_rc < 0 then reDAT* turn ll_rc end if // load emission activities data ids_emisperiodactivities.is_statefips = is_statefips ids_emisperiodactivities.is_countyfips = is_countyfips ll_rc = ids_emisperiodactivities.of_populate() if ll_rc < 0 then return ll_rc end if // load emission release point data ids_emisrelptdevices.is_statefips = is_statefips ids_emisrelptdevices.is_countyfips = is_countyfips ll_rc = ids_emisrelptdevices.of_populate() if ll_rc < 0 then return ll_rc end if // load emissDAT* ion unit devices data ids_emisunitdevices.is_statefips = is_statefips ids_emisunitdevices.is_countyfips = is_countyfips ll_rc = ids_emisunitdevices.of_populate() if ll_rc < 0 then return ll_rc end if // load emission process data ids_processes.is_statefips = is_statefips ids_processes.is_countyfips = is_countyfips ll_rc = ids_processes.of_populate() if ll_rc < 0 then return ll_rc end if // load emission sources data ids_sources.is_statefips = is_statefips ids_sources.iDAT* s_countyfips = is_countyfips ll_rc = ids_sources.of_populate() if ll_rc < 0 then return ll_rc end if ll_rc = ids_raprefcodes.of_populate() if ll_rc < 0 then return ll_rc end if return ll_rc end function public function integer of_cleartemptables ();delete from rap_tmp_sources where user_id = :gs_user_id USING SQLCA; if f_sqlCheck(SQLCA) < 0 then return -1 end if delete from rap_tmp_emis_unit_devices where user_id = :gs_user_id USING SQLCA; if f_sqlCheck(SQLCA) < 0 theDAT* n return -1 end if delete from rap_tmp_emis_rel_pt_devices where user_id = :gs_user_id USING SQLCA; if f_sqlCheck(SQLCA) < 0 then return -1 end if delete from rap_tmp_processes where user_id = :gs_user_id USING SQLCA; if f_sqlCheck(SQLCA) < 0 then return -1 end if delete from rap_tmp_cntrl_equip_activities where user_id = :gs_user_id USING SQLCA; if f_sqlCheck(SQLCA) < 0 then return -1 end if delete from rap_tmp_emis_period_activities where user_id = :gs_user_id DAT* USING SQLCA; if f_sqlCheck(SQLCA) < 0 then return -1 end if delete from rap_tmp_emis_activities where user_id = :gs_user_id USING SQLCA; if f_sqlCheck(SQLCA) < 0 then return -1 end if return 1 end function public function integer of_updatetemptable ();long ll_rc = 0 //if not of_yield() then return -5 ll_rc = ids_ctrlequipactivities.update() IF SQLCA.SQLCode = -1 THEN ROLLBACK USING SQLCA; MessageBox("SQL error - ids_ctrlequipactivities", SQLCA.SQLErrText) else CDAT*" OP ="=" EXP2 ="" ) ) ARG(NAME = "ld_processrid" TYPE = number) ARG(NAME = "ls_beginmonth" TYPE = string) ARG(NAME = "ls_endmonth" TYPE = string) ARG(NAME = "ls_year" TYPE = string) "no"yesDAT* OMMIT USING SQLCA; END IF ll_rc = ids_emisactivities.update() IF SQLCA.SQLCode = -1 THEN ROLLBACK USING SQLCA; MessageBox("SQL error - ids_emisactivities", SQLCA.SQLErrText) else COMMIT USING SQLCA; END IF ll_rc = ids_emisperiodactivities.update() IF SQLCA.SQLCode = -1 THEN ROLLBACK USING SQLCA; MessageBox("SQL error-ids_emisperiodactivities", SQLCA.SQLErrText) else COMMIT USING SQLCA; END IF ll_rc = ids_emisrelptdevices.update() IF SQLCA.SQLCode = -1 THEN ROLDAT* LBACK USING SQLCA; MessageBox("SQL error-ids_emisrelptdevices", SQLCA.SQLErrText) else COMMIT USING SQLCA; END IF ll_rc = ids_emisunitdevices.update() IF SQLCA.SQLCode = -1 THEN ROLLBACK USING SQLCA; MessageBox("SQL error-ids_emisunitdevices", SQLCA.SQLErrText) else COMMIT USING SQLCA; END IF ll_rc = ids_processes.update() IF SQLCA.SQLCode = -1 THEN ROLLBACK USING SQLCA; MessageBox("SQL error-ids_processes", SQLCA.SQLErrText) else COMMIT USING SQLCA; END IF ll_DAT* rc = ids_sources.update() IF SQLCA.SQLCode = -1 THEN ROLLBACK USING SQLCA; MessageBox("SQL error - ids_sources", SQLCA.SQLErrText) else COMMIT USING SQLCA; END IF return ll_rc end function public function long of_settempitem (ref n_ds_nei_import_temp_base ads_temp, long al_row, string as_column, any aa_value, ref str_ierror importerr);//sets item with error message to be sent back //returns 1 if okay otherwise -1 /* ads_temp is an instance of n_ds_nei_import_temp_base */ inDAT* t li_ret = 1 if ads_temp.setitem(al_row, as_column, aa_value) = -1 then importerr.berror = true importerr.szattrName = "Data Error" importerr.szmessage = "Data Error: Unable to set value: Dataobject:" + ads_temp.dataobject & + ", Column:" + as_column + ", Value:" + f_msgString(aa_value) li_ret = -1 end if return li_ret end function public function long of_updatetemptable (n_ds_nei_import_temp_base ads_temp, ref str_ierror importerr);//updates temp table and passes any eDAT* rror message back if update fails //returns < 0 for errors long ll_rc //if not of_yield() then return -5 ll_rc = ads_temp.update() ll_rc = f_sqlCheck(SQLCA) if ll_rc < 0 then ROLLBACK USING SQLCA; importerr.berror = true importerr.szattrName = "System Error" importerr.szMessage = "Unable to save temp table dataobject: " + ads_temp.dataobject else COMMIT USING SQLCA; END IF return ll_rc end function public function datetime of_converttodate (any aa_date);//converts nei DAT* dates to datetime string ls_date integer li_year, li_month, li_day datetime ldt_date date ld_date ls_date = String(aa_date) li_year = integer(left(ls_date, 4)) li_month = integer(mid(ls_date, 5, 2)) li_day = integer(mid(ls_date, 7, 2)) ld_date = date(li_year, li_month, li_day) ldt_date = datetime(ld_date) return ldt_date end function public function long of_loadcachedata ();long ll_rc = 1 ids_stateactivities.is_statefips = is_statefips ll_rc = ids_stateactivities.of_populaDAT* te() if ll_rc < 0 then return ll_rc end if id_staterid = ids_stateactivities.of_getstaterid() ids_countyactivities.is_countyfips = is_countyfips ids_countyactivities.id_staterid = id_staterid ll_rc = ids_countyactivities.of_populate() if ll_rc < 0 then return ll_rc end if id_countyrid = ids_countyactivities.of_getcountyrid() ll_rc = ids_conversionlookupcodes.of_populate() if ll_rc < 0 then return ll_rc end if return ll_rc end function public function long of_loadimDAT* portdriver ();long ll_rc = 1 ll_rc = ids_sourcesgrpbystatecounty.of_populate() if ll_rc < 0 then return ll_rc end if return 1 end function public function integer of_registerwimain (w_imain aw_imain);//registers the main import window integer li_ret = -1 if isvalid(aw_imain) and not isnull(aw_imain) then iw_imain = aw_imain li_ret = 1 end if return li_ret end function public function integer of_startimport ();//main driver to load temp table data into rapids long lDAT* l_rc, ll_row, ll_return string ls_fipscombination, ls_header datetime ldt_start setnull(ldt_start) if iw_imain.dw_header.rowcount() > 0 then ldt_start = iw_imain.dw_header.object.starttime[1] end if iw_imain.dw_header.setredraw( false) iw_imain.dw_header.uf_putheader(true) il_header = 1 if not isnull(ldt_start) then iw_imain.dw_header.object.starttime[1] = ldt_start iw_imain.dw_header.setredraw( true) iw_imain.dw_header.uf_putfilenum(0, il_header) of_loadimportdriver() DAT* /* For the addition of NIF 3.0 data, the DataWindow d_nei_rap_tmp_sources_grpby_statecounty was changed to include tribal_code in addition to state_fips and county_fips. */ ids_sourcesgrpbystatecounty.of_registerimport(this) ll_rc = ids_sourcesgrpbystatecounty.rowcount() if ll_rc < 1 then of_putinmessagelog(-1, "Error", "Unable to load into Rap Tables") signalerror(-1, "No data to Import") return -1 end if for ll_row = 1 to ll_rc is_statefips = ids_sourcesgrpbystatecounty.DAT* object.state_fips[ll_row] is_countyfips = ids_sourcesgrpbystatecounty.object.county_fips[ll_row] ls_fipscombination = & "State FIPS: " + is_statefips + & ", County FIPS: " + is_countyfips + & " (" + string(ll_row) + " of " + string(ll_rc) + ")" /* Load, for the current combination of state, county fips codes, and tribal code, the current data for each of the 7 temp tables. This is loaded into a datawindow for each. */ of_loadtemptables() /* DAT*  Loads a table called ids_stateactivities with rows by current state. Loads a table called ids_countyactivities with rows for the current county. */ of_loadcachedata() ls_header = "Importing " + ls_fipscombination + " data into RAPIDS table: " iw_imain.dw_log.uf_putnotify("Importing " + ls_fipscombination, -1, 0, 0) iw_imain.dw_header.uf_PutHeadMsg("Importing " + ls_fipscombination, il_header) choose case lower(is_sourceType) case "or" if not of_yield() then exDAT* it //process rap_sources //******************************************************************************************* of_setlogmessage(ids_sources.is_description , ids_rapsources.is_description ) iw_imain.dw_header.uf_PutHeadMsg(ls_header + ids_rapsources.is_description, il_header ) ll_return = of_createorsources() iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, il_inserts, il_updates) if ll_return < 1 then of_putinmessagelog(-1, "Error", "Unable to prDAT* ocess this " + ls_fipscombination + " combination." ) continue end if //******************************************************************************************* if not of_yield() then exit //process rap_devices //******************************************************************************************* of_setlogmessage(ids_emisunitdevices.is_description , ids_rapdevices.is_description ) iw_imain.dw_header.uf_PutHeadMsg(ls_header + ids_rapdevices.is_descriDAT* ption , il_header ) ll_return = of_createordevices() iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, il_inserts, il_updates) if ll_return < 1 then of_putinmessagelog(-1, "Error", "Unable to process this " + ls_fipscombination + & " combination any further.") continue end if //******************************************************************************************* if not of_yield() then exit //process rap_processes //******DAT* ************************************************************************************* of_setlogmessage(ids_processes.is_description , ids_rapprocesses.is_description ) iw_imain.dw_header.uf_PutHeadMsg(ls_header + ids_rapprocesses.is_description, il_header ) ll_return = of_createorprocesses() iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, il_inserts, il_updates) if ll_return < 1 then of_putinmessagelog(-1, "Error", "Unable to process this " + ls_fipscombinationDAT*  + & " combination any further.") continue end if //******************************************************************************************* if not of_yield() then exit //process rap_streams //******************************************************************************************* of_setlogmessage(ids_processes.is_description , ids_rapstreams.is_description ) iw_imain.dw_header.uf_PutHeadMsg(ls_header + ids_rapstreams.is_description, il_heDAT* ader ) ll_return = of_createorstreams() iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, il_inserts, il_updates) if ll_return < 1 then of_putinmessagelog(-1, "Error", "Unable to process this " + ls_fipscombination + & " combination any further.") continue end if //******************************************************************************************* if not of_yield() then exit //process throughput rap_activities //******DAT* ************************************************************************************* of_setlogmessage(ids_emisperiodactivities.is_description , ids_rapactivities.is_description + " for throughput" ) iw_imain.dw_header.uf_PutHeadMsg(ls_header + ids_rapactivities.is_description + " for throughput" , il_header ) ll_return = of_createorthroughputactivities() iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, il_inserts, il_updates) if ll_return < 1 then of_putinmessaDAT* gelog(-1, "Error", "Unable to process this " + ls_fipscombination + & " combination for emission period activities.") end if if not of_yield() then exit //process discharge rap_activities //******************************************************************************************* of_setlogmessage(ids_emisactivities.is_description , ids_rapactivities.is_description + " for discharge" ) iw_imain.dw_header.uf_PutHeadMsg(ls_header + ids_rapactivities.DAT* is_description + " for discharge", il_header ) ll_return = of_createordischargeactivities() iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, il_inserts, il_updates) if ll_return < 1 then of_putinmessagelog(-1, "Error", "Unable to process this " + ls_fipscombination + & " combination for emission activities.") end if //******************************************************************************************* //**********************DAT* ********************************************************************* case "pt" /* This is the section I will work on updating first. This section handles point data. */ if not of_yield() then exit // //******************************************************************************************* //process rap_sources (section 3.2.4.2 Create/Verify Sources) //***************************************************************************DAT* **************** // of_setlogmessage(ids_sources.is_description , ids_rapsources.is_description ) iw_imain.dw_header.uf_PutHeadMsg(ls_header + ids_rapsources.is_description, il_header ) ll_return = of_createptsources() // comes from the site input table. iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, il_inserts, il_updates) if ll_return < 1 then of_putinmessagelog(-1, "Error", "Unable to process this " + ls_fipscombination + & " comDAT* bination.") continue end if if not of_yield() then exit // //******************************************************************************************* //process rap_devices (section 3.2.4.3 Create/Verify Emission Unit Devices) //******************************************************************************************* // of_setlogmessage(ids_emisunitdevices.is_description , ids_rapdevices.is_description ) iw_imain.dw_header.uf_PutHeadMsg(ls_hDAT* eader + ids_rapdevices.is_description , il_header ) ll_return = of_createptdevices() iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, il_inserts, il_updates) if ll_return < 1 then of_putinmessagelog(-1, "Error", "Unable to process this " + ls_fipscombination + & " combination any further.") continue end if if not of_yield() then exit // //******************************************************************************************DAT* * //process rap_processes (section 3.2.4.4 Create/Verify Emission Unit Processes) //******************************************************************************************* // of_setlogmessage(ids_processes.is_description , ids_rapprocesses.is_description ) iw_imain.dw_header.uf_PutHeadMsg(ls_header + ids_rapprocesses.is_description, il_header ) ll_return = of_createptprocesses() iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, il_inserts, il_updates) iDAT* f ll_return < 1 then of_putinmessagelog(-1, "Error", "Unable to process this " + ls_fipscombination + & " combination any further.") continue end if if not of_yield() then exit // //******************************************************************************************* //control eqpt devices & process (section 3.2.4.6 Create Control Equipment Processes) // (section 3.2.4.5 Create Control Equipment Devices) //*************DAT* ****************************************************************************** // of_setlogmessage(ids_processes.is_description , " control equipment devices & processes" ) iw_imain.dw_header.uf_PutHeadMsg(ls_header + " control equipment devices & processes", il_header ) ll_return = of_createptcntrleqptdevicesprocesses() iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, il_inserts, il_updates) if ll_return < 1 then of_putinmessagelog(-1, "Error", "Unable to pDAT* rocess this " + ls_fipscombination + & " combination for control equipment devices & processes.") end if if not of_yield() then exit // //******************************************************************************************* //emission release points section 3.2.4.7 Create Emission Release Point Devices // section 3.2.4.8 Create Emission Release Point Processes //**********************************************************************DAT* ********************* // of_setlogmessage(ids_processes.is_description , " emission release point devices & processes" ) iw_imain.dw_header.uf_PutHeadMsg(ls_header + " emission release point devices & processes", il_header ) ll_return = of_createptemisreldevicesprocesses () iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, il_inserts, il_updates) if ll_return < 1 then of_putinmessagelog(-1, "Error", "Unable to process this " + ls_fipscombination + & DAT*  " combination for emission release point devices & processes.") end if if not of_yield() then exit // //******************************************************************************************* //device connections section 3.2.4.9 Create Device Connections //******************************************************************************************* // of_setlogmessage(ids_processes.is_description , ids_rapconnections.is_description ) iw_imain.dw_heDAT*X ader.uf_PutHeadMsg(ls_header + ids_rapconnections.is_description, il_header ) ll_return = of_createptdeviceconnections() iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, il_inserts, il_updates) if ll_return < 1 then of_putinmessagelog(-1, "Error", "Unable to process this " + ls_fipscombination + & " combination any further.") continue end if if not of_yield() then exit // //**********************************************DAT* PDW0800Tpdw+?)*>````d F$Tnn``DAT* O @D ` DAT*  parent_ref_rid_t< $0%  MS Sans SerifMS Sans Serif$ 2$-8$700$1$ 536870912$DAT*  9$8$452$b448%Parent Ref RidParent Ref Rid`! "$&child_ref_rid_t$#f466$%X402%'(Child Ref RidChild Ref Rid@DAT* @P+77,*-/13 (6parent_ref_rid$. 9$0@64$2b448&45 [general] [general]+8*9DAT* /;3(=child_ref_rid$:f466$<X402@@CGFNDAT* @J+HI M7KL tpAeaBe_ :an_parent :an_childitDE an_parent an_childrap_group_membersparent_ref_rid!rap_group_members.parent_ref_rid+child_ref_rid rap_group_members.child_ref_rid7PBSDAT*ELECT( VERSION(400) TABLE(NAME="rap_group_members" ) COLUMN(NAME="rap_group_members.parent_ref_rid") COLUMN(NAME="rap_group_members.child_ref_rid")WHERE( EXP1 ="rap_group_members.parent_ref_rid" OP ="=" EXP2 ="" LOGIC ="and" ) WHERE( EXP1 ="rap_group_members.child_ref_rid" OP ="=" EXP2 ="" ) ) ARG(NAME = "an_parent" TYPE = number) ARG(NAME = "an_child" TYPE = number) PR"Qno"SyesDAT* evices.design_cap,design_cap_unit_num.rap_tmp_emis_unit_devices.design_cap_unit_num8design_cap_unit_denom0rap_tmp_emis_unit_devices.design_cap_unit_denomAinventory_year)rap_tmp_emis_unit_devices.inventory_yearJ start_date%rap_tmp_emis_unit_devices.start_dateV end_date#rap_tmp_emis_unit_devices.end_date_ source_rid%rap_tmp_emis_unit_devDAT*$ PDW0800}pdw+b;<a```` F$}nn``DAT*& x @D2` DAT*(  from_device_rid_t< $0%  MS Sans SerifMS Sans Serif$ 2$-8$700$1$ 536870912$DAT**  9$8$452$m498%From Device RidFrom Device Rid`)! "$&to_device_rid_t$#q517$%_434%'(To Device RidTo Device Rid`2 *DAT*,  +-/capture_efficiency_perc_t$,960$..814%01Capture Efficiency PercentCapture Efficiency Percent`)3 468name_t$51783$781426%9:NameNaDAT*. me@@P=WI><?ACE (Hfrom_device_rid$@ 9$B@64$Dm498&FG [general] [general]P=JDAT*0 <KAME(Oto_device_rid$Lq517$N_434WIQ<RATE(Vcapture_efficiency_perc$S960$U.814PXDAT*2 <YA[]((`2name$Z1783$\81426&^_ [general] [general]@DcfjiwDAT*4 @m=kl pIno sPqr @vWtu3@de:an_fromdevice :an_todevicegDAT*6 han_fromdevice an_todevicerap_connectionsfrom_device_rid rap_connections.from_device_rid=to_device_ridrap_connections.to_device_ridIcapture_efficiency_perc(rap_connections.capture_efficiency_percPnamerap_connections.nameWPBSELECT( VERSION(400) TABLE(NAME="rap_connections" ) COLUMN(NAME="rap_connections.from_device_rid") COLUMN(NAME="rap_connectioDAT*ns.to_device_rid") COLUMN(NAME="rap_connections.capture_efficiency_perc") COLUMN(NAME="rap_connections.name")WHERE( EXP1 ="rap_connections.from_device_rid" OP ="=" EXP2 ="" LOGIC ="and" ) WHERE( EXP1 ="rap_connections.to_device_rid" OP ="=" EXP2 ="" ) ) ARG(NAME = "an_fromdevice" TYPE = number) ARG(NAME = "an_todevice" TYPE = number) y{"zno"|yesDAT*:  tabsequence=32766 border="0" color="0" x="5623" y="8" height="76" width="590" format="[general]" html.valueishtml="0" name=spring_throughput_pct visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=12 alignment="1" tabsequence=32766 border="0" color="0" x="DAT*< 6222" y="8" height="76" width="645" format="[general]" html.valueishtml="0" name=summer_throughput_pct visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=13 alignment="1" tabsequence=32766 border="0" color="0" x="6875" y="8" height="76" width="517" format=DAT*> "[general]" html.valueishtml="0" name=fall_throughput_pct visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=14 alignment="1" tabsequence=32766 border="0" color="0" x="7401" y="8" height="76" width="736" format="[general]" html.valueishtml="0" name=annualDAT*@ _avg_days_per_week visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=15 alignment="1" tabsequence=32766 border="0" color="0" x="8146" y="8" height="76" width="754" format="[general]" html.valueishtml="0" name=annual_avg_weeks_per_year visible="1" edit.limDAT*B it=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=16 alignment="1" tabsequence=32766 border="0" color="0" x="8910" y="8" height="76" width="704" format="[general]" html.valueishtml="0" name=annual_avg_hours_per_day visible="1" edit.limit=0 edit.case=any edit.focusrectangle=nDAT*D o edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=17 alignment="1" tabsequence=32766 border="0" color="0" x="9623" y="8" height="76" width="722" format="[general]" html.valueishtml="0" name=annual_avg_hours_per_year visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=DAT*F yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=18 alignment="1" tabsequence=32766 border="0" color="0" x="10354" y="8" height="76" width="375" format="[general]" html.valueishtml="0" name=sulfur_content visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.heightDAT*H ="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=19 alignment="1" tabsequence=32766 border="0" color="0" x="10738" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=ash_content visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitchDAT*J ="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=20 alignment="1" tabsequence=32766 border="0" color="0" x="11077" y="8" height="76" width="375" format="[general]" html.valueishtml="0" name=inventory_year visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" backgroDAT*L und.color="536870912" ) column(band=detail id=21 alignment="1" tabsequence=32766 border="0" color="0" x="11461" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=start_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=22 aliDAT*N gnment="1" tabsequence=32766 border="0" color="0" x="11799" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=end_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=23 alignment="1" tabsequence=32766 border="0" color="0" x="12DAT*P 137" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=device_rid visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=24 alignment="1" tabsequence=32766 border="0" color="0" x="12475" y="8" height="76" width="329" format="[general]"DAT*R  html.valueishtml="0" name=process_rid visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=25 alignment="1" tabsequence=32766 border="0" color="0" x="12814" y="8" height="76" width="443" format="[general]" html.valueishtml="0" name=input_stream_rid visibleDAT*T ="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=26 alignment="1" tabsequence=32766 border="0" color="0" x="13266" y="8" height="76" width="494" format="[general]" html.valueishtml="0" name=output_stream_rid visible="1" edit.limit=0 edit.case=any edit.focusrectDAT*V angle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=27 alignment="0" tabsequence=32766 border="0" color="0" x="13769" y="0" height="64" width="800" format="[general]" html.valueishtml="0" name=user_id visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10DAT*b " font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=28 alignment="0" tabsequence=32766 border="0" color="0" x="14578" y="0" height="64" width="398" format="[general]" html.valueishtml="0" name=ce_id visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.coDAT* ********************************************* //stream section 3.2.4.10 Create Streams //******************************************************************************************* // of_setlogmessage(ids_processes.is_description , ids_rapstreams.is_description ) iw_imain.dw_header.uf_PutHeadMsg(ls_header + ids_rapstreams.is_description, il_header ) ll_return = of_createptstreams() iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, il_inserts, il_updates) iDAT*\ kground.mode="1" background.color="536870912" ) column(band=detail id=19 alignment="1" tabsequence=32766 border="0" color="0" x="9275" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=process_rid visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) coluDAT*^ mn(band=detail id=20 alignment="1" tabsequence=32766 border="0" color="0" x="9614" y="8" height="76" width="494" format="[general]" html.valueishtml="0" name=output_stream_rid visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=21 alignment="0" tabsequence=DAT*` 32766 border="0" color="0" x="10117" y="0" height="64" width="800" format="[general]" html.valueishtml="0" name=user_id visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=22 alignment="0" tabsequence=32766 border="0" color="0" x="10926" y="0" height="64" width="73" format="[general]" html.valueishtmDAT*l="0" name=tribal_code visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) htmltable(border="1" ) htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" netscapelayers="0" ) DAT*d lor="536870912" ) column(band=detail id=29 alignment="0" tabsequence=32766 border="0" color="0" x="14985" y="0" height="64" width="1152" format="[general]" html.valueishtml="0" name=ce_rid visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=30 alignment="0" tabsequence=32766 border="0" color="0" x="DAT*f 16146" y="0" height="64" width="18" format="[general]" html.valueishtml="0" name=control_group_flag visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=31 alignment="0" tabsequence=32766 border="0" color="0" x="16174" y="0" height="64" width="398" format="[general]" html.valueishtml="0" name=stack_iDAT*h d visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=32 alignment="0" tabsequence=32766 border="0" color="0" x="16581" y="0" height="64" width="1152" format="[general]" html.valueishtml="0" name=stack_rid visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" foDAT*j nt.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=33 alignment="0" tabsequence=32766 border="0" color="0" x="17742" y="0" height="64" width="18" format="[general]" html.valueishtml="0" name=stack_group_flag visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" backgrounDAT*r d.mode="1" background.color="536870912" ) column(band=detail id=34 alignment="0" tabsequence=32766 border="0" color="0" x="17769" y="0" height="64" width="1152" format="[general]" html.valueishtml="0" name=ce_process_rid visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=35 alignment="0" tabsequencDAT*n und.mode="1" background.color="536870912" ) column(band=detail id=26 alignment="0" tabsequence=32766 border="0" color="0" x="12855" y="0" height="64" width="567" format="[general]" html.valueishtml="0" name=horiz_accuracy_measure visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=27 alignment="0" tDAT*p absequence=32766 border="0" color="0" x="13431" y="0" height="64" width="850" format="[general]" html.valueishtml="0" name=horiz_reference_datum_code visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=28 alignment="0" tabsequence=32766 border="0" color="0" x="14290" y="0" height="64" width="1047" foDAT*rmat="[general]" html.valueishtml="0" name=tribal_code visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) htmltable(border="1" ) htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" netscapelayers="0" ) DAT*t e=32766 border="0" color="0" x="18930" y="0" height="64" width="1152" format="[general]" html.valueishtml="0" name=stack_process_rid visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=36 alignment="0" tabsequence=32766 border="0" color="0" x="20091" y="0" height="64" width="1152" format="[general]" DAT*v html.valueishtml="0" name=mass_flow1_stream_rid visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=37 alignment="0" tabsequence=32766 border="0" color="0" x="21253" y="0" height="64" width="1152" format="[general]" html.valueishtml="0" name=mass_flow2_stream_rid visible="1" edit.limit=0 edit.case=aDAT*x ny edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=38 alignment="0" tabsequence=32766 border="0" color="0" x="22414" y="0" height="64" width="18" format="[general]" html.valueishtml="0" name=config_num visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" fontDAT*z .family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=39 alignment="0" tabsequence=32766 border="0" color="0" x="22441" y="0" height="64" width="73" format="[general]" html.valueishtml="0" name=tribal_code visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) hDAT*tmltable(border="1" ) htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" netscapelayers="0" ) DAT*~ PDW0800pdw+_````` F$nn``DAT*  @DV` DAT*   group_rid_t< $0%  MS Sans SerifMS Sans Serif$ 2$-8$700$1$ 536870912$ DAT* 9$8$452$B.302% Group Rid Group Rid`)! "$&sequence_no_t$#F@320$%X402%'( Sequence No Sequence No`2 * DAT* +-/ sub_type_t$,731$.>283%01 Sub Type Sub Type`;)3 468easting_km_data_t$51024$7m498%9:UTM Easting KMUTM Easting KM`D2<DAT*  =?Alatitude_data_t$>O1531$@<274%BC Latitude Latitude`M;E FHJlongitude_data_t$G1815$IA)297%KL Longitude Longitude`VDNDAT*  OQSnorthing_km_data_t$PI2121$Rt530%TUUTM Northing KMUTM Northing KM`MW XZ\ zone_no_t$YFe 2661$[D7311%]^ UTM Zone UTM Zone@DAT* @Pamb`cegi (l group_rid$d 9$f@64$hB.302&jk [general] [general]tan`DAT* oeqi(s sequence_no$pF@320$rX402~mu`vexz(} sub_type$w731$y>283&{| [general] [general]DAT* t`ei((easting_km_data$1024$m498~`ei2(latitude_data$O1531$<274DAT* `ei<(longitude_data$1815$A)297`eiF(northing_km_data$I2121$t530DAT* `eiP(zone_no$Fe 2661$D7311@DDAT*  @a m t@~ @ @DAT* ices.source_ridh device_rid%rap_tmp_emis_unit_devices.device_ridquser_id"rap_tmp_emis_unit_devices.user_idz tribal_code&rap_tmp_emis_unit_devices.tribal_code county_fips&rap_tmp_emis_unit_devices.county_fipssic_unit_level)rap_tmp_emis_unit_devices.sic_unit_levelnaics_unit_level+rap_tmp_emis_unit_devices.naics_unit_levelDAT*8 >PBSELECT( VERSION(400) TABLE(NAME="rap_tmp_emis_unit_devices" ) COLUMN(NAME="rap_tmp_emis_unit_devices.state_fips") COLUMN(NAME="rap_tmp_emis_unit_devices.site_id") COLUMN(NAME="rap_tmp_emis_unit_devices.scc") COLUMN(NAME="rap_tmp_emis_unit_devices.scc7") COLUMN(NAME="rap_tmp_emis_unit_devices.emission_unit_id") COLUMN(NAME="rap_tmp_emis_unit_devices.emission_unit_desc") COLUMN(NAME="rap_tmp_emis_unit_devices.design_cap") COLUMN(NAME="rap_tmp_emis_unit_devices.design_cap_unit_num") COLDAT*  @ @ @ntou :an_grouprid:an_sequenceno an_groupridan_sequencenorap_location_coordinates group_rid#rap_location_coordinates.group_rida sequence_no%rap_location_coordinates.sequence_nom sub_type"rap_location_coordinates.sub_typeDAT* teasting_km_data)rap_location_coordinates.easting_km_data~latitude_data'rap_location_coordinates.latitude_datalongitude_data(rap_location_coordinates.longitude_datanorthing_km_data*rap_location_coordinates.northing_km_datazone_no!rap_location_coordinates.zone_noPBSELECT( VERSION(400) TABLE(NAME="rap_location_coordinates" ) COLUMN(NAME="raDAT* p_location_coordinates.group_rid") COLUMN(NAME="rap_location_coordinates.sequence_no") COLUMN(NAME="rap_location_coordinates.sub_type") COLUMN(NAME="rap_location_coordinates.easting_km_data") COLUMN(NAME="rap_location_coordinates.latitude_data") COLUMN(NAME="rap_location_coordinates.longitude_data") COLUMN(NAME="rap_location_coordinates.northing_km_data") COLUMN(NAME="rap_location_coordinates.zone_no")WHERE( EXP1 ="rap_location_coordinates.group_rid" OP ="=" EXP2 ="" LOGIC ="and" ) WHEDAT*RE( EXP1 ="rap_location_coordinates.sequence_no" OP ="=" EXP2 ="" ) ) ARG(NAME = "an_grouprid" TYPE = number) ARG(NAME = "an_sequenceno" TYPE = number) "no"yesDAT* History // Date Name Revision //-------------------------------------------------------------------------------- // 10/12/2000 Mark Young Initial Version // 01/31/05 Steve Oliphant Added in tribal code for case "UPDATE STREAM RID" //******************************************************************************** //EXTEND this script as follows //DO NOT place code here in the base class unless it will apply to all //objects of this class and its descendants //EXAMPLE: //ReDAT* turn NULL to stop the scanning process normally //(of_scan() will return the row stopped on) //Return Negative Value to stop the scanning process with error status //(of_scan() will return the Negative Value) //force argument to upper case as_action = upper(trim(as_action)) choose case as_action // ************************************************************************* case "UPDATE STREAM RID" // ************************************************************************* iDAT*f is_scc = string(this.object.scc[al_row]) and & is_tribal_code = this.object.tribal_code[al_row] then this.object.output_stream_rid[al_row] = double(aa_data) end if // ************************************************************************* case "UPDATE MASS FLOW STREAM RID" // updated 01/28/05 by sjo for tribal_code // ************************************************************************* if is_siteid = this.object.site_id[al_row] & and is_euid = this.object.DAT* PDW0800pdw+_````` F$nn``DAT*  @DV` DAT* **************************************************************** // Revision History // Date Name Revision //-------------------------------------------------------------------------------- // 10/12/2000 Mark Young Initial Version // 01/30/2005 Steve Oliphant Added in tribal code check for case "UPDATE INPUT STREAM RID" // 01/31/2005 Steve Oliphant Added in tribal code check for case "UPDATE STREAM RID" //********************************************************************************DAT*  //EXTEND this script as follows //DO NOT place code here in the base class unless it will apply to all //objects of this class and its descendants //EXAMPLE: //Return NULL to stop the scanning process normally //(of_scan() will return the row stopped on) //Return Negative Value to stop the scanning process with error status //(of_scan() will return the Negative Value) //force argument to upper case as_action = upper(trim(as_action)) choose case as_action // ******DAT******************************************************************** case "UPDATE STREAM RID" // ************************************************************************* if is_scc = string(this.object.scc[al_row]) and & is_tribal_code = this.object.tribal_code[al_row] then this.object.input_stream_rid[al_row] = double(aa_data) end if // ************************************************************************* case "UPDATE INPUT STREAM RID" // SJO 01/28/05 updated for tribaDAT*  rid_t< $0%  MS Sans SerifMS Sans Serif$ 2$-8$700$1$ 536870912$ DAT* 9$8$452$<274%RidRid`)! "$& ref_rid_t$#@%293$%<274%'(Ref RidRef Rid`2 * +-/DAT*  shape_type_t$,~@576$.Ne357%01 Shape Type Shape Type`;)3 468accuracy_amt_t$5942$7r 521%9:Accuracy AmountAccuracy Amount`D2< =DAT* ?Aaccuracy_type_t$>B1472$@b448%BCAccuracy TypeAccuracy Type`M;E FHJcalculation_type_t$G1929$Io507%KLCalculation TypeCalculation Type`VDNDAT*  OQS datum_year_t$P 2446$RL[347%TU Datum Year Datum Year`MW XZ\measured_desc_t$Ye 2802$[ %1317%]^Measured DescriptionMeasured DescriptiDAT* on@@Pamb`cegi (lrid$d 9$f@64$h<274&jk [general] [general]tan`DAT* forward global type n_ds_nei_import_rap_reference_codes from n_ds_nei_import_temp_base end type end forward global type n_ds_nei_import_rap_reference_codes from n_ds_nei_import_temp_base end type global n_ds_nei_import_rap_reference_codes n_ds_nei_import_rap_reference_codes on n_ds_nei_import_rap_reference_codes.create call datastore::create TriggerEvent( this, "constructor" ) end on on n_ds_nei_import_rap_reference_codes.destroy call datastore::destroy TriggerEvent( this, "destDAT* ructor" ) end on event constructor;call super::constructor;//set the file extension and data source this.of_setDataType("txt", "d_nei_import_rap_reference_codes") //override the default name //this.of_setFileName("ds_county_activities") //override the default save as option of no headings this.of_setFileHeadings(true) end event event ue_populate;long ll_rc string ls_null, ls_filter setnull(ls_null) ll_rc = this.retrieve() if ll_rc < 0 then //error data populated by dbErrorDAT* event signalError(il_error, is_error) end if //ll_rc = this.of_scan("set_process_information", ls_null) return ll_rc end event DAT* oeqi(sref_rid$p@%293$r<274~mu`vexz(} shape_type$w~@576$yNe357&{| [general] [general]DAT* t`ei(( accuracy_amt$942$r 521~`ez2( accuracy_type$B1472$b448DAT* `ez<(calculation_type$1929$o507`ezF( datum_year$ 2446$L[347DAT* `ezP(#measured_desc$e 2802$ %1317@DDAT* f ll_return < 1 then of_putinmessagelog(-1, "Error", "Unable to process this " + ls_fipscombination + & " combination any further.") continue end if //******************************************************************************************* if not of_yield() then exit // //******************************************************************************************* //source activities section 3.2.4.11 Create Source Activity Data DAT* //******************************************************************************************* // of_setlogmessage(ids_sources.is_description , ids_rapactivities.is_description + " :source activities" ) iw_imain.dw_header.uf_PutHeadMsg(ls_header + ids_rapactivities.is_description + " :source activities", il_header ) ll_return = of_createptsourceactivities() iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, il_inserts, il_updates) if ll_return < 1 then of_putinDAT* messagelog(-1, "Error", "Unable to process this " + ls_fipscombination + & " combination for source activities.") end if // not doing for 2.1.7 release or NIF 3.0 data update handling (Jan 28, 2005) // if not of_yield() then exit // //emission unit activities section 3.2.4.12 Create Emission Unit Activity Data // //******************************************************************************************* // of_setlogmessage(ids_emisunitdevices.is_descrDAT* iption , ids_rapactivities.is_description + " :emission unit activities" ) // iw_imain.dw_header.uf_PutHeadMsg(ls_header + ids_rapactivities.is_description + " :emission unit activities", il_header ) // ll_return = of_createptemisunitdeviceactivities () // iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, il_inserts, il_updates) // if ll_return < 1 then // of_putinmessagelog(-1, "Error", "Unable to process this " + ls_fipscombination + & // " for emission unitDAT*  activities .") // end if if not of_yield() then exit // //******************************************************************************************* //emission release point activities section 3.2.4.13 Create Emission Release Point Activity Data //******************************************************************************************* // of_setlogmessage(ids_emisrelptdevices.is_description , ids_rapactivities.is_description + " :emission release poinDAT* t activities" ) iw_imain.dw_header.uf_PutHeadMsg(ls_header + ids_rapactivities.is_description + " :emission release point activities", il_header ) ll_return = of_createptemisreleaseptactivities() iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, il_inserts, il_updates) if ll_return < 1 then of_putinmessagelog(-1, "Error", "Unable to process this " + ls_fipscombination + & " combination for emission release point activities.") end if iDAT* f not of_yield() then exit // //******************************************************************************************* //emission process activities section 3.2.4.14 Create Emission Process Activity Data //******************************************************************************************* // of_setlogmessage(ids_processes.is_description , ids_rapactivities.is_description + " :emission process activities" ) iw_imain.dw_header.uf_PutHeadMsg(ls_header + ids_rDAT* apactivities.is_description + " :emission process activities", il_header ) ll_return = of_createptemissionprocessdata() iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, il_inserts, il_updates) if ll_return < 1 then of_putinmessagelog(-1, "Error", "Unable to process this " + ls_fipscombination + & " combination for emission process activities.") end if if not of_yield() then exit // //**********************************************DAT* ********************************************* //emission control equipment activities section 3.2.4.15 // Create Control Equipment Activity Data //******************************************************************************************* // of_setlogmessage(ids_ctrlequipactivities.is_description , ids_rapactivities.is_description + " :control equipment activities" ) iw_imain.dw_header.uf_PutHeadMsg(ls_header + ids_rapactivities.is_description + " :control eqDAT* uipment activities", il_header ) ll_return = of_createptcontrolequipmentactivitydata() iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, il_inserts, il_updates) if ll_return < 1 then of_putinmessagelog(-1, "Error", "Unable to process this " + ls_fipscombination + & " combination for control equipment activities.") end if if not of_yield() then exit // //*******************************************************************************DAT* ************ //emission emission period activities section 3.2.4.16 // Create Emission Period Activity Data //******************************************************************************************* // of_setlogmessage(ids_emisperiodactivities.is_description , ids_rapactivities.is_description + " :emission period activities" ) iw_imain.dw_header.uf_PutHeadMsg(ls_header + ids_rapactivities.is_description + " :emission period activities", il_header ) ll_DAT* return = of_createptemissionperiodactivitydata() iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, il_inserts, il_updates) if ll_return < 1 then of_putinmessagelog(-1, "Error", "Unable to process this " + ls_fipscombination + & " combination for emission period activities.") end if if not of_yield() then exit // //******************************************************************************************* //emission activities sectiDAT* on 3.2.4.17 // Create Emission Activity Data //******************************************************************************************* // of_setlogmessage(ids_emisactivities.is_description , ids_rapactivities.is_description + " :emission activities" ) iw_imain.dw_header.uf_PutHeadMsg(ls_header + ids_rapactivities.is_description + " :emission activities", il_header ) ll_return = of_createptemissionactivitydata() iw_imain.dw_log.uf_putnotify(is_logfilename, iDAT* l_discards, il_inserts, il_updates) if ll_return < 1 then of_putinmessagelog(-1, "Error", "Unable to process this " + ls_fipscombination + & " combination for emission activities.") end if case "nr", "ar" if not of_yield() then exit //process rap_sources //******************************************************************************************* // of_setlogmessage(ids_sources.is_description , ids_rapsources.is_description ) iwDAT* _imain.dw_header.uf_PutHeadMsg(ls_header + ids_rapsources.is_description, il_header ) ll_return = of_createarsources() iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, il_inserts, il_updates) if ll_return < 1 then of_putinmessagelog(-1, "Error", "Unable to process this " + ls_fipscombination + " combination." ) continue end if //******************************************************************************************* if not of_yield() then exit DAT*  //process rap_devices //******************************************************************************************* of_setlogmessage(ids_emisunitdevices.is_description , ids_rapdevices.is_description ) iw_imain.dw_header.uf_PutHeadMsg(ls_header + ids_rapdevices.is_description , il_header ) ll_return = of_createardevices() iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, il_inserts, il_updates) if ll_return < 1 then of_putinmessagelog(-1, "Error", "Unable DAT* to process this " + ls_fipscombination + & " combination any further.") continue end if //******************************************************************************************* if not of_yield() then exit //process rap_processes //******************************************************************************************* of_setlogmessage(ids_processes.is_description , ids_rapprocesses.is_description ) iw_imain.dw_header.uf_PutHeadMsg(ls_heaDAT* der + ids_rapprocesses.is_description, il_header ) ll_return = of_createarprocesses() iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, il_inserts, il_updates) if ll_return < 1 then of_putinmessagelog(-1, "Error", "Unable to process this " + ls_fipscombination + & " combination any further.") continue end if //******************************************************************************************* if not of_yield() then exit //DAT* process rap_streams //******************************************************************************************* of_setlogmessage(ids_processes.is_description , ids_rapstreams.is_description ) iw_imain.dw_header.uf_PutHeadMsg(ls_header + ids_rapstreams.is_description, il_header ) ll_return = of_createarstreams() iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, il_inserts, il_updates) if ll_return < 1 then of_putinmessagelog(-1, "Error", "Unable to process tDAT* his " + ls_fipscombination + & " combination any further.") continue end if //******************************************************************************************* if not of_yield() then exit //emission process data //******************************************************************************************* of_setlogmessage(ids_processes.is_description , ids_rapspecificschedules.is_description ) iw_imain.dw_header.uf_PutHeadMsg(ls_header DAT* + ids_rapspecificschedules.is_description, il_header ) ll_return = of_createaremissionprocessdata() iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, il_inserts, il_updates) if ll_return < 1 then of_putinmessagelog(-1, "Error", "Unable to process this " + ls_fipscombination + & " combination any further.") continue end if //******************************************************************************************* if not of_yield() thDAT* en exit //control equipment data //******************************************************************************************* of_setlogmessage(ids_ctrlequipactivities.is_description , ids_rapactivities.is_description + " for control equipment" ) iw_imain.dw_header.uf_PutHeadMsg(ls_header + ids_rapactivities.is_description + " for control equipment", il_header ) ll_return = of_createarcontrolequipmentactivitydata() iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, DAT* il_inserts, il_updates) if ll_return < 1 then of_putinmessagelog(-1, "Error", "Unable to process this " + ls_fipscombination + & " combination for control equipment activities.") end if //******************************************************************************************* if not of_yield() then exit //emission period data //******************************************************************************************* of_setlogmessage(ids_emisperiodactDAT* ivities.is_description , ids_rapactivities.is_description + " for throughput" ) iw_imain.dw_header.uf_PutHeadMsg(ls_header + ids_rapactivities.is_description + " for throughput", il_header ) ll_return = of_createaremissionperiodactivitydata() iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, il_inserts, il_updates) if ll_return < 1 then of_putinmessagelog(-1, "Error", "Unable to process this " + ls_fipscombination + & " combination for emission period acDAT* tivities.") end if //******************************************************************************************* if not of_yield() then exit //emission data //******************************************************************************************* of_setlogmessage(ids_emisactivities.is_description , ids_rapactivities.is_description + " for discharge" ) iw_imain.dw_header.uf_PutHeadMsg(ls_header + ids_rapactivities.is_description + " for discharge", il_header DAT* ) ll_return = of_createaremissionactivitydata() iw_imain.dw_log.uf_putnotify(is_logfilename, il_discards, il_inserts, il_updates) if ll_return < 1 then of_putinmessagelog(-1, "Error", "Unable to process this " + ls_fipscombination + & " combination for emission activities.") end if //******************************************************************************************* end choose next //iw_imain.dw_header.uf_putheader(false, il_header) return 1DAT*  end function public function long of_updaterapidstable (d_ds_nei_import_rapids_base ads_temp, ref str_ierror importerr);//updates temp table and passes any error message back if update fails //returns < 0 for errors long ll_rc if not of_yield() then return -5 ll_rc = ads_temp.update() //ll_rc = f_sqlCheck(SQLCA) if ll_rc < 0 then ROLLBACK USING SQLCA; il_discards++ iw_imain.dw_header.uf_putstats("reject", il_header) importerr.berror = true importerr.szattrName = "System EDAT* rror" importerr.szMessage = "Unable to save " + ads_temp.is_description + "DB Error: " + f_msgstring(ads_temp.is_error) //importerr.szMessage = "Unable to save " + ads_temp.is_description + "DB Error: " + SQLCA.SQLErrText iw_imain.dw_log.uf_putmessage ( is_logfilename,importerr ) else COMMIT USING SQLCA; END IF return ll_rc end function public subroutine of_resetcounters ();//resets the record counters il_discards = 0 il_inserts = 0 il_updates = 0 end subroutine public funDAT* ction integer of_setlogfilename (string as_source, string as_destination);//sets the log file name is_logfilename = "From " + as_source + " To " + as_destination return 1 end function public function integer of_setlogmessage (string as_source, string as_destination);//sets up the logging system and puts header message for import //resets the counters of_resetcounters() //initializes the is_logfilename of_setlogfilename(as_source, as_destination) //puts header into log iw_imain.dDAT* w_log.uf_putnotify(is_logfilename, -1, 0, 0) return 1 end function public function integer of_putinmessagelog (long al_row, string as_attrname, string as_message);//Puts error message into log str_ierror importerr il_discards++ iw_imain.dw_header.uf_putstats("reject", il_header) importerr.berror = true importerr.nerrornum = sqlca.sqldbcode importerr.szattrName = as_attrName importerr.szMessage = as_message iw_imain.il_LineNum = al_row iw_imain.dw_log.uf_putmessage ( is_logfilenDAT*B ame, importerr ) return 1 end function public function long of_setvalue (datastore ads_object, long al_row, string as_columnname, any aa_value, ref str_ierror importerr, boolean ab_required);//validates setting values for updates integer li_ret integer li_colNum string ls_temp any la_value ls_temp = ads_object.describe(as_columnName + '.id') if ls_temp = '!' then messageBox("Error", "Invalid column name '" + as_columnName + "'", exclamation!) ImportErr.bError = TRUE ImportErDAT*  @a @m t@~ @ @DAT* @@$@ :an_refrid:as_shapetype an_refrid as_shapetyperap_location_coordinate_groupsrid#rap_location_coordinate_groups.ridaref_rid'rap_location_coordinate_groups.ref_ridm shape_type*rap_location_coordinate_groups.shape_typeDAT* t accuracy_amt,rap_location_coordinate_groups.accuracy_amt~accuracy_type-rap_location_coordinate_groups.accuracy_typecalculation_type0rap_location_coordinate_groups.calculation_type datum_year*rap_location_coordinate_groups.datum_yearmeasured_desc-rap_location_coordinate_groups.measured_descPBSELECT( VERSION(400) TABLE(NAME="rap_locatDAT* ion_coordinate_groups" ) COLUMN(NAME="rap_location_coordinate_groups.rid") COLUMN(NAME="rap_location_coordinate_groups.ref_rid") COLUMN(NAME="rap_location_coordinate_groups.shape_type") COLUMN(NAME="rap_location_coordinate_groups.accuracy_amt") COLUMN(NAME="rap_location_coordinate_groups.accuracy_type") COLUMN(NAME="rap_location_coordinate_groups.calculation_type") COLUMN(NAME="rap_location_coordinate_groups.datum_year") COLUMN(NAME="rap_location_coordinate_groups.measured_desc")WHERE( EXP1 ="rDAT*\ap_location_coordinate_groups.ref_rid" OP ="=" EXP2 ="" LOGIC ="and" ) WHERE( EXP1 ="rap_location_coordinate_groups.shape_type" OP ="=" EXP2 ="" ) ) ARG(NAME = "an_refrid" TYPE = number) ARG(NAME = "as_shapetype" TYPE = string) "no"yesDAT*| e_2|cityrap_tmp_sources.citystaterap_tmp_sources.state zip_coderap_tmp_sources.zip_codecountryrap_tmp_sources.countryinventory_yearrap_tmp_sources.inventory_year source_typerap_tmp_sources.source_typenaics_primaryrap_tmp_sources.naics_primary tribal_coderap_tmp_sourDAT*ng) ARG(NAME = "State_RID" TYPE = number) "no"yesDAT*C=yes ) ARG(NAME = "state_FIPS" TYPE = string) "no"yesDAT* snull(this.of_getData("system_value_name_2")) then as_rapidsvaluename = trim(string(this.of_getData("rapids_value_name"))) if as_rapidsvaluename <> "" then return true end if end if setNull(as_rapidsvaluename) return false end function on n_ds_nei_import_conversion_lookup_codes.create call super::create end on on n_ds_nei_import_conversion_lookup_codes.destroy call super::destroy end on event constructor; //set the file extension and data source this.of_setDataType("txDAT*|t", "d_data_set_conversion_lookup_codes_no_pa") //override the default name //this.of_setFileName("ds_conversion_lookup_codes") //override the default save as option of no headings this.of_setFileHeadings(true) end event event ue_populate;long ll_rc ll_rc = this.retrieve(is_rapidsFieldName, is_rapidsValueName) if ll_rc < 0 then //error data populated by dbError event signalError(il_error, is_error) end if return ll_rc end event event ue_populateend;//overridDAT*.8d  destroy88080)L88T0)89)8, 1, $> Z pd& ancestorreturnvalue::message( ca @ constructortxtd_nei_rap_tmp_emis_period_activitiesof_setdatatype=rap_tmp_emis_period_activitiesof_setfiledescriptiDAT*" eaccesssaveastypen_cst_nei_importpowerobjectn_ds_conversion_basemessage uctxttm@is_p+viof_Le@=Uis@iod_ko@tfilvon@ fi@adin@ @ @ C**8d  createDAT*\8d  destroy88080)L88T0)89)8, 1, $> Z pd& ancestorreturnvalue::message( ca @ constructortxtd_nei_rap_tmp_emis_rel_pt_devicesof_setdatatype_ge:rap_tmp_emis_rel_pt_devicesof_setfiledescriptionrt pDAT*& release 6; datawindow(units=0 timer_interval=0 color=16777215 processing=1 print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.prompt=no print.buttons=no print.preview.buttons=no grid.lines=0 ) header(height=68 color="536870912" ) summary(height=0 color="536870912" ) footer(height=0 color="536870912" ) detail(height=80 color="536870912" ) table(column=(typDAT*( e=char(12) update=yes updatewhereclause=yes key=yes name=code dbname="rap_reference_codes.code" ) column=(type=char(255) update=yes updatewhereclause=yes name=comment_text dbname="rap_reference_codes.comment_text" ) retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"rap_reference_codes~" ) COLUMN(NAME=~"rap_reference_codes.code~") COLUMN(NAME=~"rap_reference_codes.comment_text~")) " update="rap_reference_codes" updatewhere=1 updatekeyinplace=yes ) text(band=header alignment="2" text="Code"border="DAT** 0" color="0" x="9" y="8" height="52" width="549" name=code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Comment Text"border="0" color="0" x="567" y="8" height="52" width="4718" name=comment_text_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.coloDAT*, r="536870912" ) column(band=detail id=1 alignment="1" tabsequence=10 border="0" color="0" x="9" y="8" height="64" width="549" format="[general]" name=code edit.limit=12 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=2 alignment="0" tabsequence=20 border="0" color="0" x="567" y="8" heDAT*ight="64" width="4718" format="[general]" name=comment_text edit.limit=255 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) htmltable(border="1" cellpadding="0" cellspacing="0" generatecss="no" nowrap="yes") DAT*4no"yesDAT*2 MN(NAME="rap_devices.comment_text") COLUMN(NAME="rap_devices.dismantle_date") COLUMN(NAME="rap_devices.group_flag") COLUMN(NAME="rap_devices.group_type") COLUMN(NAME="rap_devices.install_date") COLUMN(NAME="rap_devices.name") COLUMN(NAME="rap_devices.operator_code") COLUMN(NAME="rap_devices.operator_id") COLUMN(NAME="rap_devices.operator_name") COLUMN(NAME="rap_devices.sic_code") COLUMN(NAME="rap_devices.naics_code")WHERE( EXP1 ="rap_devices.id" OP ="=" EXP2 ="" LOGIC ="and" ) WHERE( DAT* EXP1 ="rap_devices.source_rid" OP ="=" EXP2 ="" ) ) ARG(NAME = "as_deviceID" TYPE = string) ARG(NAME = "as_devicecode" TYPE = string) ARG(NAME = "al_sourcerid" TYPE = number) QS"Rno"TyesDAT* ) WHERE( EXP1 ="rap_processes.id" OP ="=" EXP2 ="" ) ) ARG(NAME = "al_devicerid" TYPE = number) ARG(NAME = "as_processid" TYPE = string) pr"qno"syesDAT*ine_2_addr") COLUMN(NAME="rap_sources.location_zip_code") COLUMN(NAME="rap_sources.sic_code") COLUMN(NAME="rap_sources.operator_id") COLUMN(NAME="rap_sources.operator_code") COLUMN(NAME="rap_sources.operator_name") COLUMN(NAME="rap_sources.naics_code")WHERE( EXP1 ="rap_sources.id" OP ="=" EXP2 ="" ) ) ARG(NAME = "as_sourceID" TYPE = string) "no"yesDAT*: UMN(NAME="rap_tmp_emis_unit_devices.design_cap_unit_denom") COLUMN(NAME="rap_tmp_emis_unit_devices.inventory_year") COLUMN(NAME="rap_tmp_emis_unit_devices.start_date") COLUMN(NAME="rap_tmp_emis_unit_devices.end_date") COLUMN(NAME="rap_tmp_emis_unit_devices.source_rid") COLUMN(NAME="rap_tmp_emis_unit_devices.device_rid") COLUMN(NAME="rap_tmp_emis_unit_devices.user_id") COLUMN(NAME="rap_tmp_emis_unit_devices.tribal_code") COLUMN(NAME="rap_tmp_emis_unit_devices.county_fips") COLUMN(NAME="rap_tmp_emisDAT*< _unit_devices.sic_unit_level") COLUMN(NAME="rap_tmp_emis_unit_devices.naics_unit_level")WHERE( EXP1 ="rap_tmp_emis_unit_devices.state_fips" OP ="=" EXP2 ="" LOGIC ="and" ) WHERE( EXP1 ="rap_tmp_emis_unit_devices.county_fips" OP ="=" EXP2 ="" LOGIC ="and" ) WHERE( EXP1 ="rap_tmp_emis_unit_devices.user_id" OP ="=" EXP2 ="" ) ) ORDER(NAME="rap_tmp_emis_unit_devices.state_fips" ASC=yes ) ORDER(NAME="rap_tmp_emis_unit_devices.county_fips" ASC=yes ) ARG(NAME = "as_stateDAT*fips" TYPE = string) ARG(NAME = "as_countyfips" TYPE = string) ARG(NAME = "as_userid" TYPE = string) \"1"1"1"1"0"0"0DAT*@ esssaveastypen_cst_nei_importpowerobjectn_ds_conversion_basemessage uctxttm@is_r+ce_setJge@:Sis@_pt_i_s@ledetrt@phe@gs@ @ @ C**8d  create8DAT*hd  destroy88080)H88P0)89)8, 1, $> Z pd& ancestorreturnvalue::message( ca @ constructortxtd_nei_rap_tmp_emis_unit_devicesof_setdatatypee8rap_tmp_emission_unit_devicesof_setfiledescription nof_setfiDAT*D r.szAttrName = 'System Error' ImportErr.szMessage = "Invalid column name '" + as_columnName + "'" iw_imain.dw_log.uf_putmessage ( is_logfilename,importerr ) return -1 end if if ab_required then li_colNum = integer(ls_temp) if IsNull(aa_value) then ImportErr.bError = TRUE ImportErr.szAttrName = as_columnName ImportErr.szMessage = "A value must be supplied for '" + as_columnName + "'" iw_imain.dw_log.uf_putmessage ( is_logfilename,importerr ) return -1 endDAT*F  if end if //************ integer li_pos, li_pos1, li_pos2 integer li_columnLength, li_dataLength string ls_type string ls_columnLengthString if not isNull(aa_value) then //grab the column length for character fields ls_type = ads_object.describe(as_columnName + ".colType") if lower(left(ls_type, 5)) = "char(" /*char(n)*/ then //get the column length li_pos1 = pos(ls_type, "(") + 1 li_pos2 = pos(ls_type, ")") ls_columnLengthString = mid(ls_type, li_pos1, li_pDAT*H os2 - li_pos1) li_columnLength = integer(ls_columnLengthString) //get the data length li_dataLength = len(trim(string(aa_value))) //truncate data if length exceeds column length if li_dataLength > li_columnLength then aa_value = left(trim(string(aa_value)), li_columnLength) end if end if end if //************ li_ret = ads_object.setitem(al_row, as_columnName, aa_value) if li_ret < 1 then importerr.berror = true importerr.szattrName = "System ErDAT*J ror" importerr.szMessage = "Unable to set the value of " + f_msgstring(aa_value) + " for Column: '" + as_columnName + "'" iw_imain.dw_log.uf_putmessage ( is_logfilename,importerr ) END IF return li_ret end function public function long of_updaterapidstable (d_ds_nei_import_rapids_base ads_temp, ref str_ierror importerr, boolean ab_insert);//updates temp table and passes any error message back if update fails //returns < 0 for errors long ll_rc if not of_yield() then return -5 DAT*L  ll_rc = ads_temp.update() //ll_rc = f_sqlCheck(SQLCA) if ll_rc < 0 then ROLLBACK USING SQLCA; il_discards++ iw_imain.dw_header.uf_putstats("reject", il_header) importerr.berror = true importerr.szattrName = "System Error" importerr.szMessage = "Unable to save " + ads_temp.is_description + "DB Error: " + f_msgstring(ads_temp.is_error) //importerr.szMessage = "Unable to save " + ads_temp.is_description + "DB Error: " + SQLCA.SQLErrText iw_imain.dw_log.uf_putmessage ( is_logfilenDAT*N ame,importerr ) else COMMIT USING SQLCA; if ab_insert then il_inserts++ iw_imain.dw_header.uf_putstats("insert", il_header) else iw_imain.dw_header.uf_putstats("update", il_header) il_updates++ end if END IF return ll_rc end function public function double of_addprocessspecificschedule (double ad_processrid, string as_beginmonth, string as_endmonth, string as_year, double ad_relativeactivityamount);//add or update a record for process specific schedule //***********DAT*P ******************************************************************************* //retrieve rapids data //rapids table being updated long ll_iraprc d_ds_nei_import_rapids_base lds_irapids lds_irapids = ids_rapspecificschedules boolean lb_insert double ld_rid = 0 integer li_ret str_ierror importerr if not of_yield() then return -5 if ad_relativeactivityamount <> 0 then ll_iraprc = lds_irapids.retrieve(ad_processrid, as_beginmonth, as_endmonth, as_year) if ll_iraprc = 0 then lb_inDAT*R sert = true elseif ll_iraprc < 0 then return -1 else lb_insert = false end if if lb_insert = true then ll_iraprc = lds_irapids.insertrow(0) end if //add to the table if lb_insert then ld_rid = f_get_sequence() li_ret = of_setvalue(lds_irapids, ll_iraprc, "rid", ld_rid, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "process_rid", ad_processrid, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "begin_month_no", as_beginmonth, iDAT*T mporterr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "end_month_no", as_endmonth, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "year", as_year, importerr, true) else ld_rid = lds_irapids.object.rid[ll_iraprc] end if li_ret = of_setvalue(lds_irapids, ll_iraprc, "relative_activity_amt", ad_relativeactivityamount, importerr, true) if of_updaterapidstable(lds_irapids, importerr) > 0 then if lb_insert then il_inserts++ else il_updates++ eDAT*V nd if end if end if //****************************************************************************************** return ld_rid end function public function boolean of_yield ();yield() return iw_imain.bimporting end function public function double of_insertstreamactivity (string as_code, string as_id, double ad_inputrid, double ad_outputrid, long al_row, ref str_ierror importerr, boolean ab_addmessage); //inserts a record into the rap streams table includes additional functionDAT*X  to count updates, inserts, rejects and //post messages back to the importer double ld_rid if not of_yield() then return -5 ld_rid = f_insertstream(as_code, as_id, ad_inputrid, ad_outputrid, importerr) if ab_addmessage and ld_rid < 1 then of_putinmessagelog(al_row, importerr.szattrName,importerr.szmessage) else if importerr.Bupdate = false then il_inserts++ iw_imain.dw_header.uf_putstats("insert", il_header) else il_updates++ iw_imain.dw_header.uf_puDAT*Z tstats("update", il_header) end if end if return ld_rid end function public function double of_insertactivity (string as_metriccode, string as_metricleveltype, long al_refrid, datetime adt_startdate, string as_value, string as_datacode, datetime adt_enddate, string as_materialcode, string as_methodtype, string as_referencecode, string as_referencetype, double ad_valueamt, string as_valuetype, string as_valueunitcode, long al_row, ref str_ierror importerr, boolean ab_addmessage); /DAT*\ /Insert a new activity record, or update and existing activity record //if given activity already exists. extends the f_insertactivity function to include tracking //and error messaging specific to nei import. // //Input: // as_metricCode // as_metricLeveltype // al_refRid // adt_startDateTime // as_value // as_dataCode // adt_endDateTime // as_materialCode // as_methodType // as_referenceCode // as_referenceType // an_valueAmt // as_valueType // as_valueUnitCode // al_row /DAT*^ / importErr // ab_addmessage //Returns: // RID Normal insert/update // -1 Error // double ld_rid if not of_yield() then return -5 if isnull(as_value) or as_value = "" then if not isnull(ad_valueamt) then as_value = string(ad_valueamt) end if end if ld_rid = f_insertactivity(as_metriccode, as_metricleveltype, al_refrid, adt_startdate, as_value, & as_datacode, adt_enddate, as_materialcode, as_methodtype, as_referenceCode, & as_referenceType, ad_valueDAT*` amt, as_valuetype, as_valueunitcode, importerr) if ab_addmessage and ld_rid < 1 then of_putinmessagelog(al_row, importerr.szattrName,importerr.szmessage + ": " + sqlca.sqlerrtext) else if importerr.Bupdate = false then il_inserts++ iw_imain.dw_header.uf_putstats("insert", il_header) else il_updates++ iw_imain.dw_header.uf_putstats("update", il_header) end if end if return ld_rid end function public function long of_createptsources ();/* This routine processes thDAT*b e point source data. This data comes from the sites input data. January 27, 2005 by Steve Oliphant Added in code to handle moving through the list by site id and tribal code combinations. Also added in code to insert the city rid into column GEOGRAPHIC_INCORP_RID. */ //driver variables long ll_row, ll_rc, ll_iraprc string ls_condition boolean lb_insert integer li_ret str_ierror importerr long ll_sourcerid ll_row = 0 //temp table n_ds_nei_import_temp_base lds_tdata DAT*d //rapids table being updated d_ds_nei_import_rapids_base lds_irapids //rapids variables double ld_rid, ld_cityrid string ls_code = "@" string ls_id string ls_tribal_code // sjo 1/27/05 string ls_Name string ls_type datetime ldt_startopdate string ls_commenttext datetime ldt_endopdate string ls_groupflag = "Y" string ls_groupType = "SOURCE" string ls_locationline1addr string ls_locationline2addr string ls_locationzipcode string ls_siccode string ls_naics string ls_city //DAT*f temp variables integer li_year lds_tdata = ids_sources // maps to n_ds_nei_tmp_sources, the temp table. lds_irapids = ids_rapsources // maps to n_ds_nei_import_rap_sources, the perm table. lds_tdata.of_sort("tribal_code, site_id ") // sort errors handled by of_sort ll_rc = lds_tdata.rowcount() iw_imain.wf_progress(0) /* Process the sources in site ID order. */ for ll_row = 1 to ll_rc iw_imain.wf_progress(ll_row/ll_rc) if ls_id = lds_tdata.object.site_id[ll_row] and & DAT*h  ls_tribal_code = lds_tdata.object.tribal_code[ll_row] then continue // skips to the end of the for loop else ls_id = lds_tdata.object.site_id[ll_row] ls_tribal_code = lds_tdata.object.tribal_code[ll_row] end if if isnull(ls_id) then of_putinmessagelog(ll_row, "Data Error", "Site ID column is null") continue end if //retrieve rapids data ll_iraprc = lds_irapids.retrieve(ls_id) lb_insert = false if ll_iraprc = 0 then ll_iraprc = lds_irapids.insertrow(0) DAT*j  lb_insert = true elseif ll_iraprc < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to connect to database") continue else //added code for bulk deletes ll_sourcerid = lds_irapids.object.rid[1] if of_bulkdeletesources(ll_sourcerid, ls_id, ll_row) > 0 then //only reset to if all sources are deleted ll_iraprc = lds_irapids.insertrow(0) lb_insert = true end if end if //ls_scc = lds_tdata.object.scc[ll_row] /* Extract data from temp souDAT*l rces table and aassign to dynamic variables. */ ls_type = lds_tdata.object.source_type[ll_row] li_year = lds_tdata.object.inventory_year[ll_row] ldt_startopdate = datetime(date(li_year,1,1)) ldt_endopdate = datetime(date(li_year, 12, 31)) ls_commenttext = lds_tdata.object.site_description[ll_row] ls_locationline1addr = lds_tdata.object.street_line_1[ll_row] ls_locationline2addr = lds_tdata.object.street_line_2[ll_row] /* City rid look up code added 1/27/2005 */DAT*n  ls_city = lds_tdata.object.city[ll_row] ls_city = trim(ls_city) Select RAP_GEOGRAPHIC_LOCATIONS.RID into :ld_cityrid from RAP_GEOGRAPHIC_LOCATIONS where RAP_GEOGRAPHIC_LOCATIONS.TYPE = 'CITY' and RAP_GEOGRAPHIC_LOCATIONS.NAME = :ls_city and RAP_GEOGRAPHIC_LOCATIONS.PARENT_RID = :id_countyrid; if SQLCA.SQLcode <> 0 then if SQLCA.SQLcode = 100 then of_putinmessagelog(ll_row, "City Not Found error", & "City name = " + ls_city) else ofDAT*p _putinmessagelog(ll_row, "DB SQL Error", & "Error Message: " + SQLCA.SQLErrText) end if continue end if ls_locationzipcode = lds_tdata.object.zip_code[ll_row] ls_siccode = lds_tdata.object.sic_primary[ll_row] ls_name = lds_tdata.object.facility_name[ll_row] ls_naics = lds_tdata.object.naics_primary[ll_row] if isnull(ls_naics) then ls_naics = '' //add data to rapids permanent table if lb_insert then ld_rid = f_get_sequence() li_ret = of_setvalue(lDAT*r ds_irapids, ll_iraprc, "rid", ld_rid, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "id", ls_id, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "geographic_state_rid", id_staterid, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "geographic_county_rid", id_countyrid, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "code", ls_code, importerr, true) else ld_rid = lds_irapids.object.rid[ll_iraprc] end if li_ret = of_seDAT*t tvalue(lds_irapids, ll_iraprc, "geographic_incorp_rid", ld_cityrid, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "name", ls_name, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "type", ls_type, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "begin_operation_date", ldt_startopdate, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "end_operation_date", ldt_endopdate, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "gDAT*v roup_flag", ls_groupflag, importerr, false) li_ret = of_setvalue(lds_irapids, ll_iraprc, "group_type", ls_grouptype, importerr, false) if ls_naics <> "" and not isnull(ls_naics) then li_ret = of_setvalue(lds_irapids, ll_iraprc, "naics_code", ls_naics, importerr, true) end if if ls_commenttext <> "" and not isnull(ls_commenttext) then li_ret = of_setvalue(lds_irapids, ll_iraprc, "comment_text", ls_commenttext, importerr, false) end if if ls_locationline1addr <> "" and noDAT*J t isnull(ls_locationline1addr) then li_ret = of_setvalue(lds_irapids, ll_iraprc, "location_line_1_addr", ls_locationline1addr, importerr, false) end if if ls_locationline2addr <> "" and not isnull(ls_locationline2addr) then li_ret = of_setvalue(lds_irapids, ll_iraprc, "location_line_2_addr", ls_locationline2addr, importerr, false) end if if ls_locationzipcode <> "" and not isnull(ls_locationzipcode) then li_ret = of_setvalue(lds_irapids, ll_iraprc, "location_zip_code", lsDAT*z 0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=13 alignment="1" tabsequence=32766 border="0" color="0" x="6578" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=source_rid visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="40DAT* 0" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=14 alignment="1" tabsequence=32766 border="0" color="0" x="6917" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=device_rid visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" baDAT*~ ces.tribal_codefacility_namerap_tmp_sources.facility_namea start_daterap_tmp_sources.start_date end_daterap_tmp_sources.end_date source_ridrap_tmp_sources.source_riduser_idrap_tmp_sources.user_idPBSELECT( VERSION(400) TABLE(NAME="rap_tmp_sources" ) COLUMN(NAME="rap_tmp_sources.state_fips") COLUMN(NAME="rap_tmp_sources.county_fipsDAT* ") COLUMN(NAME="rap_tmp_sources.site_id") COLUMN(NAME="rap_tmp_sources.scc") COLUMN(NAME="rap_tmp_sources.scc4") COLUMN(NAME="rap_tmp_sources.facility_category") COLUMN(NAME="rap_tmp_sources.sic_primary") COLUMN(NAME="rap_tmp_sources.site_description") COLUMN(NAME="rap_tmp_sources.street_line_1") COLUMN(NAME="rap_tmp_sources.street_line_2") COLUMN(NAME="rap_tmp_sources.city") COLUMN(NAME="rap_tmp_sources.state") COLUMN(NAME="rap_tmp_sources.zip_code") COLUMN(NAME="rap_tmp_sources.country") COLUMN(DAT*  fileselected fileselectedstatestateyearyear required requiredniftypeniftype &-4;BIPW^elsz (pttrd_nei_n3_format_transmittaDAT* l @ynif3( pttrd_nei_format_transmittal @ynif2(   ptsid_nei_n3_format_site?ynif3(ptsid_nei_format_site?ynif2(pteud_nei_n3_format_emission_unit@ynif3( !"#DAT* $%pteud_nei_format_emission_unit@ynif2('()*+,ptep'd_nei_n3_format_point_emission_process@ynif3(./0123ptep$d_nei_format_point_emission_process@ynif2(56789:ptpe&d_nei_n3_format_point_emission_period@ynif3(<=>?DAT* @Aptpe#d_nei_format_point_emission_period@ynif2(CDEFGHpter$d_nei_n3_format_emission_release_pt@nnif3(JKLMNOpter!d_nei_format_emission_release_pt@nnif2(QRSTUVptce(d_nei_n3_format_point_control_equipment@nnif3(XYZ[DAT* _importpowerobjectn_ds_conversion_basemessage uctxttm@is_u+setdaB@rap_Kon@t_deaet@descl@of_swin@ @ @ @ C*28d  create8dDAT*r  destroy88080)@88H0)p89)8, 1, $> Z pd& ancestorreturnvalue::message( @ constructortxtd_nei_rap_tmp_processesof_setdatatype0rap_tmp_processesof_setfiledescription Zof_setfileheadings x@ p DAT* arseRecordString() currently supports only datastores where all columns are 'char(n)'") return ls_null end if //grab the substring from the record string corresponding to the current column ls_data = mid(as_recordString, li_pos, li_columnLength) //ls_data = trim(f_stringglobalreplace(ls_data, "'", "", false)) ls_data = trim(ls_data) li_pos += li_columnLength if li_pos > len(as_recordString) + 1 then lb_lengthError = true exit end if //add ls_data to the record wDAT*Hith a tab delimeter if ls_record = "" then ls_record = ls_data else ls_record = ls_record + "~t" + ls_data end if next if lb_lengthError then signalError(-1, "Input string exceeds the row length for datastore '" + adw_object.dataobject + "'") return ls_null end if return ls_record end function DAT* ary@cd@findIso@ring_on@tidj_s@idium@riba@ o@ope @ @ D+)p8z%8z&)88`8@0nX8(@(8L,`d as_sccld_sourcerid( `hDAT* scc = '' and not isnull(source_rid)of_find6-source_ridof_getdata9K8 X `4 880)(8d 0 createconstructortriggerevent ( 4 880)(8d 0 destroydestructortriggerevent ( 808 0)488<0)dDAT* 4880)(8d 0 createconstructortriggerevent ( 4880)(8d 0 destroydestructortriggerevent ( L2  +create+destroy( rcastonv2  M  DAT*se@ ~@<@  @ @ A( 808 0)488<0)`89)|8, r1, $& B Xd ::message @ txtd_nei_import_rap_sourcesof_setdatatype%rap_sourcesof_setfiledeDAT*ap@base-im_rapIwo@tn_Rsi@asehs@stypsec@ds_c~ba@essare@n+c te@stro h@@ A( 88080)@88H0)l89)8, 1, $> Z pd& DAT*u@@@3 @ @ A( 88080)D88L0)p89)8, 1, $> Z pd& ancestorreturnvalue::message(v @ DAT* NAME="rap_tmp_sources.inventory_year") COLUMN(NAME="rap_tmp_sources.source_type") COLUMN(NAME="rap_tmp_sources.naics_primary") COLUMN(NAME="rap_tmp_sources.tribal_code") COLUMN(NAME="rap_tmp_sources.facility_name") COLUMN(NAME="rap_tmp_sources.start_date") COLUMN(NAME="rap_tmp_sources.end_date") COLUMN(NAME="rap_tmp_sources.source_rid") COLUMN(NAME="rap_tmp_sources.user_id")WHERE( EXP1 ="rap_tmp_sources.state_fips" OP ="=" EXP2 ="" LOGIC ="and" ) WHERE( EXP1 ="rap_tmp_sources.countyDAT* _fips" OP ="=" EXP2 ="" LOGIC ="and" ) WHERE( EXP1 ="rap_tmp_sources.user_id" OP ="=" EXP2 ="" ) ) ORDER(NAME="rap_tmp_sources.state_fips" ASC=yes ) ORDER(NAME="rap_tmp_sources.county_fips" ASC=yes ) ARG(NAME = "as_statefips" TYPE = string) ARG(NAME = "as_countyfips" TYPE = string) ARG(NAME = "as_userid" TYPE = string) \LNPRTVX"M1DAT*"O1"Q1"S1"U0"W0"Y0DAT* ckground.mode="1" background.color="536870912" ) column(band=detail id=15 alignment="0" tabsequence=32766 border="0" color="0" x="7255" y="0" height="64" width="654" format="[general]" html.valueishtml="0" name=user_id visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=16 alignment="0" tabsequence=DAT* 32766 border="0" color="0" x="7918" y="0" height="64" width="178" format="[general]" html.valueishtml="0" name=tribal_code visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=17 alignment="0" tabsequence=32766 border="0" color="0" x="8105" y="0" height="64" width="256" format="[general]" html.valueisDAT*jhtml="0" name=county_fips visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=18 alignment="0" tabsequence=32766 border="0" color="0" x="8370" y="0" height="64" width="489" format="[general]" html.valueishtml="0" name=sic_unit_level visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imeDAT*s@~@@3 @ @ A( 88080)@88H0)l89)8, 1, $> Z pd& ancestorreturnvalue::message(v @ construcDAT*u@@@3 @ @ A( 88080)D88L0)t89)8, 1, $> Z pd& ancestorreturnvalue::message(v @ DAT*+O@X@n@y@@@3 @ @ @ C*)4 880)(8d 0 createconstructortriggerevent ( 4 880)(8DAT* _populate+ue_populateend| (ISS[]ap(GBSSRS_bd(QL(T x _initsrcn_ds_nei_cache_basen_ds_nei_import_conversion_lookup_codesdwobjectn_cst_conversion_basefileaccesssaveastypen_cst_nei_exportn_ds_cache_basepowerobjectn_ds_conversion_basemessage uctxtrt@_ref%essetdM@of_sDAT* Vin@ l@0w@@@3@ @ @ L1&l8|@|)T8 4 LdT as_rapidsfieldnameas_rapidsvaluename ls_empty DAT*0H< 0-H<-\ is_rapidsfieldname$is_rapidsvaluename$%$%of_populate:H 8 @ T  88!z%z&87z&z&8Sz&)`88h0n8(@(8-8@899@89H d;DAT*@ @ @@ 4/ @8@89}1} $89n08g 889n@8g 8H9nP8e@e8}1}9} 8X(@(8z'8Zz&)l98 1DAT*@@t@@@^@ @n@u@@  @ @ A( 88080)P88X0)89)8, 1, $> Z pd& ancestorreturnvalue::message(DAT*n@y@@@3 @ @ A( 88080)H88P0)x89)8, 1, $> Z pd& ancestorreturnvalue::message(v @ DAT*@w@@@3 @ @ A( 88080)D88L0)t89)8, 1, $> Z pd& ancestorreturnvalue::message(v @ DAT*@u@@@@3 @ @ A( 88080)P88X0)89)8, 1, $> Z pd& ancestorreturnvalue::message(vDAT*p@{@@@3 @ @ A( 88080)H88P0)|89)8, 1, $> Z pd& ancestorreturnvalue::message(v @ DAT* t"""L@866@81`@8 06R@86)+",>0L1\4l5t678<>@CDAT*""@@8h1@81R@8$&'6+@,H-X0h1x35678:dI as_sourceas_targetab_ignorecasell_countll_posll_lenll_null  DAT* h@@ @ @ thil@  j8""8""8"o 8z%8%z&z&8,z&z&8" o Vl,680)D81\8L08f0@8lDAT* release 6; datawindow(units=0 timer_interval=0 color=16777215 processing=1 print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.prompt=no print.buttons=no print.preview.buttons=no grid.lines=0 ) header(height=68 color="536870912" ) summary(height=0 color="536870912" ) footer(height=0 color="536870912" ) detail(height=80 color="536870912" ) table(column=(typDAT* e=decimal(0) update=yes updatewhereclause=yes name=rid dbname="rap_process_specific_schedules.rid" ) column=(type=decimal(0) update=yes updatewhereclause=yes key=yes name=process_rid dbname="rap_process_specific_schedules.process_rid" ) column=(type=decimal(2) update=yes updatewhereclause=yes name=relative_activity_amt dbname="rap_process_specific_schedules.relative_activity_amt" ) column=(type=char(2) update=yes updatewhereclause=yes key=yes name=begin_day_date_code dbname="rap_process_specDAT* ific_schedules.begin_day_date_code" ) column=(type=char(2) update=yes updatewhereclause=yes key=yes name=begin_hour_no dbname="rap_process_specific_schedules.begin_hour_no" ) column=(type=char(2) update=yes updatewhereclause=yes key=yes name=begin_month_no dbname="rap_process_specific_schedules.begin_month_no" ) column=(type=char(2) update=yes updatewhereclause=yes key=yes name=end_day_date_code dbname="rap_process_specific_schedules.end_day_date_code" ) column=(type=char(2) update=yes updDAT* atewhereclause=yes key=yes name=end_hour_no dbname="rap_process_specific_schedules.end_hour_no" ) column=(type=char(2) update=yes updatewhereclause=yes key=yes name=end_month_no dbname="rap_process_specific_schedules.end_month_no" ) column=(type=char(4) update=yes updatewhereclause=yes key=yes name=year dbname="rap_process_specific_schedules.year" ) retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"rap_process_specific_schedules~" ) COLUMN(NAME=~"rap_process_specific_schedules.rid~") COLUMN(NAMEDAT* =~"rap_process_specific_schedules.process_rid~") COLUMN(NAME=~"rap_process_specific_schedules.relative_activity_amt~") COLUMN(NAME=~"rap_process_specific_schedules.begin_day_date_code~") COLUMN(NAME=~"rap_process_specific_schedules.begin_hour_no~") COLUMN(NAME=~"rap_process_specific_schedules.begin_month_no~") COLUMN(NAME=~"rap_process_specific_schedules.end_day_date_code~") COLUMN(NAME=~"rap_process_specific_schedules.end_hour_no~") COLUMN(NAME=~"rap_process_specific_schedules.end_month_no~") COLDAT* UMN(NAME=~"rap_process_specific_schedules.year~")WHERE( EXP1 =~"rap_process_specific_schedules.process_rid~" OP =~"=~" EXP2 =~":ld_processrid~" LOGIC =~"and~" ) WHERE( EXP1 =~"rap_process_specific_schedules.begin_month_no~" OP =~"=~" EXP2 =~":ls_beginmonth~" LOGIC =~"and~" ) WHERE( EXP1 =~"rap_process_specific_schedules.end_month_no~" OP =~"=~" EXP2 =~":ls_endmonth~" LOGIC =~"and~" ) WHERE( EXP1 =~"rap_process_specific_schedules.year~" OP =~"=~" EXP2 =~":lsDAT* _year~" ) ) ARG(NAME = ~"ld_processrid~" TYPE = number) ARG(NAME = ~"ls_beginmonth~" TYPE = string) ARG(NAME = ~"ls_endmonth~" TYPE = string) ARG(NAME = ~"ls_year~" TYPE = string) " update="rap_process_specific_schedules" updatewhere=1 updatekeyinplace=yes arguments=(("ld_processrid", number),("ls_beginmonth", string),("ls_endmonth", string),("ls_year", string)) ) text(band=header alignment="2" text="Rid"border="0" color="0" x="9" y="8" height="52" width="274" name=rid_t font.face="MS Sans SDAT* erif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Process Rid"border="0" color="0" x="293" y="8" height="52" width="361" name=process_rid_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Relative Activity Amount"border=DAT* "0" color="0" x="663" y="8" height="52" width="745" name=relative_activity_amt_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Beginning Day or Date"border="0" color="0" x="1417" y="8" height="52" width="681" name=begin_day_date_code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0"DAT*  background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Beginning Hour"border="0" color="0" x="2107" y="8" height="52" width="462" name=begin_hour_no_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Beginning Month"border="0" color="0" x="2578" y="8" height="52" width="503" name=begin_month_no_t font.face="MS SDAT* ans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Ending Day or Date"border="0" color="0" x="3090" y="8" height="52" width="590" name=end_day_date_code_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Ending Hour"bDAT* order="0" color="0" x="3689" y="8" height="52" width="370" name=end_hour_no_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Ending Month"border="0" color="0" x="4069" y="8" height="52" width="411" name=end_month_no_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1DAT* " background.color="536870912" ) text(band=header alignment="2" text="Year"border="0" color="0" x="4489" y="8" height="52" width="174" name=year_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=1 alignment="1" tabsequence=10 border="0" color="0" x="9" y="8" height="64" width="274" format="[general]" name=rid edit.limit=0 edit.case=any edit.focusrectangle=no eDAT* dit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=2 alignment="1" tabsequence=20 border="0" color="0" x="293" y="8" height="64" width="361" format="[general]" name=process_rid edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="70DAT* 0" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=3 alignment="1" tabsequence=30 border="0" color="0" x="663" y="8" height="64" width="745" format="[general]" name=relative_activity_amt edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color=DAT* "536870912" ) column(band=detail id=4 alignment="0" tabsequence=40 border="0" color="0" x="1417" y="8" height="64" width="681" format="[general]" name=begin_day_date_code edit.limit=2 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=5 alignment="0" tabsequence=50 border="0" color="0" xDAT* ="2107" y="8" height="64" width="462" format="[general]" name=begin_hour_no edit.limit=2 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=6 alignment="0" tabsequence=60 border="0" color="0" x="2578" y="8" height="64" width="503" format="[general]" name=begin_month_no edit.limit=2 edit.DAT*C*)2  2  M  33DAT* nOlmqXop s_f :as_userid urh as_userid state_fipsrap_tmp_sources.state_fipsC county_fipsrap_tmp_sources.county_fipsO tribal_coderap_tmp_sources.tribal_codeX8PBSELECT( VERSION(400) TABLE(NAME="rap_tmp_sources" ) COLUMN(NAME="rap_tmp_sources.state_fips") COLUDAT* MN(NAME="rap_tmp_sources.county_fips") COLUMN(NAME="rap_tmp_sources.tribal_code")WHERE( EXP1 ="rap_tmp_sources.user_id" OP ="=" EXP2 ="" ) GROUP(NAME="rap_tmp_sources.state_fips") GROUP(NAME="rap_tmp_sources.county_fips") GROUP(NAME="rap_tmp_sources.tribal_code")) ORDER(NAME="rap_tmp_sources.state_fips" ASC=yes ) ORDER(NAME="rap_tmp_sources.county_fips" ASC=yes ) ORDER(NAME="rap_tmp_sources.tribal_code" ASC=yes ) ARG(NAME = "as_userid" TYPE = string) \DAT*5uwy{}"v1"x1"z1"|1"~0"0"0DAT* @  @#!" @&$% @)'( @,*+ @/-.201DAT* @:as_statefips:as_countyfips :as_userid as_statefipsas_countyfips as_useridrap_tmp_cntrl_equip_activities state_fips*rap_tmp_cntrl_equip_activities.state_fips county_fips+rap_tmp_cntrl_equip_activities.county_fips site_id'rap_tmp_cntrl_equip_activities.site_id)scc#rap_tmp_cntrl_equip_activities.sccDAT* 2emission_unit_id0rap_tmp_cntrl_equip_activities.emission_unit_id; process_id*rap_tmp_cntrl_equip_activities.process_idDpollutant_code.rap_tmp_cntrl_equip_activities.pollutant_codeMprimary_pct_cntrl_eff5rap_tmp_cntrl_equip_activities.primary_pct_cntrl_effVpct_capture_efficiency6rap_tmp_cntrl_equip_activities.pct_capture_efficiencybtotal_DAT* capture_cntrl_eff7rap_tmp_cntrl_equip_activities.total_capture_cntrl_effkprimary_device_type_cd6rap_tmp_cntrl_equip_activities.primary_device_type_cdtsecondary_device_type_cd8rap_tmp_cntrl_equip_activities.secondary_device_type_cd}control_system_desc3rap_tmp_cntrl_equip_activities.control_system_descthird_cntrl_device_type_cd:rap_tmp_cntrl_equip_activities.third_cntrl_device_type_cdDAT* fourth_cntrl_device_type_cd;rap_tmp_cntrl_equip_activities.fourth_cntrl_device_type_cd start_date*rap_tmp_cntrl_equip_activities.start_date end_date(rap_tmp_cntrl_equip_activities.end_dateinventory_year.rap_tmp_cntrl_equip_activities.inventory_year process_rid+rap_tmp_cntrl_equip_activities.process_ridoutput_stream_rid1rap_tmp_cnDAT* trl_equip_activities.output_stream_riduser_id'rap_tmp_cntrl_equip_activities.user_id tribal_code+rap_tmp_cntrl_equip_activities.tribal_codePBSELECT( VERSION(400) TABLE(NAME="rap_tmp_cntrl_equip_activities" ) COLUMN(NAME="rap_tmp_cntrl_equip_activities.state_fips") COLUMN(NAME="rap_tmp_cntrl_equip_activities.county_fips") COLUMN(NAME="rap_tmp_cntrl_equip_activities.site_id") COLUMN(NAME="rap_tmp_cntrl_equip_activitiesDAT* .scc") COLUMN(NAME="rap_tmp_cntrl_equip_activities.emission_unit_id") COLUMN(NAME="rap_tmp_cntrl_equip_activities.process_id") COLUMN(NAME="rap_tmp_cntrl_equip_activities.pollutant_code") COLUMN(NAME="rap_tmp_cntrl_equip_activities.primary_pct_cntrl_eff") COLUMN(NAME="rap_tmp_cntrl_equip_activities.pct_capture_efficiency") COLUMN(NAME="rap_tmp_cntrl_equip_activities.total_capture_cntrl_eff") COLUMN(NAME="rap_tmp_cntrl_equip_activities.primary_device_type_cd") COLUMN(NAME="rap_tmp_cntrl_equip_activDAT* ities.secondary_device_type_cd") COLUMN(NAME="rap_tmp_cntrl_equip_activities.control_system_desc") COLUMN(NAME="rap_tmp_cntrl_equip_activities.third_cntrl_device_type_cd") COLUMN(NAME="rap_tmp_cntrl_equip_activities.fourth_cntrl_device_type_cd") COLUMN(NAME="rap_tmp_cntrl_equip_activities.start_date") COLUMN(NAME="rap_tmp_cntrl_equip_activities.end_date") COLUMN(NAME="rap_tmp_cntrl_equip_activities.inventory_year") COLUMN(NAME="rap_tmp_cntrl_equip_activities.process_rid") COLUMN(NAME="rap_tmp_cntrDAT* l_equip_activities.output_stream_rid") COLUMN(NAME="rap_tmp_cntrl_equip_activities.user_id") COLUMN(NAME="rap_tmp_cntrl_equip_activities.tribal_code")WHERE( EXP1 ="rap_tmp_cntrl_equip_activities.state_fips" OP ="=" EXP2 ="" LOGIC ="and" ) WHERE( EXP1 ="rap_tmp_cntrl_equip_activities.county_fips" OP ="=" EXP2 ="" LOGIC ="and" ) WHERE( EXP1 ="rap_tmp_cntrl_equip_activities.user_id" OP ="=" EXP2 ="" ) ) ORDER(NAME="rap_tmp_cntrl_equip_activities.state_fips" ASC=yes ) DAT*  ORDER(NAME="rap_tmp_cntrl_equip_activities.county_fips" ASC=yes ) ARG(NAME = "as_statefips" TYPE = string) ARG(NAME = "as_countyfips" TYPE = string) ARG(NAME = "as_userid" TYPE = string) \68:<>@B"71"91";1"=1"?0"A0DAT* "C0DAT* @*6!? @$H"# @'Q%&@*Z()@-c+DAT* , @0l./@3u12  @645  @978  @<:;  @?=> @B@A @EDAT* CD@HFG @KIJ@NLM@QOP @TRS @WUVZXYDAT* global type f_countoccurrences from function_object end type forward prototypes global function long f_countoccurrences (string as_source, string as_target, boolean ab_ignorecase) end prototypes global function long f_countoccurrences (string as_source, string as_target, boolean ab_ignorecase);////////////////////////////////////////////////////////////////////////////// // // Function: of_CountOccurrences // // Access: public // // Arguments: // as_Source The string in whicDAT* h to search. // as_Target The string to search for. // ab_IgnoreCase A boolean stating to ignore case sensitivity. // // Returns: long // The number of occurrences of as_Target in as_source. // If any argument's value is NULL, function returns NULL. // // Description: Count the occurrences of one string within another. // ////////////////////////////////////////////////////////////////////////////// // // Revision History // // Version // 5.0 Initial version // //DAT* //////////////////////////////////////////////////////////////////////////// // // Copyright 1996-1997 Sybase, Inc. and its subsidiaries. All rights reserved. // Any distribution of the PowerBuilder Foundation Classes (PFC) // source code by other than Sybase, Inc. and its subsidiaries is prohibited. // ////////////////////////////////////////////////////////////////////////////// Long ll_Count, ll_Pos, ll_Len //Check for parameters If IsNull(as_source) or IsNull(as_target) or IsNuDAT*ll(ab_ignorecase) Then long ll_null SetNull(ll_null) Return ll_null End If //Should function ignore case? If ab_ignorecase Then as_source = Lower(as_source) as_target = Lower(as_target) End If ll_Len = Len(as_Target) ll_Count = 0 ll_Pos = Pos(as_source, as_Target) Do While ll_Pos > 0 ll_Count ++ ll_Pos = Pos(as_source, as_Target, (ll_Pos + ll_Len)) Loop Return ll_Count end function DAT* case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=7 alignment="0" tabsequence=70 border="0" color="0" x="3090" y="8" height="64" width="590" format="[general]" name=end_day_date_code edit.limit=2 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS SansDAT*  Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=8 alignment="0" tabsequence=80 border="0" color="0" x="3689" y="8" height="64" width="370" format="[general]" name=end_hour_no edit.limit=2 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" backgrDAT* ound.mode="1" background.color="536870912" ) column(band=detail id=9 alignment="0" tabsequence=90 border="0" color="0" x="4069" y="8" height="64" width="411" format="[general]" name=end_month_no edit.limit=2 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=10 alignment="0" tabsequence=DAT*100 border="0" color="0" x="4489" y="8" height="64" width="174" format="[general]" name=year edit.limit=4 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) htmltable(border="1" cellpadding="0" cellspacing="0" generatecss="no" nowrap="yes") DAT*  @][\@`^_@:as_statefips:as_countyfips :as_userid as_statefipsas_countyfips as_useridrap_tmp_emis_activities state_fips#rap_tmp_emis_activities.state_fips* county_fips$rap_tmp_emis_activities.county_fips6site_idDAT*  rap_tmp_emis_activities.site_id?sccrap_tmp_emis_activities.sccHemission_unit_id)rap_tmp_emis_activities.emission_unit_idQ process_id#rap_tmp_emis_activities.process_idZpollutant_code'rap_tmp_emis_activities.pollutant_codecemission_rel_point_id.rap_tmp_emis_activities.emission_rel_point_idl start_date#rap_tmp_emis_activities.startDAT*" _dateu end_date!rap_tmp_emis_activities.end_date start_time#rap_tmp_emis_activities.start_time end_time!rap_tmp_emis_activities.end_timeemission_num_val)rap_tmp_emis_activities.emission_num_valemission_unit_numerator0rap_tmp_emis_activities.emission_unit_numeratoremission_type&rap_tmp_emis_activities.emission_typeDAT*$ emission_data_level,rap_tmp_emis_activities.emission_data_levelrule_effectiveness+rap_tmp_emis_activities.rule_effectivenessrule_penetration)rap_tmp_emis_activities.rule_penetrationinventory_year'rap_tmp_emis_activities.inventory_yearoutput_stream_rid*rap_tmp_emis_activities.output_stream_riduser_id rap_tmp_emis_activities.user_idDAT*& mass_flow1_stream_rid.rap_tmp_emis_activities.mass_flow1_stream_ridhap_emissions_perform_level4rap_tmp_emis_activities.hap_emissions_perform_level tribal_code$rap_tmp_emis_activities.tribal_codeCPBSELECT( VERSION(400) TABLE(NAME="rap_tmp_emis_activities" ) COLUMN(NAME="rap_tmp_emis_activities.state_fips") COLUMN(NAME="rap_tmp_emis_activities.county_fips") COLUMN(NAME="rap_tmp_emis_activities.site_id") DAT*( COLUMN(NAME="rap_tmp_emis_activities.scc") COLUMN(NAME="rap_tmp_emis_activities.emission_unit_id") COLUMN(NAME="rap_tmp_emis_activities.process_id") COLUMN(NAME="rap_tmp_emis_activities.pollutant_code") COLUMN(NAME="rap_tmp_emis_activities.emission_rel_point_id") COLUMN(NAME="rap_tmp_emis_activities.start_date") COLUMN(NAME="rap_tmp_emis_activities.end_date") COLUMN(NAME="rap_tmp_emis_activities.start_time") COLUMN(NAME="rap_tmp_emis_activities.end_time") COLUMN(NAME="rap_tmp_emis_activities.emissDAT** ion_num_val") COLUMN(NAME="rap_tmp_emis_activities.emission_unit_numerator") COLUMN(NAME="rap_tmp_emis_activities.emission_type") COLUMN(NAME="rap_tmp_emis_activities.emission_data_level") COLUMN(NAME="rap_tmp_emis_activities.rule_effectiveness") COLUMN(NAME="rap_tmp_emis_activities.rule_penetration") COLUMN(NAME="rap_tmp_emis_activities.inventory_year") COLUMN(NAME="rap_tmp_emis_activities.output_stream_rid") COLUMN(NAME="rap_tmp_emis_activities.user_id") COLUMN(NAME="rap_tmp_emis_activities.massDAT*, _flow1_stream_rid") COLUMN(NAME="rap_tmp_emis_activities.hap_emissions_perform_level") COLUMN(NAME="rap_tmp_emis_activities.tribal_code")WHERE( EXP1 ="rap_tmp_emis_activities.state_fips" OP ="=" EXP2 ="" LOGIC ="and" ) WHERE( EXP1 ="rap_tmp_emis_activities.county_fips" OP ="=" EXP2 ="" LOGIC ="and" ) WHERE( EXP1 ="rap_tmp_emis_activities.user_id" OP ="=" EXP2 ="" ) ) ORDER(NAME="rap_tmp_emis_activities.state_fips" ASC=yes ) ORDER(NAME="rap_tmp_emis_activities.counDAT*ty_fips" ASC=yes ) ARG(NAME = "as_statefips" TYPE = string) ARG(NAME = "as_countyfips" TYPE = string) ARG(NAME = "as_userid" TYPE = string) \dfhjlnp"e1"g1"i1"k1"m0"o0"q0DAT*0  device_rid$(10491$HI329"0%U (#" process_rid$A N*10830$!HI329"$0.&UDAT*2 ')(,+output_stream_rid$( +11168$*l494"-09%/U024\ 76user_id$1 -11671$30$5 800DAT*4 "80B.:U;2=\ @?horiz_collection_method_code$< 012480$>Pn366"A0K9CUD2F\ IHhoriz_accuracy_measure$EDAT*6  7212855$G|7567"J0TBLUM2O\ RQhoriz_reference_datum_code$Nz w413431$PR850"S0KUUV2X\DAT*8  [Z tribal_code$W6 714290$Y1047"\0@D_chg@DAT*: kVijnblmqkop@ttrs@w}uv@zxyQ@}{|DAT*< @~@ @ @ @ @ @ @DAT*>  @ @ @ @ @  @ @ @%DAT*@  @.9@B@K@T@`ab:as_statefips:as_countyfips :as_useriddef as_statefipsas_cDAT*B ountyfips as_useridrap_tmp_emis_rel_pt_devices state_fips'rap_tmp_emis_rel_pt_devices.state_fipsV county_fips(rap_tmp_emis_rel_pt_devices.county_fipsbsite_id$rap_tmp_emis_rel_pt_devices.site_idkemission_rel_point_id2rap_tmp_emis_rel_pt_devices.emission_rel_point_idtemission_rel_point_type4rap_tmp_emis_rel_pt_devices.emission_rel_point_type}DAT*D emission_rel_pt_desc1rap_tmp_emis_rel_pt_devices.emission_rel_pt_desc stack_height)rap_tmp_emis_rel_pt_devices.stack_heightstack_diameter+rap_tmp_emis_rel_pt_devices.stack_diameterexit_gas_temperature1rap_tmp_emis_rel_pt_devices.exit_gas_temperatureexit_gas_velocity.rap_tmp_emis_rel_pt_devices.exit_gas_velocityexit_gas_flow_rate/rap_tmp_emis_rel_ptDAT*F _devices.exit_gas_flow_rate x_coordinate)rap_tmp_emis_rel_pt_devices.x_coordinate y_coordinate)rap_tmp_emis_rel_pt_devices.y_coordinate utm_zone%rap_tmp_emis_rel_pt_devices.utm_zonexy_coordinate_type/rap_tmp_emis_rel_pt_devices.xy_coordinate_typerelease_height_fugitive4rap_tmp_emis_rel_pt_devices.release_height_fugitiveinventory_yearDAT*H +rap_tmp_emis_rel_pt_devices.inventory_year start_date'rap_tmp_emis_rel_pt_devices.start_date end_date%rap_tmp_emis_rel_pt_devices.end_date source_rid'rap_tmp_emis_rel_pt_devices.source_rid  device_rid'rap_tmp_emis_rel_pt_devices.device_rid process_rid(rap_tmp_emis_rel_pt_devices.process_ridoutput_stream_rid.rap_tmp_emis_rel_pt_DAT* devices.output_stream_rid%user_id$rap_tmp_emis_rel_pt_devices.user_id.horiz_collection_method_code9rap_tmp_emis_rel_pt_devices.horiz_collection_method_code9horiz_accuracy_measure3rap_tmp_emis_rel_pt_devices.horiz_accuracy_measureBhoriz_reference_datum_code7rap_tmp_emis_rel_pt_devices.horiz_reference_datum_codeK tribal_code(rap_tmp_emis_rel_pt_devices.tribal_codDAT*L _locationzipcode, importerr, false) end if if ls_siccode <> "" and not isnull(ls_siccode) then li_ret = of_setvalue(lds_irapids, ll_iraprc, "sic_code", ls_siccode, importerr, false) end if lds_tdata.object.source_rid[ll_row] = ld_rid li_ret = of_updatetemptable(lds_tdata, importerr) if li_ret = -5 then exit elseif li_ret < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to save Source Rid to " + lds_tdata.is_description) continue end if /* WDAT*N rite rap_tmp_sources.source_RID to the source_RID column in the rap_tmp_emis_unit_devices table where rap_tmp_emis_unit_devices.state_FIPS = rap_tmp_sources.state_FIPS and rap_tmp_emis_unit_devices.county_FIPS = rap_tmp_sources.county_FIPS and rap_tmp_emis_unit_devices.site_ID = rap_tmp_sources.site_ID and rap_tmp_emis_unit_devices.tribal_code = rap_tmp_sources.tribal_code. Jan 27, 2005 by Steve Oliphant Added in the tribal_code piece of the update statement above.DAT*P  */ ids_emisunitdevices.is_siteid = ls_id ids_emisunitdevices.is_tribal_code = ls_tribal_code ids_emisunitdevices.of_scan("UPDATE SOURCE RID BY SITE ID", ld_Rid) li_ret = of_updatetemptable(ids_emisunitdevices, importerr) if li_ret = -5 then exit elseif li_ret < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to save Source Rid to " + ids_emisunitdevices.is_description) continue end if /* Write rap_tmp_sources.source_RID to the source_RID column inDAT*R  the rap_tmp_emis_rel_pt_devices table where rap_tmp_emis_rel_pt_devices.state_FIPS = rap_tmp_sources.state_FIPS and rap_tmp_emis_rel_pt_devices.county_FIPS = rap_tmp_sources.county_FIPS and rap_tmp_emis_rel_pt_devices.site_ID = rap_tmp_sources.site_ID and rap_tmp_emis_rel_pt_devices.tribal_code = rap_tmp_sources.tribal_code. Jan 27, 2005 by Steve Oliphant Added in the tribal_code piece of the update statement above. */ ids_emisrelptdevices.is_siteid = DAT*T ls_id ids_emisrelptdevices.is_tribal_code = ls_tribal_code ids_emisrelptdevices.of_scan("UPDATE SOURCE RID BY SITE ID", ld_Rid) li_ret = of_updatetemptable(ids_emisrelptdevices, importerr) if li_ret = -5 then exit elseif li_ret < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to save Source Rid to " + ids_emisrelptdevices.is_description) continue end if //update the temp table with the source rid li_ret = of_updaterapidstable(lds_irapids, importerr, lb_inserDAT*V t) if li_ret = -5 then exit elseif li_ret < 0 then continue end if next // end of the for loop that processes each source record by site ID. lds_irapids.reset() iw_imain.wf_progress(1) return ll_rc end function public function long of_createptdevices ();/* This routine processes the point device data. This data comes from the emission unit devices input data. January 27, 2005 by Steve Oliphant Added in code to handle moving through the list by tribal code. AlsDAT*X o added in code to insert the city rid into column GEOGRAPHIC_INCORP_RID. */ //driver variables long ll_row, ll_rc = -1, ll_iraprc integer li_ret string ls_condition, ls_null boolean lb_insert str_ierror importerr ll_row = 0 setnull(ls_null) //temp table n_ds_nei_import_temp_base lds_tdata //rapids table being updated d_ds_nei_import_rapids_base lds_irapids //rapids variables double ld_rid string ls_code = "@" double ld_sourcerid string ls_id string ls_name striDAT*Z ng ls_siccode string ls_naicscode string ls_tribal_code // added 1/27/2005 //temp variables string ls_unique = "" string ls_siteid //set up tables and progress bar lds_tdata = ids_emisunitdevices lds_irapids = ids_rapdevices lds_tdata.of_sort("tribal_code, source_rid, emission_unit_id") // added tribal code lds_tdata.of_filter("not isnull(source_rid)") ll_rc = lds_tdata.rowcount() iw_imain.wf_progress(0) //loop through temp to populate the rap devices table for ll_row = 1 toDAT*\  ll_rc iw_imain.wf_progress(ll_row/ll_rc) ls_siteid = lds_tdata.object.site_id[ll_row] ls_id = lds_tdata.object.emission_unit_id[ll_row] if ls_id = "" or isnull(ls_id) then of_putinmessagelog(ll_row, "Data Error", "Emission Unit ID not found in " + lds_tdata.is_description) continue end if ld_sourcerid = lds_tdata.object.source_rid[ll_row] if ld_sourcerid = 0 or isnull(ld_sourcerid) then of_putinmessagelog(ll_row, "Data Error", "Source RID not found in " + lDAT*^ ds_tdata.is_description) continue end if if ls_unique = string(ld_sourcerid) + " " + ls_id & and ls_tribal_code = lds_tdata.object.tribal_code[ll_row] then continue else ls_unique = string(ld_sourcerid) + " " + ls_id ls_tribal_code = lds_tdata.object.tribal_code[ll_row] end if ld_sourcerid = lds_tdata.object.source_rid[ll_row] if ld_sourcerid = 0 then of_putinmessagelog(ll_row, "Data Error", "Source RID not found in " + lds_tdata.is_description) contDAT*` inue end if //retrieve rapids data ll_iraprc = lds_irapids.retrieve(ls_id, ls_code, ld_sourceRID ) lb_insert = false if ll_iraprc = 0 then ll_iraprc = lds_irapids.insertrow(0) lb_insert = true elseif ll_iraprc < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to connect to database") continue end if //assign dynamic variables ls_name = left(lds_tdata.object.emission_unit_desc[ll_row], 50) ls_siccode = lds_tdata.object.sic_unit_level[ll_row] ls_DAT*b naicscode = lds_tdata.object.naics_unit_level[ll_row] //add to the table if lb_insert then ld_rid = f_get_sequence() li_ret = of_setvalue(lds_irapids, ll_iraprc, "rid", ld_rid, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "id", ls_id, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "source_rid", ld_sourceRid, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "code", ls_code, importerr, true) else ld_rid = lds_irapids.object.rid[DAT*d ll_iraprc] end if ls_name = mid(ls_name, 1, 50) // truncate to name to 50 characters for use in RAPIDS li_ret = of_setvalue(lds_irapids, ll_iraprc, "name", ls_name, importerr, true) if ls_siccode <> "" and not isnull(ls_siccode) then li_ret = of_setvalue(lds_irapids, ll_iraprc, "sic_code", ls_siccode, importerr, true) end if if ls_naicscode <> "" and not isnull(ls_naicscode) then li_ret = of_setvalue(lds_irapids, ll_iraprc, "naics_code", ls_naicscode, importerr, true) DAT*f  end if // li_ret = of_setvalue(lds_irapids, ll_iraprc, "group_flag", ls_null, importerr, false) // li_ret = of_setvalue(lds_irapids, ll_iraprc, "group_type", ls_null, importerr, false) // //update the temp table with the source rid //lds_tdata.object.source_rid[ll_row] = ld_sourceRID lds_tdata.object.device_rid[ll_row] = ld_rid li_ret = of_updatetemptable(lds_tdata, importerr) if li_ret = -5 then exit elseif li_ret < 0 then of_putinmessagelog(ll_row, "System Error", "UDAT*h nable to save Device Rid to " + lds_tdata.is_description) continue end if ids_processes.is_siteid = ls_siteid ids_processes.is_euid = ls_id //mkc 05/29/03 ids_processes.is_tribal_code = ls_tribal_code // 01/27/05 SJO ids_processes.of_scan("UPDATE DEVICE RID BY SITE ID", ld_Rid) li_ret = of_updatetemptable(ids_processes, importerr) if li_ret = -5 then exit elseif li_ret < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to save Source Rid to " + ids_processeDAT*j s.is_description) continue end if if of_updaterapidstable(lds_irapids, importerr, lb_insert) = -5 then exit next lds_irapids.reset() iw_imain.wf_progress(1) lds_tdata.of_filter("") return ll_rc end function public function long of_createarstreams ();/* Modified Jan 31, 2005 by Steve Oliphant Changes made to support NIF 3.0 data imports. Section 4.2.2.5 Create/Verify Streams */ //driver variables long ll_row, ll_rc = -1, ll_iraprc integer li_ret string ls_conditDAT*l ion boolean lb_insert str_ierror importerr ll_row = 0 //temp table n_ds_nei_import_temp_base lds_tdata //rapids table being updated d_ds_nei_import_rapids_base lds_irapids //rapids variables double ld_rid, ld_null string ls_code = "@" string ls_id double ld_processrid string ls_tribal_code // NIF 3.0 only //temp variables string ls_scc3 = "" string ls_scc = "" setnull(ld_null) lds_tdata = ids_processes lds_irapids = ids_rapstreams lds_tdata.of_sort("scc") lds_tdDAT*n ata.of_filter("not isnull(process_rid)") ll_rc = lds_tdata.rowcount() iw_imain.wf_progress(0) for ll_row = 1 to ll_rc iw_imain.wf_progress(ll_row/ll_rc) lb_insert = false ls_tribal_code = lds_tdata.object.tribal_code[ll_row] // sjo 1/31/05 if isnull(ls_tribal_code) then ls_tribal_code = "" if ls_scc = lds_tdata.object.scc[ll_row] + ls_tribal_code then continue else ls_scc = lds_tdata.object.scc[ll_row] + ls_tribal_code end if if isnull(ls_scc) then of_putinmDAT*p essagelog(ll_row, "Data Error", "SCC column is null") continue end if ld_processrid = lds_tdata.object.process_rid[ll_row] ls_scc = lds_tdata.object.scc[ll_row] //update for input stream //****************************************************************************************** ls_id = '01-IN' ld_rid = of_insertstreamactivity(ls_code, ls_id, ld_null, ld_processRid, ll_row, importerr, true) if ld_rid = -5 then exit //update the temp table with the source rid lds_DAT*r tdata.object.input_stream_rid[ll_row] = ld_rid li_ret = of_updatetemptable(lds_tdata, importerr) if li_ret = -5 then exit elseif li_ret < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to save Process Rid to " + lds_tdata.is_description) continue end if /* Write the rap_tmp_processes.input_stream_RID to the input_stream_RID column in the rap_tmp_emis_period_activities table where rap_tmp_processes.state_FIPS = rap_tmp_emis_period_activities.state_FIPSDAT*t  and rap_tmp_processes.county_FIPS = rap_tmp_emis_period_activities.county_FIPS and rap_tmp_processes.SCC = rap_tmp_emis_period_activities.SCC and rap_tmp_processes.tribal_code = rap_tmp_emis_period_activities.tribal_code. */ ids_emisperiodactivities.is_scc = ls_scc ids_emisperiodactivities.is_tribal_code = ls_tribal_code // sjo 1/31/05 ids_emisperiodactivities.of_scan("UPDATE STREAM RID", ld_Rid) li_ret = of_updatetemptable(ids_emisperiodactivities, importerr) if li_rDAT*v et = -5 then exit elseif li_ret < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to save Input Stream Rid to " + ids_emisactivities.is_description) continue end if //update output stream //****************************************************************************************** ls_id = '01-OUT' ld_rid = of_insertstreamactivity(ls_code, ls_id, ld_processRid, ld_null, ll_row, importerr, true) if ld_rid = -5 then exit //update the temp table with theDAT*x  source rid lds_tdata.object.output_stream_rid[ll_row] = ld_rid li_ret = of_updatetemptable(lds_tdata, importerr) if li_ret = -5 then exit elseif li_ret < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to save Process Rid to " + lds_tdata.is_description) continue end if ids_emisactivities.is_scc = ls_scc ids_emisactivities.is_tribal_code = ls_tribal_code ids_emisactivities.of_scan("UPDATE STREAM RID", ld_Rid) li_ret = of_updatetemptable(ids_emisactivitiesDAT*z , importerr) if li_ret = -5 then exit elseif li_ret < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to save Output Stream Rid to " + ids_emisactivities.is_description) continue end if ids_ctrlequipactivities.is_scc = ls_scc ids_ctrlequipactivities.is_tribal_code = ls_tribal_code ids_ctrlequipactivities.of_scan("UPDATE OUTPUT STREAM RID", ld_Rid) li_ret = of_updatetemptable(ids_ctrlequipactivities, importerr) if li_ret = -5 then exit elseif li_reDAT*| t < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to save Output Stream Rid to " + ids_ctrlequipactivities.is_description) continue end if if of_updaterapidstable(lds_irapids, importerr, lb_insert) = -5 then exit //****************************************************************************************** next iw_imain.wf_progress(1) lds_tdata.of_filter("") return ll_rc end function public function long of_createarsources ();/* Modified Jan 31, 2005 by SteDAT*~ ve Oliphant Changes made to support NIF 3.0 data imports. */ //driver variables long ll_row, ll_rc, ll_iraprc string ls_condition boolean lb_insert integer li_ret str_ierror importerr long ll_sourcerid ll_row = 0 //temp table n_ds_nei_import_temp_base lds_tdata //rapids table being updated d_ds_nei_import_rapids_base lds_irapids //rapids variables double ld_rid string ls_code = "@" string ls_id string ls_Name string ls_type string ls_naics datetime ldt_startopdatDAT* e datetime ldt_endopdate string ls_groupflag = "Y" string ls_groupType = "SOURCE" //temp variables string ls_scc4 = "" integer li_year string ls_scc string ls_tribal_code // NIF 3.0 only lds_tdata = ids_sources lds_irapids = ids_rapsources lds_tdata.of_sort("tribal_code, scc4") // added tribal_code 1/31/05 sjo ll_rc = lds_tdata.rowcount() iw_imain.wf_progress(0) for ll_row = 1 to ll_rc iw_imain.wf_progress(ll_row/ll_rc) lb_insert = false ls_tribal_code = lds_tdata.oDAT* bject.tribal_code[ll_row] if isnull(ls_tribal_code) then ls_tribal_code = "" //used to only pull unique scc4 combinations if ls_scc4 = lds_tdata.object.scc4[ll_row] + & ls_tribal_code then // added tribal_code 1/31/05 sjo continue else ls_scc4 = lds_tdata.object.scc4[ll_row] + & ls_tribal_code // added tribal_code 1/31/05 sjo end if if isnull(ls_scc4) then of_putinmessagelog(ll_row, "Data Error", "SCC4 column is null") continue end if DAT* /* If rap_tmp_sources.tribal_code is not NULL and rap_tmp_sources.tribal_code <> '000', assign Src ID = State FIPS + County FIPS + SCC4 + 'A' or 'N' (use 'A' for area sources and 'N' for non-road mobile sources) + Tribal Code. Otherwise, assign Src ID = State FIPS + County FIPS + SCC4 + 'A' or 'N' (use 'A' for area sources and 'N' for non-road mobile sources). */ ls_id = is_statefips + & is_countyfips + & ls_scc4DAT*  + & upper(left(is_sourceType, 1)) if ls_tribal_code <> "" and ls_tribal_code <> "000" then ls_id += ls_tribal_code end if //retrieve rapids data ll_iraprc = lds_irapids.retrieve(ls_id) if ll_iraprc = 0 then ll_iraprc = lds_irapids.insertrow(0) lb_insert = true elseif ll_iraprc < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to connect to database") continue else //added code for bulk deletes ll_sourcerid = lds_irapids.object.rDAT* id[1] if of_bulkdeletesources(ll_sourcerid, ls_id, ll_row) > 0 then //only reset to if all sources are deleted ll_iraprc = lds_irapids.reset() ll_iraprc = lds_irapids.insertrow(0) lb_insert = true end if end if ls_scc = lds_tdata.object.scc[ll_row] //assign dynamic variables ls_condition = "rap_scc_ams_codes.code = '" + ls_scc + "'" ls_name = string(f_dlookup("rap_scc_ams_codes.desc_2", "rap_scc_ams_codes", ls_condition)) if isnull(ls_name) or ls_name = ""DAT*  then of_putinmessagelog(ll_row, "Data Error", "Unable to find desc2 data for " + ls_condition) continue end if ls_type = lds_tdata.object.source_type[ll_row] li_year = lds_tdata.object.inventory_year[ll_row] ldt_startopdate = datetime(date(li_year,1,1)) ldt_endopdate = datetime(date(li_year, 12, 31)) ls_naics = lds_tdata.object.naics_primary[ll_row] if isnull(ls_naics) then ls_naics = "" //add to the table if lb_insert then ld_rid = f_get_sequence() li_ret = DAT* of_setvalue(lds_irapids, ll_iraprc, "rid", ld_rid, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "id", ls_id, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "geographic_state_rid", id_staterid, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "geographic_county_rid", id_countyrid, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "code", ls_code, importerr, true) //lds_irapids.object.rid[ll_iraprc] = ld_rid // lds_irapids.objDAT* ect.id[ll_iraprc] = ls_id // lds_irapids.object.geographic_state_rid[ll_iraprc] = id_staterid // lds_irapids.object.geographic_county_rid[ll_iraprc] = id_countyrid // lds_irapids.object.code[ll_iraprc] = ls_code else ld_rid = lds_irapids.object.rid[ll_iraprc] end if li_ret = of_setvalue(lds_irapids, ll_iraprc, "name", ls_name, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "type", ls_type, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "begin_opDAT* eration_date", ldt_startopdate, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "end_operation_date", ldt_endopdate, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "group_flag", ls_groupflag, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "group_type", ls_grouptype, importerr, true) // if ls_naics <> "" and not isnull(ls_naics) then // li_ret = of_setvalue(lds_irapids, ll_iraprc, "naics_code", ls_naics, importerr, true) // end if // //updDAT* ate the temp table with the source rid lds_tdata.object.source_rid[ll_row] = ld_rid if of_updatetemptable(lds_tdata, importerr) < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to save Source Rid to " + lds_tdata.is_description) continue end if ids_emisunitdevices.is_scc = ls_scc4 ids_emisunitdevices.of_scan("UPDATE SOURCE RID", ld_Rid) li_ret = of_updatetemptable(ids_emisunitdevices, importerr) if li_ret = -5 then exit elseif li_ret < 0 then ofDAT* _putinmessagelog(ll_row, "System Error", "Unable to save Source Rid to " + ids_emisunitdevices.is_description) continue end if /* Update rap_sources table. */ if of_updaterapidstable(lds_irapids, importerr, lb_insert) = -5 then exit /* If rap_tmp_sources.tribal_code is not NULL and rap_tmp_sources.tribal_code <> '000', enter the Tribal Code into the RAP_ACTIVITIES table. */ string ls_reference_code ls_reference_code = "NEI" + string (li_year) if ls_DAT* tribal_code <> "" and ls_tribal_code <> "000" then INSERT INTO rap_activities ( creation_date_time, metric_code, metric_level_type, ref_rid, start_date_time, user_id, value, data_code, end_date_time, reference_code, reference_type ) VALUES ( datetime, 'tribal code', 'src', :ld_rid, :ldt_startopdate, :gs_user_id, :ls_tribal_code, '05', :ldt_endopdate, :ls_reference_code, 'IMPORT' )DAT* ; if SQLCA.SQLCode <> 0 then of_putinmessagelog(ll_row, "SQL DB Insert Error", & SQLCA.SQLErrText) end if end if next lds_irapids.reset() iw_imain.wf_progress(1) return ll_rc end function public function long of_createarprocesses ();/* Modified Jan 31, 2005 by Steve Oliphant Changes made to support NIF 3.0 data imports. */ //driver variables long ll_row, ll_rc = -1, ll_iraprc integer li_ret string ls_condition boolean lb_insert str_ierror imDAT* porterr ll_row = 0 //temp table n_ds_nei_import_temp_base lds_tdata //rapids table being updated d_ds_nei_import_rapids_base lds_irapids //rapids variables double ld_rid string ls_code = "@" double ld_devicerid string ls_id string ls_groupflag = "Y" string ls_groupType = "PROCESS" string ls_name string ls_scc string ls_tribal_code // NIF 3.0 only //temp variables string ls_scc3 = "" string ls_unique = "" lds_tdata = ids_processes lds_irapids = ids_rapprocesses lDAT* ds_tdata.of_sort("scc3") lds_tdata.of_filter("not isnull(device_rid)") ll_rc = lds_tdata.rowcount() iw_imain.wf_progress(0) for ll_row = 1 to ll_rc iw_imain.wf_progress(ll_row/ll_rc) lb_insert = false ld_devicerid = lds_tdata.object.device_rid[ll_row] if ld_devicerid = 0 or isnull(ld_devicerid) then of_putinmessagelog(ll_row, "Data Error", "Device RID not found in " + lds_tdata.is_description) continue end if ls_scc3 = lds_tdata.object.scc3[ll_row] if ls_unique =DAT*  ls_scc3 + " " + string(ld_devicerid) then continue else ls_unique = ls_scc3 + " " + string(ld_devicerid) end if if isnull(ls_scc3) then of_putinmessagelog(ll_row, "Data Error", "SCC3 column is null") continue end if ls_id = ls_scc3 //retrieve rapids data ll_iraprc = lds_irapids.retrieve(ld_deviceRID, ls_id) if ll_iraprc = 0 then ll_iraprc = lds_irapids.insertrow(0) lb_insert = true elseif ll_iraprc < 0 then of_putinmessagelog(ll_row, "SystemDAT*  Error", "Unable to connect to database") continue end if ls_scc = lds_tdata.object.scc[ll_row] //assign dynamic variables ls_condition = "rap_scc_ams_codes.code = '" + ls_scc + "'" ls_name = left(string(f_dlookup("rap_scc_ams_codes.desc_4", "rap_scc_ams_codes", ls_condition)), 50) if isnull(ls_name) or ls_name = "" then of_putinmessagelog(ll_row, "Data Error", "Unable to find desc4 data for " + ls_condition) continue end if //add to the table if lb_insert then DAT*  ld_rid = f_get_sequence() li_ret = of_setvalue(lds_irapids, ll_iraprc, "rid", ld_rid, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "id", ls_id, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "device_rid", ld_deviceRid, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "code", ls_code, importerr, true) else ld_rid = lds_irapids.object.rid[ll_iraprc] end if li_ret = of_setvalue(lds_irapids, ll_iraprc, "group_flag", ls_groupflag, iDAT* mporterr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "group_type", ls_grouptype, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "name", ls_name, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "scc_ams_code", ls_scc, importerr, true) //update the temp table with the source rid //lds_tdata.object.device_rid[ll_row] = ld_sourceRID lds_tdata.object.process_rid[ll_row] = ld_rid li_ret = of_updatetemptable(lds_tdata, importerr) if li_ret = - 5 thDAT* en exit elseif li_ret < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to save Process Rid to " + lds_tdata.is_description) continue end if // ids_processes.is_scc = ls_scc // ids_processes.of_scan("UPDATE DEVICE RID", ld_Rid) // if of_updatetemptable(ids_processes, importerr) < 0 then // of_putinmessagelog(ll_row, "System Error", "Unable to save Process Rid to " + ids_processes.is_description) // continue // end if ls_tribal_code = lds_tdata.object.tDAT* ribal_code[ll_row] if isnull(ls_tribal_code) then ls_tribal_code = "" ids_ctrlequipactivities.is_tribal_code = ls_tribal_code ids_ctrlequipactivities.is_scc = ls_scc ids_ctrlequipactivities.of_scan("UPDATE PROCESS RID", ld_Rid) li_ret = of_updatetemptable(ids_ctrlequipactivities, importerr) if li_ret = - 5 then exit elseif li_ret < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to save Process Rid to " + ids_ctrlequipactivities.is_description) continue enDAT* d if if of_updaterapidstable(lds_irapids, importerr, lb_insert) = - 5 then exit next lds_irapids.reset() iw_imain.wf_progress(1) lds_tdata.of_filter("") return ll_rc end function public function long of_createaremissionprocessdata ();/* Modified Jan 31, 2005 by Steve Oliphant Changes made to support NIF 3.0 data imports. */ //driver variables long ll_row, ll_rc = -1, ll_iraprc, ll_null integer li_ret string ls_condition, ls_null boolean lb_insert double ld_null, ld_DAT* ret datetime ldt_null str_ierror importerr ll_row = 0 setnull(ll_null) setnull(ls_null) setnull(ld_null) setnull(ldt_null) //temp table n_ds_nei_import_temp_base lds_tdata //rapids variables double ld_rid double ld_processrid, ld_relativeactivityamount, ld_value, ld_inputstreamrid string ls_beginmonth, ls_endmonth, ls_year, ls_scc datetime ldt_startdate, ldt_enddate string ls_metricleveltype, ls_datacode = "05" string ls_referencecode, ls_referenceType = "IMPORT" string ls_vDAT* eTPBSELECT( VERSION(400) TABLE(NAME="rap_tmp_emis_rel_pt_devices" ) COLUMN(NAME="rap_tmp_emis_rel_pt_devices.state_fips") COLUMN(NAME="rap_tmp_emis_rel_pt_devices.county_fips") COLUMN(NAME="rap_tmp_emis_rel_pt_devices.site_id") COLUMN(NAME="rap_tmp_emis_rel_pt_devices.emission_rel_point_id") COLUMN(NAME="rap_tmp_emis_rel_pt_devices.emission_rel_point_type") COLUMN(NAME="rap_tmp_emis_rel_pt_devices.emission_rel_pt_desc") COLUMN(NAME="rap_tmp_emis_rel_pt_devices.stack_height"DAT* ) COLUMN(NAME="rap_tmp_emis_rel_pt_devices.stack_diameter") COLUMN(NAME="rap_tmp_emis_rel_pt_devices.exit_gas_temperature") COLUMN(NAME="rap_tmp_emis_rel_pt_devices.exit_gas_velocity") COLUMN(NAME="rap_tmp_emis_rel_pt_devices.exit_gas_flow_rate") COLUMN(NAME="rap_tmp_emis_rel_pt_devices.x_coordinate") COLUMN(NAME="rap_tmp_emis_rel_pt_devices.y_coordinate") COLUMN(NAME="rap_tmp_emis_rel_pt_devices.utm_zone") COLUMN(NAME="rap_tmp_emis_rel_pt_devices.xy_coordinate_type") COLUMN(NAME="rap_tmp_emis_relDAT* _pt_devices.release_height_fugitive") COLUMN(NAME="rap_tmp_emis_rel_pt_devices.inventory_year") COLUMN(NAME="rap_tmp_emis_rel_pt_devices.start_date") COLUMN(NAME="rap_tmp_emis_rel_pt_devices.end_date") COLUMN(NAME="rap_tmp_emis_rel_pt_devices.source_rid") COLUMN(NAME="rap_tmp_emis_rel_pt_devices.device_rid") COLUMN(NAME="rap_tmp_emis_rel_pt_devices.process_rid") COLUMN(NAME="rap_tmp_emis_rel_pt_devices.output_stream_rid") COLUMN(NAME="rap_tmp_emis_rel_pt_devices.user_id") COLUMN(NAME="rap_tmp_emisDAT* _rel_pt_devices.horiz_collection_method_code") COLUMN(NAME="rap_tmp_emis_rel_pt_devices.horiz_accuracy_measure") COLUMN(NAME="rap_tmp_emis_rel_pt_devices.horiz_reference_datum_code") COLUMN(NAME="rap_tmp_emis_rel_pt_devices.tribal_code")WHERE( EXP1 ="rap_tmp_emis_rel_pt_devices.state_fips" OP ="=" EXP2 ="" LOGIC ="and" ) WHERE( EXP1 ="rap_tmp_emis_rel_pt_devices.county_fips" OP ="=" EXP2 ="" LOGIC ="and" ) WHERE( EXP1 ="rap_tmp_emis_rel_pt_devices.user_id" OP ="=" EDAT* XP2 ="" ) ) ORDER(NAME="rap_tmp_emis_rel_pt_devices.state_fips" ASC=yes ) ORDER(NAME="rap_tmp_emis_rel_pt_devices.county_fips" ASC=yes ) ARG(NAME = "as_statefips" TYPE = string) ARG(NAME = "as_countyfips" TYPE = string) ARG(NAME = "as_userid" TYPE = string) \"1"1"1"DAT*h1"0"0"0DAT* $(R594&*+ [general] [general]".08#01@3) (65spring_throughput_pct$25623$4N590"70A/9:@<DAT* ) (?>summer_throughput_pct$;QN6222$=645"@0J8BC@E) (HGfall_throughput_pct$D6875$Fq517"I0VDAT* AKL@NP(TSannual_avg_days_per_week$MS7401$O736&QR [general] [general]"U0_JWX@ZP(]\annual_avg_weeks_per_yDAT* ear$Y8146$[754"^0hV`a@cP(feannual_avg_hours_per_day$b"8910$d704"g0q_ij@lPDAT* (onannual_avg_hours_per_year$k9%9623$m722"p0zhrs@u)(xwsulfur_content$tr(10354$vRw375"y0q{DAT* |@~)( ash_content$}- )10738$HI329"0z@P(inventory_year$w E+11077$Rw375DAT* "0@P( start_date$ ,11461$HI329"0@P( end_date$ .11799DAT* $HI329"0@P( device_rid$_ i/12137$HI329"0@P( process_rDAT* id$ 012475$HI329"0@P(input_stream_rid$ 212814$a443"0@PDAT* (output_stream_rid$V 313266$l494"0 user_id$ 513769$0$ 800"0DAT*  ce_id$u 814578$W398"0P ce_rid$ :14985$1152DAT* "0 control_group_flag$ ?16146$18"0  stack_id$ .?DAT* 16174$W398"0P   stack_rid$+@16581$1152"0! DAT* stack_group_flag$)NE17742$18"0 P"  ce_process_rid$/iE17769$1152" 0 DAT* P# stack_process_rid$-I18930$1152"0 P$ mass_flow1_stream_rid$+{N20091$1152"0'DAT*  "P% %$mass_flow2_stream_rid$!)S21253$#1152"&00()+& .- config_num$*'W22414$,DAT* 18"/0'124' 76 tribal_code$3-W22441$5I73"80@ ;?DCDAT* ((@GEFJHIMKL@PNO@SQRDAT* @VTU@YWX @\Z[@_]^ R@b#`a @e/cd @h8fg @kAijDAT*  @nJlm @qVop @t_rs @whuv @zqxy@}z{|@~ @DAT*  @ @ @ @ @ @@DAT*  @@@  @!@" @ # @$DAT*  @% @'&@0'@<=>:as_statefips:as_countyfips :as_userid@AB as_statefipsas_countyfips as_useridrap_tmp_processes state_fipsrap_tmp_processes.state_fips county_fipsrap_tmp_proceDAT* sses.county_fipssite_idrap_tmp_processes.site_idemission_unit_id#rap_tmp_processes.emission_unit_idemission_rel_point_id(rap_tmp_processes.emission_rel_point_id process_idrap_tmp_processes.process_idsccrap_tmp_processes.sccscc3rap_tmp_processes.scc3emission_process_desc(rap_tmp_processes.emissioDAT* n_process_descwinter_throughput_pct(rap_tmp_processes.winter_throughput_pct#spring_throughput_pct(rap_tmp_processes.spring_throughput_pct/summer_throughput_pct(rap_tmp_processes.summer_throughput_pct8fall_throughput_pct&rap_tmp_processes.fall_throughput_pctAannual_avg_days_per_week+rap_tmp_processes.annual_avg_days_per_weekJannual_avg_DAT* weeks_per_year,rap_tmp_processes.annual_avg_weeks_per_yearVannual_avg_hours_per_day+rap_tmp_processes.annual_avg_hours_per_day_annual_avg_hours_per_year,rap_tmp_processes.annual_avg_hours_per_yearhsulfur_content!rap_tmp_processes.sulfur_contentq ash_contentrap_tmp_processes.ash_contentzinventory_year!rap_tmp_processes.inventory_year DAT* alueunitcode, ls_valuetype string ls_tribal_code // NIF 3.0 only //temp variables //check to make record available for ldt_startdate and ldt_enddate if ids_emisactivities.rowcount() < 1 then of_putinmessagelog(-1, "Data Error", "Unable to find record in emission file for state FIPS code: " + & is_statefips + " and county FIPS code: " + is_countyfips) return 0 end if ldt_startdate = of_converttodate(ids_emisactivities.object.start_date[1]) ldt_enddate = of_converttodDAT* ate(ids_emisactivities.object.end_date[1]) lds_tdata = ids_processes lds_tdata.of_sort("scc") lds_tdata.of_filter("not isnull(process_rid)") ll_rc = lds_tdata.rowcount() iw_imain.wf_progress(0) for ll_row = 1 to ll_rc iw_imain.wf_progress(ll_row/ll_rc) lb_insert = false ls_tribal_code = lds_tdata.object.tribal_code[ll_row] if isnull(ls_tribal_code) then ls_tribal_code = "" if ls_scc = lds_tdata.object.scc[ll_row] + ls_tribal_code then continue else ls_scc = lds_tdata.oDAT* bject.scc[ll_row] + ls_tribal_code end if if isnull(ls_scc) then of_putinmessagelog(ll_row, "Data Error", "SCC column is null") continue end if ld_processrid = lds_tdata.object.process_rid[ll_row] ls_scc = lds_tdata.object.scc[ll_row] ls_year = string(ids_sources.object.inventory_year[ll_row]) ls_referencecode = "NEI " + ls_year ld_inputstreamrid = lds_tdata.object.input_stream_rid[ll_row] //update winter throughput schedule //*******************************DAT* *********************************************************** ls_beginmonth = '12' ls_endmonth = '2' ld_relativeactivityamount = lds_tdata.object.winter_throughput_pct[ll_row] ld_ret = of_addprocessspecificschedule(ld_processrid, ls_beginmonth, ls_endmonth, ls_year, ld_relativeactivityamount) if ld_ret = -5 then exit elseif ld_ret < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to retrieve " + ids_rapspecificschedules.is_description + & " for winter throughpuDAT* t percent" ) elseif ld_ret = 0 then of_putinmessagelog(ll_row, "Data Error", "winter_throughput_pct can not be a value of zero or NULL") end if //update spring throughput schedule //****************************************************************************************** ls_beginmonth = '3' ls_endmonth = '5' ld_relativeactivityamount = lds_tdata.object.spring_throughput_pct[ll_row] ld_ret = of_addprocessspecificschedule(ld_processrid, ls_beginmonth, ls_endmonth, ls_year, DAT* ld_relativeactivityamount) if ld_ret = -5 then exit elseif ld_ret < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to retrieve " + ids_rapspecificschedules.is_description + & " for spring throughput percent" ) elseif ld_ret = 0 then of_putinmessagelog(ll_row, "Data Error", "spring_throughput_pct can not be a value of zero or NULL") end if //update summer throughput schedule //************************************************DAT* ****************************************** ls_beginmonth = '6' ls_endmonth = '8' ld_relativeactivityamount = lds_tdata.object.summer_throughput_pct[ll_row] ld_ret = of_addprocessspecificschedule(ld_processrid, ls_beginmonth, ls_endmonth, ls_year, ld_relativeactivityamount) if ld_ret = -5 then exit elseif ld_ret < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to retrieve " + ids_rapspecificschedules.is_description + & " for summer throughput percDAT* ent" ) elseif ld_ret = 0 then of_putinmessagelog(ll_row, "Data Error", "summer_throughput_pct can not be a value of zero or NULL") end if //update fall throughput schedule //****************************************************************************************** ls_beginmonth = '9' ls_endmonth = '11' ld_relativeactivityamount = lds_tdata.object.fall_throughput_pct[ll_row] ld_ret = of_addprocessspecificschedule(ld_processrid, ls_beginmonth, ls_endmonth, ls_year, ld_relatiDAT* veactivityamount) if ld_ret = -5 then exit elseif ld_ret < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to retrieve " + ids_rapspecificschedules.is_description + & " for fall throughput percent" ) elseif ld_ret = 0 then of_putinmessagelog(ll_row, "Data Error", "fall_throughput_pct can not be a value of zero or NULL") end if ls_metricleveltype = "PRO" ls_valuetype = "AVG" //update annual avg days per week //***DAT* *************************************************************************************** ld_value = lds_tdata.object.annual_avg_days_per_week[ll_row] //annual_avg_weeks_per_yearannual_avg_hours_per_dayannual_avg_hours_per_yearsulfur_contentash_content if ld_value <> 0 and not isnull(ld_value) then ls_valueunitcode = "DAY/WK" ld_rid = of_insertactivity('D/W USE RATE', ls_metricleveltype, ld_processRid, ldt_startdate, string(ld_value), & ls_null, ldt_null, ls_null, ls_null,DAT*  ls_null, ls_referenceType, & ld_value, ls_valuetype, ls_valueunitcode, ll_row, importerr, true) if ld_rid = -5 then exit else of_putinmessagelog(ll_row, "Data Error", "annual_avg_days_per_week can not be a value of zero or NULL") end if //update annual_avg_weeks_per_year //****************************************************************************************** ld_value = lds_tdata.object.annual_avg_weeks_per_year[ll_row] // annual_avg_hours_per_day aDAT* nnual_avg_hours_per_year sulfur_content ash_content if ld_value <> 0 and not isnull(ld_value) then ls_valueunitcode = "WK/YR" ld_rid = of_insertactivity('W/Y USE RATE', ls_metricleveltype, ld_processRid, ldt_startdate, string(ld_value), & ls_null, ldt_null, ls_null, ls_null, ls_null, ls_referenceType, & ld_value, ls_valuetype, ls_valueunitcode, ll_row, importerr, true) if ld_rid = -5 then exit else of_putinmessagelog(ll_row, "Data Error", "annual_avg_weekDAT* s_per_year can not be a value of zero or NULL") end if //update annual_avg_hours_per_day //****************************************************************************************** ld_value = lds_tdata.object.annual_avg_hours_per_day[ll_row] // annual_avg_hours_per_year sulfur_content ash_content if ld_value <> 0 and not isnull(ld_value) then ls_valueunitcode = "HR/DAY" ld_rid = of_insertactivity('H/D USE RATE', ls_metricleveltype, ld_processRid, ldt_startdate, string(ld_valDAT* ue), & ls_null, ldt_null, ls_null, ls_null, ls_null, ls_referenceType, & ld_value, ls_valuetype, ls_valueunitcode, ll_row, importerr, true) if ld_rid = -5 then exit else of_putinmessagelog(ll_row, "Data Error", "annual_avg_hours_per_day can not be a value of zero or NULL") end if //update annual_avg_hours_per_year //****************************************************************************************** ld_value = lds_tdata.object.annual_DAT*l avg_hours_per_year[ll_row] // sulfur_content ash_content if ld_value <> 0 and not isnull(ld_value) then ls_valueunitcode = "HR/YR" ld_rid = of_insertactivity('H/Y USE RATE', ls_metricleveltype, ld_processRid, ldt_startdate, string(ld_value), & ls_null, ldt_null, ls_null, ls_null, ls_null, ls_referenceType, & ld_value, ls_valuetype, ls_valueunitcode, ll_row, importerr, true) if ld_rid = -5 then exit else of_putinmessagelog(ll_row, "Data Error"DAT* start_daterap_tmp_processes.start_date end_daterap_tmp_processes.end_date device_ridrap_tmp_processes.device_rid process_ridrap_tmp_processes.process_ridinput_stream_rid#rap_tmp_processes.input_stream_ridoutput_stream_rid$rap_tmp_processes.output_stream_riduser_idrap_tmp_processes.user_idce_idDAT* rap_tmp_processes.ce_idce_ridrap_tmp_processes.ce_ridcontrol_group_flag%rap_tmp_processes.control_group_flag stack_idrap_tmp_processes.stack_id stack_ridrap_tmp_processes.stack_ridstack_group_flag#rap_tmp_processes.stack_group_flagce_process_rid!rap_tmp_processes.ce_process_ridstack_process_rid$DAT* rap_tmp_processes.stack_process_rid mass_flow1_stream_rid(rap_tmp_processes.mass_flow1_stream_ridmass_flow2_stream_rid(rap_tmp_processes.mass_flow2_stream_rid config_numrap_tmp_processes.config_num' tribal_coderap_tmp_processes.tribal_code0p PBSELECT( VERSION(400) TABLE(NAME="rap_tmp_processes" ) COLUMN(NAME="rap_tmp_processes.state_fips") COLUMN(NAME="rap_tmp_prDAT* ocesses.county_fips") COLUMN(NAME="rap_tmp_processes.site_id") COLUMN(NAME="rap_tmp_processes.emission_unit_id") COLUMN(NAME="rap_tmp_processes.emission_rel_point_id") COLUMN(NAME="rap_tmp_processes.process_id") COLUMN(NAME="rap_tmp_processes.scc") COLUMN(NAME="rap_tmp_processes.scc3") COLUMN(NAME="rap_tmp_processes.emission_process_desc") COLUMN(NAME="rap_tmp_processes.winter_throughput_pct") COLUMN(NAME="rap_tmp_processes.spring_throughput_pct") COLUMN(NAME="rap_tmp_processes.summer_throughput_pDAT* ct") COLUMN(NAME="rap_tmp_processes.fall_throughput_pct") COLUMN(NAME="rap_tmp_processes.annual_avg_days_per_week") COLUMN(NAME="rap_tmp_processes.annual_avg_weeks_per_year") COLUMN(NAME="rap_tmp_processes.annual_avg_hours_per_day") COLUMN(NAME="rap_tmp_processes.annual_avg_hours_per_year") COLUMN(NAME="rap_tmp_processes.sulfur_content") COLUMN(NAME="rap_tmp_processes.ash_content") COLUMN(NAME="rap_tmp_processes.inventory_year") COLUMN(NAME="rap_tmp_processes.start_date") COLUMN(NAME="rap_tmp_procDAT* esses.end_date") COLUMN(NAME="rap_tmp_processes.device_rid") COLUMN(NAME="rap_tmp_processes.process_rid") COLUMN(NAME="rap_tmp_processes.input_stream_rid") COLUMN(NAME="rap_tmp_processes.output_stream_rid") COLUMN(NAME="rap_tmp_processes.user_id") COLUMN(NAME="rap_tmp_processes.ce_id") COLUMN(NAME="rap_tmp_processes.ce_rid") COLUMN(NAME="rap_tmp_processes.control_group_flag") COLUMN(NAME="rap_tmp_processes.stack_id") COLUMN(NAME="rap_tmp_processes.stack_rid") COLUMN(NAME="rap_tmp_processes.stack_gDAT* roup_flag") COLUMN(NAME="rap_tmp_processes.ce_process_rid") COLUMN(NAME="rap_tmp_processes.stack_process_rid") COLUMN(NAME="rap_tmp_processes.mass_flow1_stream_rid") COLUMN(NAME="rap_tmp_processes.mass_flow2_stream_rid") COLUMN(NAME="rap_tmp_processes.config_num") COLUMN(NAME="rap_tmp_processes.tribal_code")WHERE( EXP1 ="rap_tmp_processes.state_fips" OP ="=" EXP2 ="" LOGIC ="and" ) WHERE( EXP1 ="rap_tmp_processes.county_fips" OP ="=" EXP2 ="" LOGIC ="and" ) WHERE( EXP1 =DAT* "rap_tmp_processes.user_id" OP ="=" EXP2 ="" ) ) ORDER(NAME="rap_tmp_processes.state_fips" ASC=yes ) ORDER(NAME="rap_tmp_processes.county_fips" ASC=yes ) ARG(NAME = "as_statefips" TYPE = string) ARG(NAME = "as_countyfips" TYPE = string) ARG(NAME = "as_userid" TYPE = string) \"1"1"1DAT*~"1"0"0"0DAT* \]ptce%d_nei_format_point_control_equipment@nnif2(_`abcdptemd_nei_n3_format_point_emission@ynif3(fghijkptemd_nei_format_point_emission@ynif2(mnopqrartrd_nei_n3_format_transmittal@ynif3(tuvwxyarDAT* trd_nei_format_transmittal@ynif2({|}~arep&d_nei_n3_format_area_emission_process?ynif3(arep#d_nei_format_area_emission_process?ynif2(arpe%d_nei_n3_format_area_emission_period@ynif3(arpe"d_DAT*" nei_format_area_emission_period@ynif2(arce'd_nei_n3_format_area_control_equipment@nnif3(arce$d_nei_format_area_control_equipment@nnif2(aremd_nei_n3_format_area_emission@ynif3(aremd_nei_forDAT*$ mat_area_emission@ynif2(nrtrd_nei_n3_format_transmittal@ynif3(nrtrd_nei_format_transmittal@ynif2(nrep&d_nei_n3_format_area_emission_process?ynif3(nrep#d_nei_format_area_emission_processDAT*& ?ynif2(nrpe%d_nei_n3_format_area_emission_period@ynif3(nrpe"d_nei_format_area_emission_period@ynif2(nrce'd_nei_n3_format_area_control_equipment@nnif3(nrce$d_nei_format_area_control_equipmentDAT*( @nnif2(nremd_nei_n3_format_area_emission@ynif3(nremd_nei_format_area_emission@ynif2(ortrd_nei_n3_format_transmittal@ynif3(ortrd_nei_format_transmittal@ynif2(DAT**     orpe'd_nei_n3_format_onroad_emission_period?ynif3(orpe$d_nei_format_onroad_emission_period?ynif2(orem d_nei_n3_format_onroad_emission@ynif3( !oremd_nei_format_onroad_emission@ynif2DAT*B\$&(*,.0"%1"'1")1"+1"-0"/0"10DAT*. PDW0800pdw+dEFc````@n F$nn``DAT*0 z{ @<:`$DAT*2  "rid_t$1<  $ 0%  MS Sans SerifMS Sans Serif$2$-8$700$ 536870912$DAT*4  33554432$5$4$452$274% !RidRid"#0`/% &(*-name_t$'283$)1426%+,NameName".DAT*6 0`:$0 1358type_t$21714$4I329%67TypeType"90`/; <>@C parent_rid_t$=2048$?n878%ABDAT*8  Parent Rid Parent Rid"D0@@HG^QHFIK (ONrid$J@64&LM [general] [general]"P0YGRDAT*: F&I(S(WV2name&TU [general] [general]"X0^QZF1I3S(\[type"]0Y_F<I>KDAT*@ ((a` parent_rid"b0@DehlkyoDAT*> forward global type n_ds_nei_import_rap_proc_spec_schedules from d_ds_nei_import_rapids_base end type end forward global type n_ds_nei_import_rap_proc_spec_schedules from d_ds_nei_import_rapids_base end type global n_ds_nei_import_rap_proc_spec_schedules n_ds_nei_import_rap_proc_spec_schedules event constructor;call super::constructor;//set the file extension and data source this.of_setDataType("txt", "d_nei_import_rap_process_spec_schedules") //override the default name //this.of_DAT*setFileName("ds_tmp_emis_rel_pt_devices") //set the file description this.of_setFileDescription("rap_process_specific_schedules") //override the default save as option of no headings this.of_setFileHeadings(true) end event on n_ds_nei_import_rap_proc_spec_schedules.create call datastore::create TriggerEvent( this, "constructor" ) end on on n_ds_nei_import_rap_proc_spec_schedules.destroy call datastore::destroy TriggerEvent( this, "destructor" ) end on DAT*B Gmn rQpq3@uYst @x^vw @fg :as_cityname:ad_parentridij as_cityname ad_parentridrap_geographic_locationsridrap_geographic_locations.ridGnamerap_geographic_locatDAT*D ions.nameQtyperap_geographic_locations.typeY parent_rid$rap_geographic_locations.parent_rid^jPBSELECT( VERSION(400) TABLE(NAME="rap_geographic_locations" ) COLUMN(NAME="rap_geographic_locations.rid") COLUMN(NAME="rap_geographic_locations.name") COLUMN(NAME="rap_geographic_locations.type") COLUMN(NAME="rap_geographic_locations.parent_rid")WHERE( EXP1 ="~"rap_geographic_locations~".~"type~"" OP ="=" EXP2 ="'CITY'"DAT*F  LOGIC ="and" ) WHERE( EXP1 ="~"rap_geographic_locations~".~"name~"" OP ="=" EXP2 ="" LOGIC ="and" ) WHERE( EXP1 ="~"rap_geographic_locations~".~"parent_rid~"" OP ="=" EXP2 ="" ) ) ARG(NAME = "as_cityname" TYPE = string) ARG(NAME = "ad_parentrid" TYPE = number) \|~"}1"1"DAT*1"1"0"0"0DAT*J  !"$%&&@'F(v)z,-./0145&6@7F8v9z;d ll_rcsqlca(*@(X ids_ctrlequipactivities update(SQL error - ids_ctrlequipactivities ids_emisactivitiesl(SQL error - ids_emisactivities ids_emisperiodactivities (SQL error-ids_emisperiodactivities ids_emisrelptdevices DAT*L (SQL error-ids_emisrelptdevices ids_emisunitdevicesx(SQL error-ids_emisunitdevicesf_ ids_processes(SQL error-ids_processes ids_sources(SQL error - ids_sources  0 8 d         8 @ H p            ( 0 P DAT*N -o)81<- 9}-48<0-T8\-$z%8z&z&8z&oA8z(1}< . D ` d< ads_tempal_rowas_columnaa_valueimporterrli_retx $ "+ %5( setitemberrorDAT*P szattrname(Data ErrorszmessageGData Error: Unable to set value: Dataobject:dataobject, Column:, Value:  4 T   )8<,*B81,*- 9}-48<0-T8\$z%,*< L R h d' ads_tempimporterrll_rcsqlcaP $DAT*R  %!*@(( updateberrorszattrname(System ErrorszmessageIUnable to save temp table dataobject: dataobject  4 T  (o(@(81o@o8e@e8}11@8e@e8}11@8e@e8}@8DAT*T 3@85 T dA aa_datels_dateli_yearli_monthli_dayldt_dateld_date  )0 9  $4<$6D$)X81flt$J8$$DAT*V 6$>$)81 $J,8P$)X81*L\f Fhxd ll_rc` ids_stateactivities is_statefips$ $  of_populate:Lid_staterid` of_getstateridC|ids_countDAT*X yactivitiesis_countyfips@!`)`:Lid_countyridof_getcountyridCids_conversionlookupcodes@4 :L 4 < D X l t             , P X N$$)881<1"2<d ll_rcDAT*Z @ ids_sourcesgrpbystatecounty of_populate:,$ 8 J#!:1}( :d aw_imainli_ret(  iw_imain V,@8$($)<81D$L$\$8d019n98c$DAT*\ $9)8$$9)81#l$$$8d01)98$$,$9)48<$D$1L$)d8)8$)8$)8118080)8180+@+811DAT*^ @,8@$H$8P09n\98^t|$$809n98^8$z%8z&$z&8z&(@(8z(8z&(@(8z(8z&)8)88z%8z&8$H$8z%111)`8h$p$8DAT*` z%x$)8$8 )8#@,$$6$$6)$8,$4$<$D$z%L$)T8)p8x$$$6$$$)81^1808z%8z&) 8<,)8#x@,0$8$6DAT*b P$X$6)`8h$p$x$$z%$)8)8$$$6$$$)811808z%8z&)8<,)8#@,($0$6L$T$6)\8d$l$t$|$z%$)8)DAT*d 8$$$6$$$)81> 1808z%8z&)8<,)8#X @,$$6$$$6),84$<$D$L$z%T$)\8)x8$$$6$$$)81 180DAT*f 8z%8z&)8<,)8# @,$$6$$8z%)(80$8$@$H$z%8z&P$)X8)8$$$6$$$)81* 1808z%8z&)8)8#D @, $ $6$ $, $DAT*h 84 z%)D 8L $T $\ $d $z%84 z&l $)t 8) 8 $ $ $6 $ $ $) 81 1808z%8 z&) 8<,8 r ) 8# @, $ $6( $0 $6)8 8@ $H $P $X $z%` $)h 8DAT*j ) 8 $ $ $6 $ $ $) 81.1808z%8z&) 8<,) 8#H@, $ $6 $ $6) 8 $ $ $ $z% $)$ 8)@ 8H $P $X $6` $h $p $)x 81DAT* 1808z%8z&) 8<,) 8#@, $ $6 $ $6) 8 $ $ $ $z% $) 8) 8 $ $ $6 $( $0 $)8 811808z%8z&)@ 8<,)H 8#(@,P $X $68` 0) DAT*n , "annual_avg_hours_per_year can not be a value of zero or NULL") end if ls_metricleveltype = "STR" ls_valueunitcode = "WT%" //update sulfur_content //****************************************************************************************** ld_value = lds_tdata.object.sulfur_content[ll_row] // sulfur_content ash_content if ld_value <> 0 and not isnull(ld_value) then ld_rid = of_insertactivity('S CONTENT', ls_metricleveltype, ld_inputstreamrid, ldt_startdate, string(ld_vDAT*p alue), & ls_datacode, ldt_enddate, ls_null, ls_null, ls_referenceCode, ls_referenceType, & ld_value, ls_null, ls_valueunitcode, ll_row, importerr, true) if ld_rid = -5 then exit else of_putinmessagelog(ll_row, "Data Error", "sulfur_content can not be a value of zero or NULL") end if //update ash_content //****************************************************************************************** ld_value = lds_tdata.object.ash_content[ll_rowDAT*r ] // ash_content if ld_value <> 0 and not isnull(ld_value) then ld_rid = of_insertactivity('ASH CONTENT', ls_metricleveltype, ld_inputstreamrid, ldt_startdate, string(ld_value), & ls_datacode, ldt_enddate, ls_null, ls_null, ls_referenceCode, ls_referenceType, & ld_value, ls_null, ls_valueunitcode, ll_row, importerr, true) if ld_rid = -5 then exit else of_putinmessagelog(ll_row, "Data Error", "ash_content can not be a value of zero or NULL") DAT*t  end if next iw_imain.wf_progress(1) lds_tdata.of_filter("") return ll_rc end function public function long of_createaremissionperiodactivitydata ();/* Modified Jan 31, 2005 by Steve Oliphant Changes made to support NIF 3.0 data imports. */ //driver variables long ll_row, ll_rc = -1, ll_iraprc integer li_ret string ls_condition boolean lb_insert str_ierror importerr string ls_find ll_row = 0 //temp table n_ds_nei_import_temp_base lds_tdata //rapids variables DAT*v double ld_rid datetime ldt_creationDate string ls_metriccode = "@" string ls_metricleveltype = "STR" double ld_refrid, ld_value datetime ldt_startdate string ls_userid datetime ldt_enddate string ls_referenceCode string ls_referenceType = "IMPORT" double ld_valueamt string ls_valueunitcode string ls_datacode = "05" string ls_value string ls_materialcode string ls_tribal_code //other variable string ls_pollutantcode string ls_unique = "" string ls_scc string ls_null datetimeDAT*x  ldt_null double ld_null long ll_material string ls_throughput string ls_rapunit string ls_meascode setnull(ls_null) setnull(ldt_null) setnull(ld_null) ls_userid = left(gs_user_id, 4) ldt_creationDate = datetime(today(), now()) //check to make record available for ldt_startdate and ldt_enddate if ids_emisactivities.rowcount() < 1 then of_putinmessagelog(-1, "Data Error", "Unable to find record in emission file for state FIPS code: " + & is_statefips + " and county FIPDAT*z S code: " + is_countyfips) return 0 end if lds_tdata = ids_emisperiodactivities lds_tdata.of_sort("scc, start_date, end_date, material") lds_tdata.of_filter("not isnull(input_stream_rid)") ll_rc = lds_tdata.rowcount() ls_referenceCode = 'NEI ' + string(ids_sources.object.inventory_year[1]) iw_imain.wf_progress(0) for ll_row = 1 to ll_rc iw_imain.wf_progress(ll_row/ll_rc) lb_insert = false ldt_startdate = of_converttodate(lds_tdata.object.start_date[ll_row]) if isnull(lDAT*| dt_startdate) then of_putinmessagelog(ll_row, "Data Error", "start_date column is null") continue end if ldt_enddate = of_converttodate(lds_tdata.object.end_date[ll_row]) if isnull(ldt_enddate) then of_putinmessagelog(ll_row, "Data Error", "end_date column is null") continue end if ls_scc = lds_tdata.object.scc[ll_row] if isnull(ls_scc) or ls_scc = "" then of_putinmessagelog(ll_row, "Data Error", "scc column is null") continue end if // ls_pollutantcodeDAT*~  = lds_tdata.object.pollutant_code[ll_row] // if isnull(ls_pollutantcode) then // of_putinmessagelog(ll_row, "Data Error", "pollutant_code column is null") // continue // end if ll_material= lds_tdata.object.material[ll_row] if isnull(ll_material) or ll_material = 0 then of_putinmessagelog(ll_row, "Data Error", "Material not found in " + lds_tdata.is_description) continue end if ls_tribal_code = lds_tdata.object.ls_tribal_code[ll_row] if isnull(ls_tribal_code) then lsDAT* _tribal_code = "" if ls_unique = ls_scc + & " " +string(ldt_startdate) + & " " + string(ldt_enddate) + & " " + ls_tribal_code then continue else ls_unique = ls_scc + & " " +string(ldt_startdate) + & " " + string(ldt_enddate) + & " " + ls_tribal_code end if if not ids_conversionlookupcodes.of_findrapidsvalue("MATERIAL_CODE", string(ll_material), ls_materialcode) then of_putinmessagelog(ll_row, "Data Error", "MatDAT* erial Code with value:" + string(ll_material) + " is not in conversion lookup table") continue end if ld_refrid = lds_tdata.object.input_stream_rid[ll_row] if ld_refrid = 0 then of_putinmessagelog(ll_row, "Data Error", "Output Stream RID not found in " + lds_tdata.is_description) continue end if ls_throughput = lds_tdata.object.throughput_unit_num[ll_row] if isnull(ls_throughput) or ls_throughput = "" then of_putinmessagelog(ll_row, "Data Error", "Through UDAT* nit Num not found in " + lds_tdata.is_description) continue elseif not ids_conversionlookupcodes.of_findrapidsvalue("UNIT_CODE", ls_throughput, ls_valueunitcode) then of_putinmessagelog(ll_row, "Data Error", "Unit Code with value:" + ls_throughput + " is not in conversion lookup table") continue end if // if not ids_conversionlookupcodes.of_findrapidsvalue("POLLUTANT_CODE", ls_pollutantcode, ls_materialcode) then // of_putinmessagelog(ll_row, "Data Error", "Pollutant Code with vaDAT* lue:" + ls_pollutantcode + " is not in conversion lookup table") // continue // end if ls_metriccode = "@" if not ids_conversionlookupcodes.of_findrapidsvalue("UNIT_CODE", ls_throughput , ls_rapunit) then of_putinmessagelog(ll_row, "Data Error", "Unable to retrieve. Unit code:" + string(ls_throughput) + " is not in conversion lookup table") continue else ls_measCode = f_dlookup("rap_units.meas_code", "rap_units", "rap_units.code = '" + ls_rapunit + "'") if len(ls_meascode)DAT*  > 0 and not isnull(ls_meascode) then ls_find = "rapids_value_name = '" + ls_meascode & + "' and rapids_field_name = 'MEASUREMENT_CODE_METRIC'" & + " and system_code = 'NEI'" // added in NEI check on 1/31/05 SJO if ids_conversionlookupcodes.of_find(ls_find) then ls_metriccode = ids_conversionlookupcodes.of_getdata("system_value_name_1") end if end if end if //update actual_throughput //***********************************************************DAT* ******************************* ld_valueamt = lds_tdata.object.actual_throughput[ll_row] if ld_valueamt <> 0 and not isnull(ld_valueamt) then ld_rid = of_insertactivity(ls_metriccode, & ls_metricleveltype, & ld_refrid, & ldt_startdate, & left(string(ld_valueamt),12), & ls_datacode, & ldt_enddate, & ls_materialcode, & ls_null, & DAT*  ls_referenceCode, & ls_referenceType, & ld_valueamt, & ls_null, & ls_valueunitcode, & ll_row, & importerr, & true) if ld_rid = -5 then exit else of_putinmessagelog(ll_row, "Data Error", "Actual Throughput can not be a value of zero or NULL") end if next iw_imain.wf_progress(1) lds_tdata.of_filter("") return ll_rc end fuDAT* nction public function long of_createaremissionactivitydata ();/* Modified Jan 31, 2005 by Steve Oliphant Changes made to support NIF 3.0 data imports. Section 4.2.2.9 Create Emission Activity Data from the design document */ //driver variables long ll_row, ll_rc = -1, ll_iraprc integer li_ret string ls_condition boolean lb_insert str_ierror importerr ll_row = 0 //temp table n_ds_nei_import_temp_base lds_tdata //rapids variables double ld_rid datetime ldt_creatiDAT* onDate string ls_metriccode string ls_metricleveltype = "STR" double ld_refrid, ld_value datetime ldt_startdate string ls_userid datetime ldt_enddate string ls_referenceCode string ls_referenceType = "IMPORT" double ld_valueamt string ls_valueunitcode string ls_datacode = "05" string ls_value string ls_materialcode //other variable string ls_pollutantcode string ls_unique = "" string ls_scc string ls_null datetime ldt_null double ld_null string ls_material string ls_througDAT* hput string ls_tribal_code string ls_emission_type string ls_pollutantFieldName string ls_uniqueTribalCode setnull(ls_null) setnull(ldt_null) setnull(ld_null) ls_userid = left(gs_user_id, 4) ldt_creationDate = datetime(today(), now()) lds_tdata = ids_emisactivities lds_tdata.of_sort("scc, pollutant_code, start_date, end_date, emission_type, tribal_code") lds_tdata.of_filter("not isnull(output_stream_rid)") ll_rc = lds_tdata.rowcount() iw_imain.wf_progress(0) for ll_row =DAT*  1 to ll_rc iw_imain.wf_progress(ll_row/ll_rc) lb_insert = false ldt_startdate = of_converttodate(lds_tdata.object.start_date[ll_row]) if isnull(ldt_startdate) then of_putinmessagelog(ll_row, "Data Error", "start_date column is null") continue end if ldt_enddate = of_converttodate(lds_tdata.object.end_date[ll_row]) if isnull(ldt_enddate) then of_putinmessagelog(ll_row, "Data Error", "end_date column is null") continue end if ls_scc = lds_tdata.object.scc[ll_roDAT* w] if isnull(ls_scc) then of_putinmessagelog(ll_row, "Data Error", "scc column is null") continue end if // ls_pollutantcode = lds_tdata.object.pollutant_code[ll_row] // if isnull(ls_pollutantcode) then // of_putinmessagelog(ll_row, "Data Error", "pollutant_code column is null") // continue // end if ls_pollutantcode = lds_tdata.object.pollutant_code[ll_row] if isnull(ls_pollutantcode) or ls_pollutantcode = "" then of_putinmessagelog(ll_row, "Data Error", "PollutanDAT* t Code not found in " + lds_tdata.is_description) continue end if ls_tribal_code = lds_tdata.object.tribal_code[ll_row] if isnull(ls_tribal_code) then ls_tribal_code = '' /* Assign Inventory Year = rap_tmp_sources.inventory_year where rap_tmp_sources.state_FIPS = rap_tmp_emis_activities.state_FIPS and rap_tmp_sources.county_FIPS = rap_tmp_emis_activities.county_FIPS and rap_tmp_sources.tribal_code = rap_tmp_emis_activities.tribal_code */ if ls_uniqueTriDAT* balCode <> ls_tribal_code then ls_referenceCode = 'NEI ' + string(ids_sources.object.inventory_year[1]) ls_uniqueTribalCode = ls_tribal_code end if ls_emission_type = lds_tdata.object.emission_type[ll_row] if isnull(ls_emission_type) then ls_emission_type = '' /* For each unique combination of state_FIPS, county_FIPS, SCC, pollutant_code, start_date, end_date, emission_type, and tribal_code in the rap_tmp_emis_activities table: */ if ls_unique = ls_scc + DAT* 8 $ $8` z% $) 8) 8 $ $ $6 $ $ $) 81Z1808z%8 z&)P 8)X 8#t@,` $h $68p 0) 8 $ $8p z% $) 8) 8 $ $$6$$$)DAT*  811808z%8(z&)h8)p8#@,x$$6$$6)8$$$$z%$)8)8 $$$6$$,$4$)<811808z%8z&)D8<,)L8#0@,T$\DAT* $6d$l$6)t8|$$$$z%$)8)8$$$6$$$)811808z%8z&)8<,)8#@,$$6 $($80z%)D8L$T$\$d$z%80z&l$)tDAT* 8)8$$$6$$$)811808z%8z&)8)8#@,$$,$64$<$8Dz%)h8p$x$$$z%8Dz&$)8)8$$$6$$$)8DAT* 1~1808z%8z&)88)@8#@,H$P$6X$`$8hz%)8$$$$z%8hz&$)8)8$$$6$$$)811808z%8 z&)P8)X8#@,x$DAT* $6$$8z%)8$$$$z%8z&$)8)8 $($0$68$@$H$)P81v1808z%8Xz&)8)8#@,$$6$$8z%)8$$$$z%8z&DAT* $)8)88@$H$P$6X$`$h$)p811808z%8z&)x8)8# @,$$6$$8z%)8$$$$z%8z&$)8)8 $($0$68$@$H$DAT* )P81n 1808z%8 z&)X8<,8`8c"<,)h8# @,p$x$6$$6)8$$$$z%$)8)8$$$6$$ $)81"1808z%8z&)8 mX n o p q` rp t x { | }n ~  * D  \ l n*.HP`DAT* Nf (^ Zt\lVn 0 v   8HF^ 39:h;<=4>DC~IJK>LVMNSZ[`\]^,_<dvklm6nNopu| }X~$ 4 n    H!`!!!""""h"""*#:#t#x###($@$$$$$%H%%% &&T&X&r&&' 'z'''''.(((( )DDAT* )^))**v****&++++,<,@,dN ll_rcll_rowll_returnls_fipscombinationls_headerldt_startcase63 2 < F  iw_imaindw_header0)rowcount400)objectT@starttime__get_attribute_itemn0)setredraw!0)uf_puthDAT* eaderil_header@0)T@__set_attribute_item0)!0)uf_putfilenum Tof_loadimportdriverlids_sourcesgrpbystatecounty of_registerimportdrA 0ErrorUnable to load into Rap Tablesof_putinmessagelog#No data to Importis_statefips*  T@state_fipsnis_countyfipsd T@county_fipsnState FIPS: * , CouDAT* nty FIPS: d ( of )of_loadtemptablesof_loadcachedataeptImporting data into RAPIDS table: ptddw_log@/'uf_putnotifyiceP0)uf_putheadmsgsis_sourcetypect orof_yield'ids_sourcesis_description ids_rapsources of_setlogmessage "0) of_createorsources6\@/'is_logfilenameil_discardsDAT* il_insertsil_updatesPUnable to process this combination.#'ids_emisunitdevices ids_rapdevices@ "0)@ of_createordevices9@/'P combination any further.#'ids_processes ids_rapprocessesse8 "0)8 of_createorprocessesDAT* 7@/'P#' ids_rapstreams  "0)  of_createorstreams85d@/'P#'ids_emisperiodactivities ids_rapactivities  for throughput"0) of_createorthroughputactivities4`@/'DAT* P combination for emission period activities.#'ids_emisactivities    for discharge"0) of_createordischargeactivities8| @/'P combination for emission activities.#pt'  "0) of_createptsources*p @DAT* /'P#' @ "0)@ of_createptdevices+, @/'P#' 8 "0)8 of_createptprocesses; @/'P#'  control equipment devices & processes"DAT* 0)of_createptcntrleqptdevicesprocesses = @/'P combination for control equipment devices & processes.#'  emission release point devices & processes"0)of_createptemisreldevicesprocesses> @/'P combination for emission release point devices & processes. #'DAT*  ids_rapconnections"! "0)"! of_createptdeviceconnections A@/'P#'   "0)  of_createptstreamsB@/'P#'   :source activities"0) DAT* of_createptsourceactivitiesC|@/'P combination for source activities.#'ids_emisrelptdevicesp    :emission release point activities"0) of_createptemisreleaseptactivitiesE@/'P combination for emission release point activities.#'   :emiDAT* ssion process activities"0) of_createptemissionprocessdataF@/'P combination for emission process activities.#'ids_ctrlequipactivities`    :control equipment activities"0) of_createptcontrolequipmentactivitydataG@/'P combinatioDAT* n for control equipment activities.#'   :emission period activities"0) of_createptemissionperiodactivitydatatSI@/'P#'    :emission activitiespo"0) of_createptemissionactivitydataJ@/'P#DAT* nrar'  "0) of_createarsources-@/'P#' @ "0)@ of_createardevices2@/'P#' 8 "0)8 of_createarprocDAT* esses.@@/'P#'   "0)  of_createarstreams,@/'P#' ids_rapspecificschedulest  "0)t  of_createaremissionprocessdata/@/'P#'DAT* `    for control equipment"0) of_createarcontrolequipmentactivitydata3@/'P#'  "0) of_createaremissionperiodactivitydata0@/'P#'   "0)DAT*  of_createaremissionactivitydata1X@/'P# ( < D L \             $ , 4 < D L d       8 @ H \ t |       8 H ` hDAT*  p x        $ , 4 < D L T p x          0 8 P X ` h p x              ( 0 L T \ d l t |       DAT* ' ' & + ls_pollutantcode + ' ' & + string(ldt_startdate) + ' ' & + string(ldt_enddate) + ' ' & + ls_emission_type + ' ' & + ls_tribal_code + ' ' & then continue else ls_unique = ls_scc + ' ' & + ls_pollutantcode + ' ' & + string(ldt_startdate) + ' ' & + string(ldt_enddate) + ' ' & + ls_emission_type + ' ' & + ls_tribal_code + ' ' end if /* For NIF 2.0, assign RAPIDS Pollutant FieldDAT*  Name = 'POLLUTANT_CODE'. For NIF 3.0, assign RAPIDS Pollutant Field Name = 'POLLUTANT_CODE_NIF3'. */ if w_imain.is_table_type = "nei" then ls_pollutantFieldName = "POLLUTANT_CODE" else ls_pollutantFieldName = "POLLUTANT_CODE_NIF3" end if if not ids_conversionlookupcodes.of_findrapidsvalue(ls_pollutantFieldName, ls_pollutantcode, ls_materialcode) then of_putinmessagelog(ll_row, "Data Error", "Pollutant Code with value:" + ls_pollutantcode + " is not in conversDAT* ion lookup table") continue end if ls_throughput = lds_tdata.object.emission_unit_numerator[ll_row] if isnull(ls_throughput) or ls_throughput = "" then of_putinmessagelog(ll_row, "Data Error", "Emission Unit Num not found in " + lds_tdata.is_description) continue elseif not ids_conversionlookupcodes.of_findrapidsvalue("UNIT_CODE", ls_throughput, ls_valueunitcode) then of_putinmessagelog(ll_row, "Data Error", "Unit Code with value:" + ls_throughput + " is not in conversionDAT*  lookup table") continue end if // if not ids_conversionlookupcodes.of_findrapidsvalue("POLLUTANT_CODE", ls_pollutantcode, ls_materialcode) then // of_putinmessagelog(ll_row, "Data Error", "Pollutant Code with value:" + ls_pollutantcode + " is not in conversion lookup table") // continue // end if //update DOWNSTRMDIS //****************************************************************************************** ls_metriccode = "DOWNSTRMDIS" ld_refrid = lds_tdata.object.outpDAT* ut_stream_rid[ll_row] if ld_refrid = 0 then of_putinmessagelog(ll_row, "Data Error", "Output Stream RID not found in " + lds_tdata.is_description) continue end if ld_valueamt = lds_tdata.object.emission_num_val[ll_row] if ld_valueamt <> 0 and not isnull(ld_valueamt) then ld_rid = of_insertactivity(ls_metriccode, ls_metricleveltype, ld_refrid, ldt_startdate, left(string(ld_valueamt), 12), & ls_datacode, ldt_enddate, ls_materialcode, ls_null, ls_referenceCode, ls_DAT* referenceType, & ld_valueamt, ls_null, ls_valueunitcode, ll_row, importerr, true) if ld_rid = -5 then exit else of_putinmessagelog(ll_row, "Data Error", "emission_num_val for downstream discharge can not be a value of zero or NULL") end if //update DISCHARGE //****************************************************************************************** ls_metriccode = "DISCHARGE" // ld_valueamt = lds_tdata.object.emission_num_val[ll_row] if ld_valueamt <>DAT*  0 and not isnull(ld_valueamt) then ld_rid = of_insertactivity(ls_metriccode, ls_metricleveltype, ld_refrid, ldt_startdate, & left(string(ld_valueamt), 12), & ls_datacode, ldt_enddate, ls_materialcode, ls_null, ls_referenceCode, ls_referenceType, & ld_valueamt, ls_null, ls_valueunitcode, ll_row, importerr, true) if ld_rid = -5 then exit else of_putinmessagelog(ll_row, "Data Error", "emission_num_val for discharge can not be a value of DAT* zero or NULL") end if //update Rule Effect //****************************************************************************************** ls_metriccode = "RULE EFFECT" ld_valueamt = lds_tdata.object.rule_effectiveness[ll_row] if ld_valueamt <> 0 and not isnull(ld_valueamt) then ld_rid = of_insertactivity(ls_metriccode, ls_metricleveltype, ld_refrid, ldt_startdate, & left(string(ld_valueamt), 12), & ls_datacode, ldt_enddate, ls_materialcodeDAT*, ls_null, ls_referenceCode, ls_referenceType, & ld_valueamt, ls_null, "WT%", ll_row, importerr, true) if ld_rid = -5 then exit else of_putinmessagelog(ll_row, "Data Error", "rule_efffectiveness can not be a value of zero or NULL") end if //update Rule Penatration //****************************************************************************************** ls_metriccode = "RULE PENET" ld_valueamt = lds_tdata.object.rule_penetration[ll_row] if ld_valueaDAT*          $ , 4 < D L T \ x              ( 0 8 @ H P X             $ , D L T \ d l t     DAT*         ( 0 8 @ H P X ` h                     $ @ H P X ` h p x                  DAT*   ( 0 8 @ H P X              P X ` h               h p x                $ , 4 < D L T \DAT*  d l t |                    ( D L T \ d l t           $ , 4 < h p x             8 @ H DAT* P X `                P X x              ( 0 8 @ H P              8 @ H P X ` h p x   DAT*              ( 0 8 @ H P X h p x                    $ , 4 < D L T \ d l t |           DAT*          ( 0 8 X ` h p x                   $ , 4 < D L T \ d l                 ( 0 8 @ HDAT*  P X `                  ( 0 8 @ H P X ` h p x                  ( 0 8 @ H P x          DAT* )8#"1)$8<1p,*8L$`$8h0|$)8-9}-80-8$z%8z&$6C8z( $0$H$6)`8v,*"@ P V h 2lpvd' ads_tempimporterrll_rcsqlcaPDAT* & %!*@(h of_yield'updateil_discards,iw_imain@dw_headerT0)rejectil_headerouf_putstatsberrorszattrnameSystem ErrorszmessageUnable to save is_description DB Error: is_error@dw_log(/'is_logfilename@8uf_putmessage@P $ 8 L ` |  DAT*       0 H ` H1(1<1,d D il_discardsil_insertsil_updates0 ( < F8 z%8&z&z&10d! as_sourceas_destination(  + is_logfilenameFrom DAT*To  )866)88L$\$t$6111)81 4 |d! as_sourceas_destination(  0 of_resetcounters of_setlogfilename!$iw_imain@dw_logT/'is_logfilenameduf_putnotifytst| 8 L \ t  . (DAT*$<$8D0X$)l8|9},*$}66$$$ $6)$81Nd d6 al_rowas_attrnameas_messageimporterrsqlcad  & %0*@(, iDAT*l_discardsiw_imainf_sdw_header00)rejectil_headerw_lKuf_putstats`berrortnerrornum szattrnameszmessageil_linenum;dw_log/'is_logfilenameruf_putmessage ( < X l |           $ !8z%)988 8"08(DAT* z%8>z&:)@@8-H9}-\8d0-|8(z%8>z&$$$6)816e@e8}-9}-6-8z%8>z&$$ $6)(81#80z%)<981o@o8DAT* 8D 8J@81R} 8L@8} <  <<Y@8 6e@e8}o(@(8} o(@(8 <o@o98Vo)X8}1<z-`9}-h8d0-p8xoD8z'8z&z&8>zDAT*&$$$6)8<, @ | &HRh"%&*)Z*+,/ 263D;<=>?@@Czd ads_objectal_rowas_columnnameaa_valueimporterrab_requiredli_retli_colnumls_templa_valueli_posli_pos1li_pos2li_columnlengthli_datalengthls_typels_columnlengthstringT ' (DAT*1 %;GNX `ipx   .iddescribe` !ErrorInvalid column name ''berrore@szattrnamePSystem Errorszmessageqiw_imaindw_log/'is_logfilenameuf_putmessage@PqDAT*A value must be supplied for '/'.colType` char(()setitem@N@PqUnable to set the value of for Column: '/' H \ |            ( < X ` h p     .)8#"1)$8<1p,*DAT*8L$`$8h0|$)8-9}-80-8$z%8z&$6E8z( $0$H$6)`8,*t|$$80$)8$$80$)8" @ P V hDAT*2lpv~ d1 ads_tempimporterrab_insertll_rcsqlcad & %%+*@( of_yieldibe'updateril_discards,iw_imain@dw_headerT0)rejectil_headerouf_putstatsberrorszattrnameSystem ErrorszmessageUnable to save is_description DB Error: is_errorDAT*@dw_loga(/'is_logfilenamea8uf_putmessageenPil_insertsh@T0)inserto@T0)oil_updates $ 8 L ` |         0 H ` t |         d$$)88#:1IL5@TL16DAT*66)T819}11I9}91)h8tF$I 8p0L1 9)8} 80L1 9)8} 806 9)8} 806 9)8} 806 9)DAT*68}$8p09n98] 8 0L1 9)$8} )D81TBXTlL  :J &h !".#p$t')*$+,,>-B3Td ad_processridas_beginmonthas_endmonthas_yearad_relativeactivityamountll_iraprclds_irapidslb_insDAT*y="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=9 alignment="0" tabsequence=32766 border="0" color="0" x="4864" y="8" height="76" width="850" format="[general]" html.valueishtml="0" name=street_line_1 visible="1" edit.limit=30 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.moDAT* de="1" background.color="536870912" ) column(band=detail id=10 alignment="0" tabsequence=32766 border="0" color="0" x="5723" y="8" height="76" width="850" format="[general]" html.valueishtml="0" name=street_line_2 visible="1" edit.limit=30 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(bandDAT*"=detail id=11 alignment="0" tabsequence=32766 border="0" color="0" x="6583" y="8" height="76" width="850" format="[general]" html.valueishtml="0" name=city visible="1" edit.limit=30 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=12 alignment="0" tabsequence=32766 border="0" coDAT*$lor="0" x="7442" y="8" height="76" width="142" format="[general]" html.valueishtml="0" name=state visible="1" edit.limit=2 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=13 alignment="0" tabsequence=32766 border="0" color="0" x="7593" y="8" height="76" width="302" format="[genDAT*&eral]" html.valueishtml="0" name=zip_code visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=14 alignment="0" tabsequence=32766 border="0" color="0" x="7904" y="8" height="76" width="576" format="[general]" html.valueishtml="0" name=country visible="1" eDAT*(dit.limit=20 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=15 alignment="1" tabsequence=32766 border="0" color="0" x="8489" y="8" height="76" width="375" format="[general]" html.valueishtml="0" name=inventory_year visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no DAT**edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=16 alignment="0" tabsequence=32766 border="0" color="0" x="8873" y="8" height="76" width="713" format="[general]" html.valueishtml="0" name=source_type visible="1" edit.limit=25 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemodDAT*,e=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=20 alignment="1" tabsequence=32766 border="0" color="0" x="9595" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=start_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="DAT*.400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=21 alignment="1" tabsequence=32766 border="0" color="0" x="9934" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=end_date visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" baDAT*0ckground.mode="1" background.color="536870912" ) column(band=detail id=22 alignment="1" tabsequence=32766 border="0" color="0" x="10272" y="8" height="76" width="329" format="[general]" html.valueishtml="0" name=source_rid visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) colDAT*2umn(band=detail id=17 alignment="2" tabsequence=32766 border="0" color="0" x="10610" y="0" height="64" width="562" format="[general]" html.valueishtml="0" name=naics_primary visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.nilisnull=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" ) column(band=detail id=18 alignment="0" tabsequence=32766 border="0" color="0" DAT*4x="11182" y="0" height="64" width="389" format="[general]" html.valueishtml="0" name=tribal_code visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.nilisnull=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" ) column(band=detail id=23 alignment="0" tabsequence=32766 border="0" color="0" x="11579" y="0" height="64" width="800" format="[general]" html.valueishtml="DAT*0" name=user_id visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) htmltable(border="1" ) htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" netscapelayers="0" ) DAT*8ertld_ridli_retimporterr  $ 0 8 R\ &hrxy % ids_rapspecificschedules of_yield8',retrieve,Hinsertrow\ridof_setvalue$tprocess_rid$tbegin_month_no$tend_month_no$tyear$tobject@__get_atDAT*:tribute_itemrelative_activity_amt$tof_updaterapidstable,il_insertsLil_updates`$ 8 @T h        $ D X l x4D@D$$($d 0 iw_imainbimporting= (  )8#&1I66DAT*<LLG8IL5 !-4$6-H$6)d8t-t$9&$$80$)8t$$8 0$)8L& h ~ "&8tdU as_codeas_idad_inputridad_outputridal_rowimporterrab_addmessageld_rid DAT*>  " /6 %@N $ of_yield'?szattrname(szmessage<of_putinmessagelog#Pbupdatelil_inserts|iw_imaindw_header0)insertil_headeruf_putstatsil_updates0)updateo  4 H d t   DAT*@        2)8#&1I8"pL #pL 1(@(866566566 6 6L 1 6 6H8IL5 !j-4$6-H$8Pz%,*T$z&)p8"-$9$$80DAT*B$)8"$$80 $)(8L!&"B#N'p*+,f-j./0126"d as_metriccodeas_metricleveltypeal_refridadt_startdateas_valueas_datacodeadt_enddateas_materialcodeas_methodtypeas_referencecodeas_referencetypead_valueamtas_valuetypeas_valueunitcodeal_rowimporterrab_addmessageld_ridsqlca|  )DAT*D3 A J V b r       % *@(0 of_yield'?szattrname(szmessage<:  of_putinmessagelog#\bupdatexil_insertsiw_imaiDAT*Fndw_header0)insertil_headeruf_putstatsil_updates0)update  4 H T p            ( Nr1 $ 8$8@0)`8)t8$1H)81$IIkDAT*H)8 $809n986z$809n986z! $809n98^$809n 98^ J8(0830)`8  6)t89}1 1)89}18DAT*J080)8 $8019n98Y 6)81 1)89}$809n98^$8$09n498W}11@8@81 1@8@8<$8D0DAT*L9nX98^`$8h09nx98^$809n98^$809n98^ >,*,*$1,*$1d^808z%)88 08,*,$z%)48<$8D0DAT*N9nP98^X$8`09nl98^t$8|09n98^$809n98^80P  I$I 80L 19)8} 80 69)8} 80>19)DAT*P8} 8 0$>19),8} 840 69)<8}   D$809nL98] 8T0L 19)l8} 8t069)|8} 8069)8} 8059)8} DAT*R8059)8} 8069)8} 8069)8}8#!  8069)8}8#!$  8 069)8}8#!  8$069)<8}8#!DAT*T  8D069)\8}8#!D  8d069)x8}8#!  8069)8}$80L )98)8}1<$t1<t808$z%)84$H 6DAT*VP$h6p$8x0L 1)8$)8}1<21<808$$z%)8$ 6$6$8x0L 1)8$) 8}1<H1<808($0$z%DAT*X)88 )X8}1<1< )h8p$1H)x823"465T6n<>@B~CDEHIJFNJOlPxQRSTUVXYB[n\ghi&jjklm:stwz{}~,Z^&l4v L P  \ " d $ B DAT*^  D b  8pt*.F,@D\>dW ll_rowll_rcll_iraprcls_conditionlb_insertli_retimporterrll_sourceridlds_tdatalds_irapidsld_ridld_cityridls_codels_idls_tribal_codels_namels_typeldt_startopdatels_commenttextldt_endopdatels_groupflagls_grouptypels_locationline1addrls_locationline2addrls_locationzipcodels_siccodels_naicsls_cityli_yearsqDAT*then exit end if next //trigger the end scan event for any post-processing this.trigger event ue_scanEnd() if ll_row > this.rowCount() then //whole buffer was scanned return 0 else //scan was stopped on a specific row return ll_row end if end function public function boolean of_setfilterlock (boolean ab_lock); boolean lb_prevLock lb_prevLock = ib_filterLock ib_filterLock = ab_lock return lb_prevLock end function public function boolean of_setsortDAT*is.object.site_id[al_row] & and is_tribal_code = this.object.tribal_code[al_row] then this.object.source_rid[al_row] = double(aa_data) end if // ************************************************************************* case else // ************************************************************************* //default action or error signalError(-1, "Unknow action '" + as_action + "' for ue_scanRow().") return -1 end choose return 0 end event DAT*`lcaX ,6= %GT $^ &j q |       $ at   $DAT*b as- tC8 atA ieIQ*@(8 @YSOURCEids_sourcesids_rapsources(tribal_code, site_id of_sort(!Vrowcounthiw_imains_i|wf_progress|object@site_id__get_attribute_item@@tribal_code@@Data ErrorSite ID column is nullof_putinmessagelog#JretrievehinsertrowDAT*d9|System ErrorUnable to connect to database#J@ridof_bulkdeletesourcesM|@source_type@inventory_year@site_description@street_line_1@street_line_28@cityid_countyridCity Not Found errorCity name = #JDB SQL ErrorError Message:  #J@zip_code(@sic_primary@DAT*ffacility_name@naics_primaryof_setvalueo_a$id$geographic_state_ridid_staterid$geographic_county_rid$code$@geographic_incorp_rid$name$type1$begin_operation_date$end_operation_date$group_flag$group_type$naics_code$comment_text$location_line_1_addr$location_line_2_addr$location_zip_cDAT*hode0$sic_code$@source_rid__set_attribute_itemof_updatetemptableUnable to save Source Rid to is_description #Jids_emisunitdevices is_siteid<$ is_tribal_codeX) UPDATE SOURCE RID BY SITE IDof_scan*@   #Jids_emisrelptdevices <$X)@ #Jof_updaterapidstable9%@resetDAT*j`| 8 ` t              ` t          4 < X ` x         , 4 < P X l t        $ , < D L l DAT*l|        < \ x       4 H P h p                ( 0 8 X h p x , L1@8 $ 8$8@0)t88|0)8DAT*n)8$1H)81 $IIk)8$809n$98^ ,$8409nH98^ 8  "8P08[$z%)8  $809n98]L 5L "8P08DAT*p$z%)8 L 1(@(88z& z&$809n986z!0 L 1(@(88z& z&$$809n,98^ 4$809n<98]L 5H<8P08P$z%)X8   6 6L 1)l89}1DAT*r 1)89}18080)8 $809n98^12o@o98$809n98^$809n98^ J$I 8$0L 19)48} 8<0 69)@DAT*t8} 80L 19)H8} 8P0 69)X8}\  `$8$09nh98]112@8 8p069)x8}8 #!( 8069)8}8 #! 8069DAT*v)8}$80L )98)8}1<  X 1<X 808$z%)8 4$H6P$` 6h$6$80L 1)8$)8}1<8   1< 808DAT*x$$z%)8  ) 81   )088$1H)@88 0)H8-*.>/R0p12578*:p;<= ABTClDGI(J,K0LdQRST8X<YnZz[\]^_cdZehij kLlmnor\stux(yF   T X z  0 4 L DAT*z d ll_rowll_rcll_iraprcli_retls_conditionls_nulllb_insertimporterrlds_tdatalds_irapidsld_ridls_codeld_sourceridls_idls_namels_siccodels_naicscodels_tribal_codels_uniquels_siteid& 3 ;E %O $Y &e lt  DAT*|      P0 @ids_emisunitdevices ids_rapdevices(tribal_code, source_rid, emission_unit_idof_sort!jnot isnull(source_rid)of_filternai rowcountcodiw_imainwf_progressobject @site_id__get_attribute_item @emission_unit_id Data ErrorEmission Unit ID not found inDAT*~ is_descriptionngz of_putinmessagelogr#@source_rid 8Source RID not found in z # @tribal_code @ @ (z #retrieve`insertrowsetSystem ErrorUnable to connect to database#@emission_unit_desc @sic_unit_level @naics_unit_level ridof_setvalue$(id$($(code!$(@ DAT*name@$(sic_codez$(naics_code$(@device_rid__set_attribute_itemof_updatetemptableUnable to save Device Rid to z #ids_processes]$is_siteid<$$is_euidX'$is_tribal_codep1$UPDATE DEVICE RID BY SITE IDof_scan@$Unable to save Source Rid to $z #of_updaterapidstable%reset(  8 tDAT*        $ , H         $ , 4 < HP X l         4 @ H X ` h x        4 H P ` h          DAT* 0 8 @ H L J 1 @8$4$8<0)H88P0)t8)8$1H)81$IIk)89}$809n98^8 0$8<09n DAT*986t6zB$8<09n986t^z8$08/0)X8 `$8h09nt98]|$8<09n98^ 80  6 6L 1L 19J8L 5t$80L )98)DAT* 8}1<D1<D808!P$z%)X8|$6$6$80L 1)8$)8}1<Z1<Z808($0$z%)88 8@0  6 6L 1L 19JH8LDAT* 5PX$8`0L )t98)|8}1<H1<808!$z%)8$6$6$80L 1)8$)8}1<V1<808$$z%) 8DAT*,$46<$D6L$8T0L 1)p8x$)8}1<l1<808$$z%)8)81$1H)88 0)8#$*%>&R'p()*+,*.6/|12347B8L9v<z=DAT*BCD`GtIJKLMN@ZD[f\]^_`abVhZiljnop,q@rDs\twxyz {:|N}R~j Pdh < d ll_rowll_rcll_iraprcli_retls_conditionlb_insertimporterrlds_tdatalds_irapidsld_ridld_nullls_codels_idld_processridls_tribal_codels_scc3ls_sccT& 3DAT*= %G $Q &] d lt z    8 @ids_processes@ ids_rapstreams$sccof_sort!@not isnull(process_rid)of_filter hrowcountH|iw_imainwf_progressobject@tribal_code__get_attribute_itemDAT*@@Data ErrorSCC column is nullof_putinmessagelog en#B@process_rid@01-INof_insertstreamactivity(@input_stream_rid__set_attribute_itemof_updatetemptableSystem ErrorUnable to save Process Rid to is_description@ #Bids_emisperiodactivities`is_scc#`is_tribal_code)`UPDATE STREAM RIDof_scan@`Unable to saveDAT* Input Stream Rid to ids_emisactivities@ #B01-OUT(@output_stream_rid@ #B#)@Unable to save Output Stream Rid to @ #Bids_ctrlequipactivities # ) UPDATE OUTPUT STREAM RID!@  @ #Bof_updaterapidstable% h 4 H tDAT*             X ` t |       P X |        ( 0 8 H PX t |               , 4 < D L p x    DAT*      Y1 $ 8$8@0)\8)p8$1H)81 $IIk)89}$809n98^^80$809n986t6z| $DAT*809n 986t^@8080)H8|  `$x$z%z&$1o@o8z(88! z%  6)814 1)89}41v8080)8| 4 $8019n98YDAT* 6)$814 )48< 1)<89}D$8L09nP98^8Xz%8sz& 8u0806K8(@(8  8"0808z%)8| $809n98^$809n98WDAT*}11@8@81 1@8@8$8 09n98^80( L$I 80L 19)08} 880 69)<8} 8D0h>19)p8} 8xDAT*0>19)8} 80 69)8}n  $809n98] 80 69)8} 8069)8} 8059)8} 8 059) 8} 8(069)4DAT* 8} 8<069)H8}P$8X0L )x98)81 808$z%)8| $6$80L 1),84$)<8}1<6   1< 808D$L$z%)T8|  DAT*mt <> 0 and not isnull(ld_valueamt) then ld_rid = of_insertactivity(ls_metriccode, ls_metricleveltype, ld_refrid, ldt_startdate, & left(string(ld_valueamt), 12), & ls_datacode, ldt_enddate, ls_materialcode, ls_null, ls_referenceCode, ls_referenceType, & ld_valueamt, ls_null, "WT%", ll_row, importerr, true) if ld_rid = -5 then exit else of_putinmessagelog(ll_row, "Data Error", "rule_penetration can not be a value of zero or NULL") DAT* end if next iw_imain.wf_progress(1) lds_tdata.of_filter("") return ll_rc end function public function long of_createardevices ();/* Modified Jan 31, 2005 by Steve Oliphant Changes made to support NIF 3.0 data imports. */ //driver variables long ll_row, ll_rc = -1, ll_iraprc integer li_ret string ls_condition boolean lb_insert str_ierror importerr ll_row = 0 //temp table n_ds_nei_import_temp_base lds_tdata //rapids table being updated d_ds_nei_import_rapids_baDAT*se lds_irapids //rapids variables double ld_rid string ls_code = "@" double ld_sourcerid string ls_id string ls_name string ls_groupflag = "Y" string ls_groupType = "DEVICE" string ls_tribal_code // NIF 3.0 only //temp variables string ls_scc7 = "" string ls_scc lds_tdata = ids_emisunitdevices lds_irapids = ids_rapdevices lds_tdata.of_sort("scc7") lds_tdata.of_filter("not isnull(source_rid)") ll_rc = lds_tdata.rowcount() iw_imain.wf_progress(0) for ll_row = 1 to ll_rc DAT* iw_imain.wf_progress(ll_row/ll_rc) lb_insert = false if ls_scc7 = lds_tdata.object.scc7[ll_row] then continue else ls_scc7 = lds_tdata.object.scc7[ll_row] end if if isnull(ls_scc7) then of_putinmessagelog(ll_row, "Data Error", "SCC7 column is null") continue end if ls_id = ls_scc7 ld_sourcerid = lds_tdata.object.source_rid[ll_row] if ld_sourcerid = 0 then of_putinmessagelog(ll_row, "Data Error", "Source RID not found in " + lds_tdata.is_description) DAT* continue end if //retrieve rapids data ll_iraprc = lds_irapids.retrieve(ls_id, ls_code, ld_sourceRID ) if ll_iraprc = 0 then ll_iraprc = lds_irapids.insertrow(0) lb_insert = true elseif ll_iraprc < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to connect to database") continue end if ls_scc = lds_tdata.object.scc[ll_row] //assign dynamic variables ls_condition = "rap_scc_ams_codes.code = '" + ls_scc + "'" ls_name = left(string(f_dlookup("raDAT*p_scc_ams_codes.desc_3", "rap_scc_ams_codes", ls_condition)), 50) if isnull(ls_name) or ls_name = "" then of_putinmessagelog(ll_row, "Data Error", "Unable to find desc3 data for " + ls_condition) continue end if //add to the table if lb_insert then ld_rid = f_get_sequence() li_ret = of_setvalue(lds_irapids, ll_iraprc, "rid", ld_rid, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "id", ls_id, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc,DAT* "source_rid", ld_sourceRid, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "code", ls_code, importerr, true) // lds_irapids.object.rid[ll_iraprc] = ld_rid // lds_irapids.object.id[ll_iraprc] = ls_id // lds_irapids.object.source_rid[ll_iraprc] = ld_sourceRid // lds_irapids.object.code[ll_iraprc] = ls_code else ld_rid = lds_irapids.object.rid[ll_iraprc] end if li_ret = of_setvalue(lds_irapids, ll_iraprc, "name", ls_name, importerr, true) li_ret = of_setvalue(lDAT*ds_irapids, ll_iraprc, "group_flag", ls_groupflag, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "group_type", ls_grouptype, importerr, true) // lds_irapids.object.name[ll_iraprc] = ls_name // lds_irapids.object.group_flag[ll_iraprc] = ls_groupflag // lds_irapids.object.group_type[ll_iraprc] = ls_grouptype //update the temp table with the source rid //lds_tdata.object.source_rid[ll_row] = ld_sourceRID lds_tdata.object.device_rid[ll_row] = ld_rid if of_updatetemptablDAT*e(lds_tdata, importerr) < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to save Device Rid to " + lds_tdata.is_description) continue end if /* Write rap_tmp_emis_unit_devices.device_RID to the device_RID column in the rap_tmp_processes table where rap_tmp_processes.state_FIPS = rap_tmp_emis_unit_devices.state_FIPS and rap_tmp_processes.county_FIPS = rap_tmp_emis_unit_devices.county_FIPS and the first 7 digits of rap_tmp_processes.SCC = rap_tmp_emis_uniDAT*t_devices.SCC7 and rap_tmp_processes.tribal_code = rap_tmp_emis_unit_devices.tribal_code Added the check on change of tribal code. */ ids_processes.is_scc = ls_scc7 ids_processes.is_tribal_code = lds_tdata.object.tribal_code[ll_row] ids_processes.of_scan("UPDATE DEVICE RID", ld_Rid) if of_updatetemptable(ids_processes, importerr) < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to save Source Rid to " + ids_processes.is_description) continue end if DAT* of_updaterapidstable(lds_irapids, importerr, lb_insert) next lds_irapids.reset() iw_imain.wf_progress(1) lds_tdata.of_filter("") return ll_rc end function public function long of_createarcontrolequipmentactivitydata ();/* Modified Jan 31, 2005 by Steve Oliphant Changes made to support NIF 3.0 data imports. */ //driver variables long ll_row, ll_rc = -1, ll_iraprc integer li_ret string ls_condition boolean lb_insert str_ierror importerr ll_row = 0 //temp table n_ds_DAT*nei_import_temp_base lds_tdata //rapids variables double ld_rid datetime ldt_creationDate string ls_metriccode string ls_metricleveltype double ld_refrid, ld_value datetime ldt_startdate string ls_userid datetime ldt_enddate string ls_referenceCode string ls_referenceType = "IMPORT" double ld_valueamt string ls_valueunitcode string ls_datacode = '05' string ls_value string ls_materialcode string ls_tribal_code // NIF 3.0 only //other variable string ls_pollutantcode strDAT*ing ls_unique = "" string ls_scc string ls_null datetime ldt_null double ld_null setnull(ls_null) setnull(ldt_null) setnull(ld_null) //check to make record available for ldt_startdate and ldt_enddate if ids_emisactivities.rowcount() < 1 then of_putinmessagelog(-1, "Data Error", "Unable to find record in emission file for state FIPS code: " + & is_statefips + " and county FIPS code: " + is_countyfips) return 0 end if ldt_startdate = of_converttodate(ids_emisactiviDAT*ties.object.start_date[1]) ldt_enddate = of_converttodate(ids_emisactivities.object.end_date[1]) ls_userid = left(gs_user_id, 4) ldt_creationDate = datetime(today(), now()) lds_tdata = ids_ctrlequipactivities lds_tdata.of_sort("scc, pollutant_code") lds_tdata.of_filter("not isnull(process_rid)") ll_rc = lds_tdata.rowcount() iw_imain.wf_progress(0) for ll_row = 1 to ll_rc iw_imain.wf_progress(ll_row/ll_rc) lb_insert = false if isnull(ldt_startdate) then of_putinmessagDAT*elog(ll_row, "Data Error", "start_date column is null") continue end if if isnull(ldt_enddate) then of_putinmessagelog(ll_row, "Data Error", "end_date column is null") continue end if ls_scc = lds_tdata.object.scc[ll_row] if isnull(ls_scc) then of_putinmessagelog(ll_row, "Data Error", "scc column is null") continue end if ls_pollutantcode = lds_tdata.object.pollutant_code[ll_row] if isnull(ls_pollutantcode) then of_putinmessagelog(ll_row, "Data Error",DAT* "pollutant_code column is null") continue end if ls_tribal_code = lds_tdata.object.tribal_code[ll_row] if isnull(ls_tribal_code) then ls_tribal_code = "" if ls_unique = ls_scc + " " + ls_pollutantcode + ls_tribal_code then continue else ls_unique = ls_scc + " " + ls_pollutantcode + ls_tribal_code end if ls_referenceCode = 'NEI ' + string(ids_sources.object.inventory_year[1]) ls_metricleveltype = "STR" ld_refrid = lds_tdata.object.output_stream_rid[ll_row] DAT*if ld_refrid = 0 or isnull(ld_refrid) then of_putinmessagelog(ll_row, "Data Error", "Output Stream RID not found in " + lds_tdata.is_description) continue end if if not ids_conversionlookupcodes.of_findrapidsvalue("POLLUTANT_CODE", ls_pollutantcode, ls_materialcode) then of_putinmessagelog(ll_row, "Data Error", "Pollutant Code with value:" + ls_pollutantcode + " is not in conversion lookup table") continue end if ls_valueunitcode = "WT%" //update primary_pct_cntrl_effDAT* //****************************************************************************************** ld_value = lds_tdata.object.primary_pct_cntrl_eff[ll_row] if ld_value <> 0 and not isnull(ld_value) then ld_rid = of_insertactivity('CNTL EFFIC', ls_metricleveltype, ld_refrid, ldt_startdate, left(string(ld_value), 12), & ls_datacode, ldt_enddate, ls_materialcode, ls_null, ls_referenceCode, ls_referenceType, & ld_value, ls_null, ls_valueunitcode, ll_row, importerr, truDAT*e) if ld_rid = -5 then exit else of_putinmessagelog(ll_row, "Data Error", "primary_pct_cntrl_eff can not be a value of zero or NULL") end if //update pct_capture_efficiency //****************************************************************************************** ld_value = lds_tdata.object.pct_capture_efficiency[ll_row] if ld_value <> 0 and not isnull(ld_value) then ld_rid = of_insertactivity('CAPT EFFIC', ls_metricleveltype, ld_refrid, ldt_startdate, left(string(ld_vaDAT*lue), 12), & ls_datacode, ldt_enddate, ls_materialcode, ls_null, ls_referenceCode, ls_referenceType, & ld_value, ls_null, ls_valueunitcode, ll_row, importerr, true) if ld_rid = -5 then exit else of_putinmessagelog(ll_row, "Data Error", "pct_capture_efficiency can not be a value of zero or NULL") end if ls_metricleveltype = "PRO" ld_refrid = lds_tdata.object.process_rid[ll_row] if ld_refrid = 0 or isnull(ld_refrid) then of_putinmessagelog(lDAT*l_row, "Data Error", "Process RID not found in " + lds_tdata.is_description) continue end if //update primary_device_type_cd //****************************************************************************************** ls_value = lds_tdata.object.primary_device_type_cd[ll_row] if ls_value <> "" and not isnull(ld_value) then ld_rid = of_insertactivity('EPA CNTL CO', ls_metricleveltype, ld_refrid, ldt_startdate, ls_value, & ls_null, ldt_null, ls_null, ls_null, ls_nulDAT*l, ls_referenceType, & ld_null, '1ST', ls_null, ll_row, importerr, true) if ld_rid = -5 then exit //update secondary_device_type_cd //****************************************************************************************** ls_value = lds_tdata.object.secondary_device_type_cd[ll_row] if ls_value <> "" and not isnull(ls_value) then ld_rid = of_insertactivity('EPA CNTL CO', ls_metricleveltype, ld_refrid, ldt_startdate, ls_value, & ls_null, ldDAT*t_null, ls_null, ls_null, ls_null, ls_referenceType, & ld_null, '2ND', ls_null, ll_row, importerr, true) if ld_rid = -5 then exit else of_putinmessagelog(ll_row, "Data Error", "secondary_device_type_cd can not be NULL") end if else of_putinmessagelog(ll_row, "Data Error", "primary_device_type can not be NULL") end if next iw_imain.wf_progress(1) lds_tdata.of_filter("") return ll_rc end function public function lDAT*ong of_createorthroughputactivities ();/* Modified Jan 31, 2005 by Steve Oliphant Changes made to support NIF 3.0 data imports. Section 5.2.2.6 Create Emission Period Activity Data First table in this section of the design document. */ //driver variables long ll_row, ll_rc = -1, ll_iraprc integer li_ret string ls_condition boolean lb_insert str_ierror importerr string ls_null setnull(ls_null) ll_row = 0 //temp table n_ds_nei_import_temp_base lds_tdata //rapids tabDAT*le being updated d_ds_nei_import_rapids_base lds_irapids //rapids variables double ld_rid datetime ldt_creationDate string ls_metriccode = "VMT" string ls_metricleveltype = "STR" double ld_refrid datetime ldt_start string ls_userid datetime ldt_end string ls_referenceCode double ld_valueamt string ls_valueunitcode string ls_datacode = '05' string ls_material = "VEHICLE" string ls_tribal_code //other variable string ls_unique = "" string ls_throughput string ls_scc ls_uDAT*serid = left(gs_user_id, 4) ldt_creationDate = datetime(today(), now()) lds_tdata = ids_emisperiodactivities //lds_irapids = ids_rapactivities lds_tdata.of_sort("scc, material, start_date, end_date, tribal_code") lds_tdata.of_filter("not isnull(input_stream_rid)") ll_rc = lds_tdata.rowcount() iw_imain.wf_progress(0) for ll_row = 1 to ll_rc iw_imain.wf_progress(ll_row/ll_rc) lb_insert = false ldt_start = of_converttodate(lds_tdata.object.start_date[ll_row]) if isnull(ldt_start) DAT*then of_putinmessagelog(ll_row, "Data Error", "start_date column is null") continue end if ldt_end = of_converttodate(lds_tdata.object.end_date[ll_row]) if isnull(ldt_end) then of_putinmessagelog(ll_row, "Data Error", "end_date column is null") continue end if ls_scc = lds_tdata.object.scc[ll_row] if isnull(ls_scc) then of_putinmessagelog(ll_row, "Data Error", "scc column is null") continue end if /* Assign Inventory Year = rap_tmp_sources.inventory_DAT*year where rap_tmp_sources.state_FIPS = rap_tmp_emis_period_activities.state_FIPS and rap_tmp_sources.county_FIPS = rap_tmp_emis_period_activities.county_FIPS and rap_tmp_sources.tribal_code = rap_tmp_emis_period_activities.tribal_code. */ string ls_testtc ls_testtc = lds_tdata.object.ls_tribal_code[ll_row] if isnull(ls_testtc) then ls_testtc = "" if ls_tribal_code <> ls_testtc then ls_tribal_code = lds_tdata.object.ls_tribal_code[ll_row] if isnull(ls_tribaDAT*l_code) then ls_tribal_code = "" ls_referenceCode = "NEI " + string(ids_sources.object.inventory_year[1]) end if // if ls_unique = string(ldt_start) + " " + string(ldt_end) + " " + ls_scc + " " + ls_material then if ls_unique = string(ldt_start) + " " + string(ldt_end) + " " + ls_scc + " " + ls_tribal_code then continue else ls_unique = string(ldt_start) + " " + string(ldt_end) + " " + ls_scc + " " + ls_tribal_code end if ld_refrid = lds_tdata.object.input_stream_rid[DAT*ll_row] if ld_refrid = 0 then of_putinmessagelog(ll_row, "Data Error", "Input Stream RID not found in " + lds_tdata.is_description) continue end if // //retrieve rapids data // ll_iraprc = lds_irapids.retrieve(ld_refrid, ls_metriccode, ls_metricleveltype, ldt_start) // // if ll_iraprc = 0 then // ll_iraprc = lds_irapids.insertrow(0) // lb_insert = true // elseif ll_iraprc < 0 then // of_putinmessagelog(ll_row, "System Error", "Unable to connect to database") // continDAT*ue // end if ld_valueamt = lds_tdata.object.actual_throughput[ll_row] ls_throughput = lds_tdata.object.throughput_unit_num[ll_row] if isnull(ls_throughput) then of_putinmessagelog(ll_row, "Data Error", "emission_unt_numerator column is null") continue elseif not ids_conversionlookupcodes.of_findrapidsvalue("UNIT_CODE", ls_throughput, ls_valueunitcode) then of_putinmessagelog(ll_row, "Data Error", "UNIT_CODE with value:" + ls_throughput + " is not in conversion lookup taDAT*ble") continue end if //add to the table // if lb_insert then // ld_rid = f_get_sequence() // li_ret = of_setvalue(lds_irapids, ll_iraprc, "rid", ld_rid, importerr, true) // li_ret = of_setvalue(lds_irapids, ll_iraprc, "metric_code", ls_metriccode, importerr, true) // li_ret = of_setvalue(lds_irapids, ll_iraprc, "metric_level_type", ls_metricleveltype, importerr, true) // li_ret = of_setvalue(lds_irapids, ll_iraprc, "ref_rid", ld_refrid, importerr, true) // li_ret = of_setvDAT*alue(lds_irapids, ll_iraprc, "start_date_time", ldt_start, importerr, true) // li_ret = of_setvalue(lds_irapids, ll_iraprc, "creation_date_time", ldt_creationDate, importerr, true) // else // ld_rid = lds_irapids.object.rid[ll_iraprc] // end if // // li_ret = of_setvalue(lds_irapids, ll_iraprc, "material_code", "VEHICLE", importerr, true) // li_ret = of_setvalue(lds_irapids, ll_iraprc, "data_code", ls_datacode, importerr, true) // li_ret = of_setvalue(lds_irapids, ll_iraprc, "user_id", DAT*ls_userid, importerr, true) // li_ret = of_setvalue(lds_irapids, ll_iraprc, "end_date_time", ldt_end, importerr, true) // li_ret = of_setvalue(lds_irapids, ll_iraprc, "reference_code", ls_referenceCode, importerr, true) // li_ret = of_setvalue(lds_irapids, ll_iraprc, "value_amt", ld_valueamt, importerr, true) // li_ret = of_setvalue(lds_irapids, ll_iraprc, "value_unit_code", ls_valueunitcode, importerr, true) if ld_valueamt <> 0 and not isnull(ld_valueamt) then ld_rid = of_insertactivDAT*ity(ls_metriccode, ls_metricleveltype, ld_refrid, ldt_start, string(ld_valueamt), & ls_datacode, ldt_end, ls_material, ls_null, ls_referenceCode, "IMPORT", & ld_valueamt, ls_null, ls_valueunitcode, ll_row, importerr, true) if ld_rid = -5 then exit else of_putinmessagelog(ll_row, "Data Error", "actual throughput can not be a value of zero or NULL") end if //update the temp table with the source rid //lds_tdata.object.device_rid[ll_row] = ld_sourceRDAT*ID // lds_tdata.object.process_rid[ll_row] = ld_rid // if of_updatetemptable(lds_tdata, importerr) < 0 then // of_putinmessagelog(ll_row, "System Error", "Unable to save Process Rid to " + lds_tdata.is_description) // continue // end if //of_updaterapidstable(lds_irapids, importerr, lb_insert) next iw_imain.wf_progress(1) lds_tdata.of_filter("") return ll_rc end function public function long of_createorstreams ();/* Modified Jan 31, 2005 by Steve Oliphant Changes made DAT*to support NIF 3.0 data imports. Section 5.2.2.5 Create/Verify Streams of the design document. */ //driver variables long ll_row, ll_rc = -1, ll_iraprc integer li_ret string ls_condition boolean lb_insert str_ierror importerr double ld_null setnull(ld_null) ll_row = 0 //temp table n_ds_nei_import_temp_base lds_tdata //rapids table being updated d_ds_nei_import_rapids_base lds_irapids //rapids variables double ld_rid string ls_code = "@" string ls_id double ld_procDAT*essrid string ls_tribal_code string ls_unique //temp variables string ls_scc3 = "" string ls_scc = "" lds_tdata = ids_processes //lds_irapids = ids_rapstreams lds_tdata.of_sort("scc") lds_tdata.of_filter("not isnull(process_rid)") ll_rc = lds_tdata.rowcount() iw_imain.wf_progress(0) for ll_row = 1 to ll_rc iw_imain.wf_progress(ll_row/ll_rc) lb_insert = false ls_scc = lds_tdata.object.scc[ll_row] ls_tribal_code = lds_tdata.object.tribal_code[ll_row] if isnull(ls_tribal_cDAT*ode) then ls_tribal_code = "" if ls_unique = ls_scc + ls_tribal_code then continue else ls_unique = ls_scc + ls_tribal_code end if if isnull(ls_scc) then of_putinmessagelog(ll_row, "Data Error", "SCC column is null") continue end if ld_processrid = lds_tdata.object.process_rid[ll_row] ls_scc = lds_tdata.object.scc[ll_row] //check for input stream //****************************************************************************************** ls_id = '01DAT*-IN' ld_rid = of_insertstreamactivity(ls_code, ls_id, ld_processRid, ld_null, ll_row, importerr, true) if ld_rid = -5 then exit //update the temp table with the source rid //lds_tdata.object.device_rid[ll_row] = ld_sourceRID lds_tdata.object.input_stream_rid[ll_row] = ld_rid li_ret = of_updatetemptable(lds_tdata, importerr) if li_ret = -5 then exit elseif li_ret < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to save Process Rid to " + lds_tdata.is_description)DAT* continue end if ids_emisperiodactivities.is_scc = ls_scc ids_emisperiodactivities.is_tribal_code = ls_tribal_code ids_emisperiodactivities.of_scan("UPDATE STREAM RID", ld_Rid) li_ret = of_updatetemptable(ids_emisperiodactivities, importerr) if li_ret = - 5 then exit elseif li_ret < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to save Input Stream Rid to " + ids_emisperiodactivities.is_description) continue end if //*************************DAT****************************************************************** //check for output stream //****************************************************************************************** ls_id = '01-OUT' ld_rid = of_insertstreamactivity(ls_code, ls_id, ld_null, ld_processRid, ll_row, importerr, true) if ld_rid = -5 then exit //update the temp table with the source rid lds_tdata.object.output_stream_rid[ll_row] = ld_rid li_ret = of_updatetemptable(lds_tdata, importerr) if li_ret DAT*= -5 then exit elseif li_ret < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to save Process Rid to " + lds_tdata.is_description) continue end if ids_emisactivities.is_scc = ls_scc ids_emisactivities.is_tribal_code = ls_tribal_code ids_emisactivities.of_scan("UPDATE STREAM RID", ld_Rid) li_ret = of_updatetemptable(ids_emisactivities, importerr) if li_ret = -5 then exit elseif li_ret < 0 then of_putinmessagelog(ll_row, "System Error", "Unable tDAT*o save Output Stream Rid to " + ids_emisactivities.is_description) continue end if //****************************************************************************************** next iw_imain.wf_progress(1) lds_tdata.of_filter("") return ll_rc end function public function long of_createorsources ();/* Modified Jan 31, 2005 by Steve Oliphant Changes made to support NIF 3.0 data imports. Section 5.2.2.2 Create/Verify Sources of the design doucment. */ //driver vaDAT*riables long ll_row, ll_rc, ll_iraprc string ls_condition boolean lb_insert integer li_ret str_ierror importerr long ll_sourcerid ll_row = 0 //temp table n_ds_nei_import_temp_base lds_tdata //rapids table being updated d_ds_nei_import_rapids_base lds_irapids //rapids variables double ld_rid string ls_code = "@" string ls_id string ls_Name string ls_type datetime ldt_startopdate datetime ldt_endopdate string ls_groupflag = "Y" string ls_groupType = "SOURCE" //temp DAT*variables string ls_scc4 = "" integer li_year string ls_scc string ls_naics string ls_tribal_code // 1/31/05 SJO lds_tdata = ids_sources lds_irapids = ids_rapsources lds_tdata.of_sort("tribal_code, scc4") // 1/31/05 SJO ll_rc = lds_tdata.rowcount() iw_imain.wf_progress(0) for ll_row = 1 to ll_rc iw_imain.wf_progress(ll_row/ll_rc) lb_insert = false if ls_scc4 = lds_tdata.object.scc4[ll_row] then ls_tribal_code = lds_tdata.object.tribal_code[ll_row] continue DAT* else ls_scc4 = lds_tdata.object.scc4[ll_row] ls_tribal_code = lds_tdata.object.tribal_code[ll_row] if isnull(ls_tribal_code) then ls_tribal_code = "" end if if isnull(ls_scc4) then of_putinmessagelog(ll_row, "Data Error", "SCC4 column is null") continue end if if ls_tribal_code <> "000" then ls_id = is_statefips + is_countyfips + ls_scc4 + "M" + ls_tribal_code else ls_id = is_statefips + is_countyfips + ls_scc4 + "M" end if //retrieve rapids data DAT* ll_iraprc = lds_irapids.retrieve(ls_id) lb_insert = false if ll_iraprc = 0 then ll_iraprc = lds_irapids.insertrow(0) lb_insert = true elseif ll_iraprc < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to connect to database") continue else //added code for bulk deletes ll_sourcerid = lds_irapids.object.rid[1] if of_bulkdeletesources(ll_sourcerid, ls_id, ll_row) > 0 then //only reset to if all sources are deleted ll_iraprc = lds_irapids.reset() DAT* ll_iraprc = lds_irapids.insertrow(0) lb_insert = true end if end if ls_scc = lds_tdata.object.scc[ll_row] //assign dynamic variables ls_condition = "rap_scc_ams_codes.code = '" + ls_scc + "'" ls_name = string(f_dlookup("rap_scc_ams_codes.desc_2", "rap_scc_ams_codes", ls_condition)) if isnull(ls_name) or ls_name = "" then of_putinmessagelog(ll_row, "Data Error", "Unable to find desc2 data for " + ls_condition) continue end if ls_type = lds_tdata.object.sDAT*ource_type[ll_row] li_year = lds_tdata.object.inventory_year[ll_row] ldt_startopdate = datetime(date(li_year,1,1)) ldt_endopdate = datetime(date(li_year, 12, 31)) if isnull(ls_naics) then ls_naics = "" //add to the table if lb_insert then ld_rid = f_get_sequence() li_ret = of_setvalue(lds_irapids, ll_iraprc, "rid", ld_rid, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "id", ls_id, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "geograpDAT*hic_state_rid", id_staterid, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "geographic_county_rid", id_countyrid, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "code", ls_code, importerr, true) //lds_irapids.object.rid[ll_iraprc] = ld_rid // lds_irapids.object.id[ll_iraprc] = ls_id // lds_irapids.object.geographic_state_rid[ll_iraprc] = id_staterid // lds_irapids.object.geographic_county_rid[ll_iraprc] = id_countyrid // lds_irapids.object.code[ll_iDAT* raprc] = ls_code else ld_rid = lds_irapids.object.rid[ll_iraprc] end if li_ret = of_setvalue(lds_irapids, ll_iraprc, "name", left(ls_name, 50), importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "type", ls_type, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "begin_operation_date", ldt_startopdate, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "end_operation_date", ldt_endopdate, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraDAT*prc, "group_flag", ls_groupflag, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "group_type", ls_grouptype, importerr, true) // lds_irapids.object.name[ll_iraprc] = ls_name // lds_irapids.object.type[ll_iraprc] = ls_type // lds_irapids.object.begin_operation_date[ll_iraprc] = ldt_startopdate // lds_irapids.object.end_operation_date[ll_iraprc] = ldt_endopdate // ldS_irapids.object.group_flag[ll_iraprc] = ls_groupflag // ldS_irapids.object.group_type[ll_iraprc] = ls_grouptypDAT*)t81  8|(@(8z'88!| L ,(,*L ,*$1| 80,*$6)8 )8$1H)8*+",6-T.n/0134B7^9:;?@A<P@UVZ\]^$_0`Danbrdveghi(m4pzqrst,w0xvyz{D|DAT* N$(n4 v 6 ^  . 2 J     $ 0 J | d ll_rowll_rcll_iraprcls_conditionlb_insertli_retimporterrll_sourceridlds_tdatalds_irapidsld_ridls_codels_idls_namels_typels_naicsldt_startopdateldt_endopdatels_groupflagls_grouptypels_scc4li_yearls_sccls_tribal_codels_reference_codegs_user_idsqlcaDAT* ,6= %GT $^ &j qy            (@*@(8DAT* @YSOURCEids_sourcesids_rapsources(tribal_code, scc4of_sort!Rrowcountdiw_imain_naxwf_progressxobjects@tribal_code__get_attribute_item@scc4l@Data ErrorSCC4 column is nullof_putinmessagelog#3is_statefipsP is_countyfipshis_sourcetype 000retrieveinsertrowSystem ErrorUnable to connect to database#3DAT*@ridof_bulkdeletesourcesM reset,@sccrap_scc_ams_codes.code = ''rap_scc_ams_codes.desc_2rap_scc_ams_codesUnable to find desc2 data for #3@source_type@inventory_year@naics_primaryof_setvalue$$id$$geographic_state_ridid_stateridY$$geographic_county_ridid_countyrid$$code$$@name$$type$$DAT*begin_operation_date$$end_operation_date$$group_flag$$group_type$$@source_rid__set_attribute_itemcof_updatetemptableUnable to save Source Rid to is_description #3ids_emisunitdevicesis_scc#UPDATE SOURCE RIDof_scan@" #3of_updaterapidstable%\NEISQL DB Insert Error #3,x 8 \ p DAT*           H ` x       $ 4 < D P        0 < h p           4 H P x       , 4 < D L T t  DAT*      H1$$@$8H0)X88`0)8)8$1H)81r $IIk)89} $809n98]L 5L "808#L$z%)h8n p$8HDAT*09nx98^8z%L 1(@(8z(<n p8z%L 1(@(8z(8080)8n  6L 1 6)81"1)89}`1`8080)8n $809n98^8z%8+z&DAT* 8-08F06M8(@(812o@o988"x808Xz%)x8n  N$I80L 19)8}80 69)8}80L 19)8}80 69)8} $DAT*"809n98]80 69)8}8069)8}8069)8}8069)8}$8$0L )H98)d8}1<vr 1<808l$DAT*$z%)8n $809n98^(80$6$6$80L 1),84$)<8}1<r > 1<> 808lD$L$z%)T8n )t81n r )8$1H)DAT*&880)8 %&"'6(T)r*+,-/0`1x2678498:<=p>z?BEGHIJK2L\O`QRS*TFUtYxZ[\] ^b_`cd0erfjk2lZmnnropz{ |(}J~l: > n r d ll_rowll_rcll_iraprcli_retls_conditionlb_insertimporterrlds_tdatalds_irapidsld_ridls_codeld_deviceridls_idls_groupflagls_grDAT*(ouptypels_namels_sccls_tribal_codels_scc3ls_unique& 3= %G $Q &] dl y       @YPROCESSids_processesDAT**ids_rapprocesses,scc3of_sort!Mnot isnull(device_rid)of_filter_gr wrowcountypeiw_imains_twf_progressobject @device_rid__get_attribute_itemData ErrorDevice RID not found in is_description< of_putinmessagelog#T@ SCC3 column is null#Tretrieve+insertrownSystem ErrorUnable to connect to database#T@sccrap_scc_amDAT*,s_codes.code = ''rap_scc_ams_codes.desc_4rap_scc_ams_codesUnable to find desc4 data for #Tridof_setvalue$id$$code$@group_flag$group_type$name$scc_ams_code$@process_rid__set_attribute_item}0of_updatetemptablePUnable to save Process Rid to < #T@tribal_codeids_ctrlequipactivities is_tribal_code) is_scc# DAT*.UPDATE PROCESS RIDof_scan@# P < #Tof_updaterapidstable%\reset| w$ @ X         L h p x       x            H d         DAT*0 , 4 < D L T t     ^x1@8@8@8 @8($)<8118D08O$z%8z&$z&)81$$8019n(98)D8L$T$8\01DAT*29nh98)p8 $ 80)8 80)8 )8$1H)81f $IIk)89} $809n$98^8,0 0$809n8986t6zn @$80DAT*49nH986t^8D08P0)d8 l$8t09n98] $809n98^$$809n98(@(88z% $809n98]8080 $80DAT*69n 98] L1666L1JH8L 5P L 5XZ8`08m$$z%8z&)8L 58D080),8840860 8$8@09nX98] L1666L1J`8L 5hV L 5p8`0DAT*88mx$$z%8z&)8L 58D080)88080 $809n 98] L1666L1J(8L 50 H L 58 8`08m@$H$z%8Pz&)p8H L 5xH 8D080)88080DAT*: $809n98] L1666L1J8L 5   L 5h 8`08m$$z%8z&)88 L 5@ 8D08H0)88080 $809n98]L5L#! 80 806L5DAT*<L1(@(86 56666L166 9J8L 5  & 8D080)<8 D$8L09nh98]L5pL#!\ 8x0 8~06L5L1(@(86 56666L166 9J8L 5X DAT*>  8D080)8 $809n 98]L5L#!8 0 8'06L5L1(@(86 56666L166 9J48L 5@ 8D08H0)8 $809n98]L5L#!8DAT*@0 806L5L1(@(86 56666L166 9J8L 5 F8D080)( 880 084 0 8 $8@ 09nP 98]L5X L#! 8` 06L5L1(@(8656666L1DAT*B66 9Jl 8L 5x  8D08 0) 8  $8 09n 98]L5 L#! 8 06L5L1(@(8656666L166 9J 8L 5  8D08 0)0 8\8 $1H)@ 8 8,DAT*D0)H 8*Fb'~(*-.^0123 4$5J6t79:;<f=j>nABCFG<HIJN:OLP^RSTUV XVYj^_`ab>cNdRefghnopqXrstuw x }H ~Z l    d x & 8 & l D X \ ,FXFXjvDAT*F 0Ndt ll_rowll_rcll_iraprcll_nullli_retls_conditionls_nulllb_insertld_nullld_retldt_nullimporterrlds_tdatald_ridld_processridld_relativeactivityamountld_valueld_inputstreamridls_beginmonthls_endmonthls_yearls_sccldt_startdateldt_enddatels_metricleveltypels_datacodels_referencecodels_referencetypels_valueunitcodels_valuetypels_tribal_codel'DAT*H. ; CM U \ e %o $y       ul ve ro  E ne % de6 ccG raX DAT*Jabe P  05IMPORTids_emisactivitiesrowcount0Data ErrorUnable to find record in emission file for state FIPS code: is_statefipsact  and county FIPS code: is_countyfipsof_putinmessagelog#object @start_date__get_attribute_itemof_converttodate0@end_dateact0ids_processesxsccof_sort!not isnull(process_rid)of_filter 0iwDAT*L_imainwf_progress@tribal_code@@SCC column is null#@process_rid@ids_sources@inventory_yearNEI &@input_stream_ridec122@winter_throughput_pct8of_addprocessspecificschedule&(System ErrorUnable to retrieve ids_rapspecificschedules is_description  for winter throughpDAT*Nut percentt#dewinter_throughput_pct can not be a value of zero or NULLd#35@spring_throughput_pct0&(   for spring throughput percent#spring_throughput_pct can not be a value of zero or NULL#68@summer_throughput_pct&(   for summer throughput percent#summer_throughput_pct can not be a value of zero or NULL#9DAT*P110@fall_throughput_pct&(   for fall throughput percent6#fall_throughput_pct can not be a value of zero or NULL#PROAVG@annual_avg_days_per_week8DAY/WKD/W USE RATEof_insertactivity)annual_avg_days_per_week can not be a value of zero or NULL#@annual_avg_weeks_per_yearWK/YRW/Y USE RATE)Lannual_avg_weeks_per_year caDAT*Rn not be a value of zero or NULL#@annual_avg_hours_per_day$HR/DAYH/D USE RATE)annual_avg_hours_per_day can not be a value of zero or NULL#@annual_avg_hours_per_year HR/YRH/Y USE RATE)n annual_avg_hours_per_year can not be a value of zero or NULLJ#STRWT%@sulfur_content S CONTENT)sulfur_content can not be a value of zero or NULLDAT*l5#@ash_contentASH CONTENT)0ash_content can not be a value of zero or NULL# ( <      ( D L T h p          $ 0 8 @ H d l            H PX DAT*Vng process with error status //(of_scan() will return the Negative Value) //force argument to upper case as_action = upper(trim(as_action)) choose case as_action // ************************************************************************* case "UPDATE DEVICE RID" // ************************************************************************* if is_scc = left(this.object.scc[al_row], 7) & and is_tribal_code = this.object.tribal_code[al_row] then this.object.device_rid[al_rDAT*Xow] = double(aa_data) end if // ************************************************************************* case "UPDATE DEVICE RID BY SITE ID" // ************************************************************************* //added euid to list mkc 05/30/03 if is_siteid = this.object.site_id[al_row] and & is_euid = object.emission_unit_id[al_row] and & is_tribal_code = this.object.tribal_code[al_row] then this.object.device_rid[al_row] = double(aa_data) end if // *******DAT*Z****************************************************************** case "DETERMINE CONFIGURATION" // ************************************************************************* // ************************************************************************* case "DETERMINE CONFIGURATION" // ************************************************************************* /* Section 3.2.3.1 Insert Control Equipment ID into rap_tmp_processes table If primary_device_type_cd is not NULL aDAT*\nd secondary_device_type_cd is NULL then insert 'CE' + rap_tmp_cntrl_equip_activities.emission_unit_ID into the ce_ID column in the rap_tmp_processes table where rap_tmp_processes.state_FIPS = rap_tmp_cntrl_equip_activites.state_FIPS and rap_tmp_processes.county_FIPS = rap_tmp_cntrl_equip_activites.county_FIPS and rap_tmp_processes.site_ID = rap_tmp_cntrl_equip_activites.site_ID and rap_tmp_processes.emission_unit_ID = rap_tmp_cntrl_equip_activites.emission_unit_ID DAT*^ and rap_tmp_processes.process_ID = rap_tmp_cntrl_equip_activites.process_ID and rap_tmp_processes.tribal_code = rap_tmp_cntrl_equip_activites.tribal_code. If primary_device_type_cd is not NULL and secondary_device_type_cd is not NULL then insert 'CG' + rap_tmp_cntrl_equip_activities.emission_unit_ID into the ce_ID column and insert 'Y' into the control_group_flag column in the rap_tmp_processes table where rap_tmp_processes.state_FIPS = rap_tmp_cntrl_equip_activitesDAT*`.state_FIPS and rap_tmp_processes.county_FIPS = rap_tmp_cntrl_equip_activites.county_FIPS a nd rap_tmp_processes.site_ID = rap_tmp_cntrl_equip_activites.site_ID and rap_tmp_processes.emission_unit_ID = rap_tmp_cntrl_equip_activites.emission_unit_ID and rap_tmp_processes.process_ID = rap_tmp_cntrl_equip_activites.process_ID and rap_tmp_processes.tribal_code = rap_tmp_cntrl_equip_activites.tribal_code. */ is_euid = object.emission_unit_id[al_row] is_proDAT*bcessid = object.process_id[al_row] is_siteid = object.site_id[al_row] is_tribal_code = object.tribal_code[al_row] setnull(is_ceid) setnull(is_stackid) is_findstring = "'tribal_code = '" + is_tribal_code + & "' and emission_unit_id = '" + is_euid + & "' and process_id = '" + is_processid + & "' and site_id = '" + is_siteid + "'" is_sortstring = "tribal_code, emission_unit_id A, process_id A, site_id A, " + & "primary_device_tyDAT*dpe_cd D, secondary_device_type_cd D" inv_import.ids_ctrlequipactivities.of_sort(is_sortstring) if inv_import.ids_ctrlequipactivities.of_find(is_findstring) then is_primarydevicetypecd = string(inv_import.ids_ctrlequipactivities.of_getdata("primary_device_type_cd")) is_secondarydevicetypecd = string(inv_import.ids_ctrlequipactivities.of_getdata("secondary_device_type_cd")) if len(is_primarydevicetypecd) > 0 and (is_secondarydevicetypecd = "" or isnull(is_secondarydevicetyDAT*fpecd)) then is_ceid = "CE" + string(inv_import.ids_ctrlequipactivities.of_getdata("emission_unit_id")) object.ce_id[al_row] = is_ceid elseif len(is_primarydevicetypecd) > 0 and len(is_secondarydevicetypecd) > 0 then is_ceid = "CG" + string(inv_import.ids_ctrlequipactivities.of_getdata("emission_unit_id")) object.ce_id[al_row] = is_ceid object.control_group_flag[al_row] = "Y" end if end if /* Section 3.2.3.2 Insert Emission Release Point ID DAT*hinto rap_tmp_processes table If only one unique emission_rel_point_ID is found then insert rap_tmp_emis_activites.emission_rel_point_ID into the stack_ID column in the rap_tmp_processes table where rap_tmp_processes.state_FIPS = rap_tmp_emis_activities.state_FIPS and rap_tmp_processes.county_FIPS = rap_tmp_emis_activities.county_FIPS and rap_tmp_processes.site_ID = rap_tmp_emis_activities.site_ID and rap_tmp_processes.emission_unit_ID = rap_tmp_emis_activitieDAT*js.emission_unit_ID and rap_tmp_processes.process_ID = rap_tmp_emis_activities.process_ID and rap_tmp_processes.tribal_code = rap_tmp_emis_activities.tribal_code. If more than one unique emission_rel_point_ID is found then insert 'SG' + rap_tmp_emis_activities.emission_unit_ID into the stack_ID column and insert 'Y' into the stack_group_flag column in the rap_tmp_processes table where rap_tmp_processes.state_FIPS = rap_tmp_emis_activities.state_FIPS and rap_tmDAT*p_processes.county_FIPS = rap_tmp_emis_activities.county_FIPS and rap_tmp_processes.site_ID = rap_tmp_emis_activities.site_ID and rap_tmp_processes.emission_unit_ID = rap_tmp_emis_activities.emission_unit_ID and rap_tmp_processes.process_ID = rap_tmp_emis_activities.process_ID and rap_tmp_processes.tribal_code = rap_tmp_emis_activities.tribal_code. */ is_sortstring = "tribal_code, emission_unit_id A, process_id A, site_id A, " + & "emission_rel_point_id DDAT*n  , 8 X ` hpx       ( 08@ H p x      8 @    < D h p     4 @    ( 8 P X l x DAT*p      0 8 @ H  J1@8@8@8,(1o@o8 3@3$@$@8,$)@81D18H08S$z%8z&$z&)81$80)D88L0)t8)DAT*r|88$$8019n98(@(8z'$1H)81Xd $IIk) 89}$809n(98)D8.8H08L0)h8` p$8x09n98)88HDAT*t080)8` $809n98^8"H8H080)8`  $809n98Y  1"8H08($z%)08` 8$8@09nP98^D808Xz%5(@(8z(8Xz&5(DAT*v@(8z(8Xz&z&` .8Xz%5(@(8z(8Xz&5(@(8z(8Xz&z&t$8|0 (@(8)8#8H08 (@(8z'8z&)8`  $809n 98]L 5V8H08 @$z%)H8` !P$8X09DAT*xnl98^!!8"8H08t$z%)8` n$80!6)8#n8H08!z%8z&)8`  80$80!6")8# 8H08!6(@(8z'8z&)8`  #808,086"z%8Iz&O8^#1##!DAT*z 8K#z%8az&8z&$6)8  $80n8^$809n98]L5 L#!6   6 6L 5L1(@(81 o@o98656666L1669J<8L 5H2 d ` 8H08P0)8NDAT*|$1H)880)812*3F5b689;8ADBXCvDEFG<HfIKLMN*Q.RSTWXYZDcHdefij(lDpqrx.yvz}~ RV2jn  Z x > X  2 6 ` d d ll_rowll_rcll_iraprcli_retls_conditionlb_insertimporterrls_findlds_tdatald_ridldt_creationdatels_DAT*~metriccodels_metricleveltypeld_refridld_valueldt_startdatels_useridldt_enddatels_referencecodels_referencetypeld_valueamtls_valueunitcodels_datacodels_valuels_materialcodels_tribal_codels_pollutantcodels_uniquels_sccls_nullldt_nullld_nullll_materialls_throughputls_rapunitls_meascodegs_user_id& 3= %G O $DAT*Y ` q           - < MW ^ f o w DAT* z &(@ @STRIMPORT05ids_emisactivitiesrowcount4Data ErrorUnable to find record in emission file for state FIPS code: is_statefips3  and county FIPS code: is_countyfipsTof_putinmessagelog #ids_emisperiodactivities_dascc, start_date, end_date, materialof_sort!<not isnull(input_stream_rid)of_filter i4NEI ids_sourcesobject@invenDAT*tory_year__get_attribute_itemiw_imainwf_progress@start_dateof_converttodate0start_date column is null8#@end_date0end_date column is null#@sccscc column is null#@materialMaterial not found in is_description #@ls_tribal_code ids_conversionlookupcodesZ MATERIAL_CODEof_findrapidsvalueKMatDAT*erial Code with value: is not in conversion lookup table#@input_stream_ridOutput Stream RID not found in  #@throughput_unit_numThrough Unit Num not found in  #Z UNIT_CODEKUnit Code with value:#Z KUnable to retrieve. Unit code:#rap_units.meas_coderap_unitsrap_units.code = ''rapids_value_name = '' and rapids_field_name = 'MEASUREMENT_CODE_METRIC' and system_DAT*code = 'NEI'roZ of_find6Z system_value_name_1of_getdata9@actual_throughput8of_insertactivity)((8Actual Throughput can not be a value of zero or NULL# i, @     D t |          ( D h p         ( DAT*0 8 P t      @ H P l                < H    Z1@8@8@8,(1o@o8 3@3$@$@8,$840DAT*)880)8)8$1H)81l$IIk)89}$809n898)T8B8\08g0)8$809n98)88\080)8DAT*$809n98^J8\080)8$809n(98^8"8\080\$z%)d8 l$8t09n98^ J 80# 8$$8019n98(@(8z'# DAT*6!$809n98^!6!808z%z&8z&5(@(8z(8z&5(@(8z(8z&!z&8z& z&8z&|8z%z&8z&5(@(8z(8z&5(@(8z(8z&!z&8z& z&8z&,4$8"80"80DAT*@$"66)\8#68\08dz%8z&)8$809n98^8"8\08$z%)8N$8 06)8#N8\08 z%8z&)88 8@0 L$8T09nh98]L 5pDAT*8\08x$z%)8$809n98]L5L#!0  6 6L 5L1(@(81 o@o98656666L1669J8L5, Z 8\080)P8 8X0L5hL#!d  6 6L 5LDAT*1(@(81 o@o98656666L1669Jp8L5x`  8\080)8 80$809n98]L5L#!  6 6L 5L1(@(81 o@o98656666L1680DAT*9J 8L5  8\08 0)X8 8`0l$8t09n98]L5L#!\ 6 6L 5L1(@(81 o@o98656666L16809J8L5X8\080)8b$1DAT*H)880)856*7F9b:<>?@B*CPDzEGH IJ>LBMNORSTUF]J_`ade.nJo\ptu|6|26|JN`8 R  , 0 Z l L ` d  b | DX\d ll_rowll_rcll_iraprcli_retls_conditionlb_inserDAT*timporterrlds_tdatald_ridldt_creationdatels_metriccodels_metricleveltypeld_refridld_valueldt_startdatels_useridldt_enddatels_referencecodels_referencetypeld_valueamtls_valueunitcodels_datacodels_valuels_materialcodels_pollutantcodels_uniquels_sccls_nullldt_nullld_nullls_materialls_throughputls_tribal_codels_emission_typels_pollutantfieldnamels_uniquetribalcodegs_user_idw_imainDAT*& 3= %G $Q X i w        )    % 6@ (G O )XDAT* ` l z    &(@4@8 STRIMPORT05ids_emisactivitiessscc, pollutant_code, start_date, end_date, emission_type, tribal_codeof_sorto!znot isnull(output_stream_rid)of_filter rowcount$iw_imainwf_progressobject@start_date__get_attribute_item#of_cDAT*onverttodate_ba@Data Errorstart_date column is nullof_putinmessagelog#@end_date#@end_date column is null#@scc#scc column is null#@pollutant_code#Pollutant Code not found in is_descriptionM #@tribal_code#NEI ids_sources@inventory_year#@emission_type# is_table_typeWneiPOLLUTANT_CODEPOLLUTANT_CODE_NIF3ids_conversionlookupcodDAT*es^# of_findrapidsvalueKHPollutant Code with value: is not in conversion lookup table#@emission_unit_numerator#Emission Unit Num not found in M ## UNIT_CODEKHUnit Code with value:$#DOWNSTRMDIS@output_stream_rid9#Output Stream RID not found in M #@emission_num_val#0of_insertactivity)9emission_num_val for downstream discharge can noDAT*t be a value of zero or NULL#DISCHARGE)emission_num_val for discharge can not be a value of zero or NULL#RULE EFFECT@rule_effectiveness#WT%)8rule_efffectiveness can not be a value of zero or NULL#RULE PENET@rule_penetration8#)rule_penetration can not be a value of zero or NULL# ,     DAT*    8 T          ( \ d l        @ \        8 L h p     P hp x     X l    DAT*   >1($@$8H0)X88`0)8)8$1H)81p$IIk)89}$8H09n986zjl$8H09n98^808#0)LDAT*8l 6 T$8\09nh98]L 5p808x$z%)8l 6 6L 1)811)89}:1:8080)8l $809n98^8 z%8;z& 8=08V06PDAT*8(@(812o@o98  8"R808hz%)8l Q$I80L 19)8}80 69)8}8\0L 19)8}80 69)8} $809n98]DAT*80 69)8}8069)8}8069) 8}$80L )<98)X81.808`$z%)8l$6$$809n98^$8DAT*0L 1)8 $)(81J8080P$X$z%)`8l)8)8$1H)880)8 $%"&6'T(r)*+,-.b/f0j3458:;><N=ACDEFG H6K:MNOP QNURVZWvXYZ<_~`cd eLlmno*}.~PDAT*FJlpd ll_rowll_rcll_iraprcli_retls_conditionlb_insertimporterrlds_tdatalds_irapidsld_ridls_codeld_sourceridls_idls_namels_groupflagls_grouptypels_tribal_codels_scc7ls_scc|& 3= %G $Q &] dl y DAT*      @YDEVICEids_emisunitdevicesids_rapdevices0scc7of_sort!Mnot isnull(source_rid)of_filterIPS wrowcountipsiw_imaincouwf_progressobject@__get_attribute_itemh @Data ErrorSCC7 column is nullof_putinmessagelog: #7@source_ridSDAT*e /* If rap_tmp_sources.tribal_code is not NULL and rap_tmp_sources.tribal_code <> '000', enter the Tribal Code into the RAP_ACTIVITIES table. */ string reference_code reference_code = "NEI" + string(li_year) if ls_tribal_code <> "" and ls_tribal_code <> "000" then INSERT INTO ids_rapactivities ( creation_date_time, metric_code, metric_level_type, ref_rid, start_date_time, user_id, value, data_code, end_date_time, reference_DAT*code, reference_type ) VALUES ( datetime, 'TRIBAL CODE', 'SRC', :ld_rid, :ldt_startopdate, :gs_user_id, :ls_tribal_code, :ldt_endopdate, :reference_code ); end if //update the temp table with the source rid lds_tdata.object.source_rid[ll_row] = ld_rid li_ret = of_updatetemptable(lds_tdata, importerr) if li_ret = -5 then exit elseif li_ret < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to savDAT*e Source Rid to " + lds_tdata.is_description) continue end if ids_emisunitdevices.is_scc = ls_scc4 ids_emisunitdevices.is_tribal_code = ls_tribal_code ids_emisunitdevices.of_scan("UPDATE SOURCE RID", ld_Rid) li_ret = of_updatetemptable(ids_emisunitdevices, importerr) if li_ret = -5 then exit elseif li_ret < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to save Source Rid to " + ids_emisunitdevices.is_description) continue end if if of_updaterapidsDAT*table(lds_irapids, importerr, lb_insert) = -5 then exit end if next lds_irapids.reset() iw_imain.wf_progress(1) return ll_rc end function public function long of_createorprocesses ();/* Modified Jan 31, 2005 by Steve Oliphant Changes made to support NIF 3.0 data imports. Section 5.2.2.4 Create/Verify Processes of the design document. */ //driver variables long ll_row, ll_rc = -1, ll_iraprc integer li_ret string ls_condition boolean lb_insert str_ierror importeDAT*ource RID not found in is_description #7retrieve8insertrowSystem ErrorUnable to connect to database#7@sccrap_scc_ams_codes.code = ''rap_scc_ams_codes.desc_3rap_scc_ams_codesUnable to find desc3 data for #7ridof_setvalue$id$$code$@namerup$group_flag$group_type$@device_rid__set_attribute_item'of_updatetemptableDUnable to save DAT*Device Rid to  #7ids_processes9is_scc#is_tribal_code1@tribal_codeUPDATE DEVICE RIDof_scan@@DUnable to save Source Rid to 8 #7of_updaterapidstable)%hreset w( @ X           L T h p       DAT*             < X             ( P X `       R1@8@8@8($)<8118D08O$z%8z&$z&)81DAT*$$8019n(98)D8L$T$8\019nh98)p8,(1o@o8 3@3$@$@8$80)880)8)8$1H)81 $IIkDAT*) 89},8D08(0)D8 d8D08L0)d8 l$8t09nx98^8D080)8 $809n98^`8D080)8 $809n98^80DAT*8z%z&z& 8z%z&z&8$$8$019n498(@(8z' 8<0 @$8H09n\98]L 5hL "08D08p$z%)8 $806)8#8D08z%8z&)@8 8H0 DAT*Vforward global type n_ds_nei_import_rap_connections from d_ds_nei_import_rapids_base end type end forward global type n_ds_nei_import_rap_connections from d_ds_nei_import_rapids_base end type global n_ds_nei_import_rap_connections n_ds_nei_import_rap_connections event constructor;call super::constructor;//set the file extension and data source this.of_setDataType("txt", "d_nei_import_rap_connections") //override the default name //this.of_setFileName("ds_tmp_emis_rel_pt_devices") DAT*release 6; datawindow(units=0 timer_interval=0 color=16777215 processing=1 print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.prompt=no print.buttons=no print.preview.buttons=no grid.lines=0 ) header(height=68 color="536870912" ) summary(height=0 color="536870912" ) footer(height=0 color="536870912" ) detail(height=80 color="536870912" ) table(column=(typDAT*e=decimal(0) update=yes updatewhereclause=yes key=yes name=parent_ref_rid dbname="rap_group_members.parent_ref_rid" ) column=(type=decimal(0) update=yes updatewhereclause=yes key=yes name=child_ref_rid dbname="rap_group_members.child_ref_rid" ) retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"rap_group_members~" ) COLUMN(NAME=~"rap_group_members.parent_ref_rid~") COLUMN(NAME=~"rap_group_members.child_ref_rid~")WHERE( EXP1 =~"rap_group_members.parent_ref_rid~" OP =~"=~" EXP2 =~":an_parent~DAT*" LOGIC =~"and~" ) WHERE( EXP1 =~"rap_group_members.child_ref_rid~" OP =~"=~" EXP2 =~":an_child~" ) ) ARG(NAME = ~"an_parent~" TYPE = number) ARG(NAME = ~"an_child~" TYPE = number) " update="rap_group_members" updatewhere=1 updatekeyinplace=yes arguments=(("an_parent", number),("an_child", number)) ) text(band=header alignment="2" text="Parent Ref Rid"border="0" color="0" x="9" y="8" height="52" width="448" name=parent_ref_rid_t font.face="MS Sans Serif" font.height="-8" font.weightDAT*="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="Child Ref Rid"border="0" color="0" x="466" y="8" height="52" width="402" name=child_ref_rid_t font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=1 alignment="1" tabsequence=10 border="0" color="0" x="9" y="8" height="64" wDAT*idth="448" format="[general]" name=parent_ref_rid edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=2 alignment="1" tabsequence=20 border="0" color="0" x="466" y="8" height="64" width="402" format="[general]" name=child_ref_rid edit.limit=0 edit.case=any edit.focusrectangleDAT*%=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) htmltable(border="1" cellpadding="0" cellspacing="0" generatecss="no" nowrap="yes") DAT*rr ll_row = 0 //temp table n_ds_nei_import_temp_base lds_tdata //rapids table being updated d_ds_nei_import_rapids_base lds_irapids //rapids variables double ld_rid string ls_code = "@" double ld_devicerid string ls_id string ls_groupflag = "Y" string ls_groupType = "PROCESS" string ls_name string ls_scc //temp variables string ls_scc3 = "" string ls_unique = "" lds_tdata = ids_processes lds_irapids = ids_rapprocesses lds_tdata.of_sort("scc3") lds_tdata.of_filter("DAT*not isnull(device_rid)") ll_rc = lds_tdata.rowcount() iw_imain.wf_progress(0) for ll_row = 1 to ll_rc iw_imain.wf_progress(ll_row/ll_rc) lb_insert = false ld_devicerid = lds_tdata.object.device_rid[ll_row] if ld_devicerid = 0 then of_putinmessagelog(ll_row, "Data Error", "Device RID not found in " + lds_tdata.is_description) continue end if ls_scc3 = lds_tdata.object.scc3[ll_row] if ls_unique = ls_scc3 + " " + string(ld_devicerid) then continue else ls_uniquDAT*e = ls_scc3 + " " + string(ld_devicerid) end if if isnull(ls_scc3) then of_putinmessagelog(ll_row, "Data Error", "SCC3 column is null") continue end if ls_id = ls_scc3 ld_devicerid = lds_tdata.object.device_rid[ll_row] //retrieve rapids data ll_iraprc = lds_irapids.retrieve(ld_deviceRID, ls_id) if ll_iraprc = 0 then ll_iraprc = lds_irapids.insertrow(0) lb_insert = true elseif ll_iraprc < 0 then of_putinmessagelog(ll_row, "System Error", "UnabDAT*le to connect to database") continue end if ls_scc = lds_tdata.object.scc[ll_row] //assign dynamic variables ls_name = lds_tdata.object.emission_process_desc[ll_row] if ls_name = "" or isnull(ls_name) then ls_condition = "rap_scc_ams_codes.code = '" + ls_scc + "'" ls_name = left(string(f_dlookup("rap_scc_ams_codes.desc_4", "rap_scc_ams_codes", ls_condition)), 50) if isnull(ls_name) or ls_name = "" then of_putinmessagelog(ll_row, "Data Error", "Unable to find desc4DAT* data for " + ls_condition) continue end if end if //add to the table if lb_insert then ld_rid = f_get_sequence() li_ret = of_setvalue(lds_irapids, ll_iraprc, "rid", ld_rid, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "id", ls_id, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "device_rid", ld_deviceRid, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "code", ls_code, importerr, true) else ld_rid = lds_irapids.objeDAT*ct.rid[ll_iraprc] end if li_ret = of_setvalue(lds_irapids, ll_iraprc, "group_flag", ls_groupflag, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "group_type", ls_grouptype, importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "name", left(ls_name, 50), importerr, true) li_ret = of_setvalue(lds_irapids, ll_iraprc, "scc_ams_code", ls_scc, importerr, true) //update the temp table with the source rid //lds_tdata.object.device_rid[ll_row] = ld_sourceRID lds_DAT*tdata.object.process_rid[ll_row] = ld_rid li_ret = of_updatetemptable(lds_tdata, importerr) if li_ret = - 5 then exit elseif li_ret < 0 then of_putinmessagelog(ll_row, "System Error", "Unable to save Process Rid to " + lds_tdata.is_description) continue end if // ids_processes.is_scc = ls_scc // ids_processes.of_scan("UPDATE DEVICE RID", ld_Rid) // if of_updatetemptable(ids_processes, importerr) < 0 then // of_putinmessagelog(ll_row, "System Error", "Unable to save PDAT*rocess Rid to " + ids_processes.is_description) // continue // end if if of_updaterapidstable(lds_irapids, importerr, lb_insert) = -5 then exit next lds_irapids.reset() iw_imain.wf_progress(1) lds_tdata.of_filter("") return ll_rc end function public function long of_createordischargeactivities ();/* Modified Jan 31, 2005 by Steve Oliphant Changes made to support NIF 3.0 data imports. Section 5.2.2.6 Create Emission Period Activity Data table two of the design documenDAT*t. */ //driver variables long ll_row, ll_rc = -1, ll_iraprc integer li_ret string ls_condition boolean lb_insert str_ierror importerr string ls_null setnull(ls_null) ll_row = 0 //temp table n_ds_nei_import_temp_base lds_tdata