
compbugs
New User
Nov 1, 2011, 8:46 AM
Post #3 of 6
(2151 views)
|
|
Re: [rovf] Search 'Between' issues
[In reply to]
|
Can't Post
|
|
The dot was there basically because I ran out of ideas, but it is supposed to combine the two. (Thanks for the reply, btw) eval "exec ctperl -S $0 $*" if $running_via_sh; require 'ctree.pl'; $var_name[1] = "jmmain.locatn"; $var_name[2] = "jmmain.active"; $var_name[3] = "jmmain.here"; @p1 = ('String', 24, 'B', 'BCCF-ZON1-APOD-DORM-01L', 'BCCF-ZON1-APOD-DORM-COT4') . ('String', 24, 'B', 'BCCF-ZON1-CPOD-DORM-01L', 'BCCF-ZON1-EPOD-14 -COT1'); @p2 = ('Short', 4, 'E', 1); @p3 = ('Short', 4, 'E', 1); $rpt_head = "Testing BRT"; format top = @<<<<<<<<<< @|||||||||||||||||||||||||||||||||||||||||||||||| @>>>> $rpt_date, $agency_head, $< @<<<< @||||||||||||||||||||||||||||||||||||||||| Page: @>>>> $rpt_time, $rpt_head, $% . format heading = @<<<<<<<<<< @|||||||||||||||||||||||||||||||||||||||||||||||| @>>>> $rpt_date, $agency_head, $< @<<<< @||||||||||||||||||||||||||||||||||||||||| Page: @>>>> $rpt_time, $rpt_head, $% . format DETAIL = @<<<<<<<<<<<<<<<<<<<<<<<< @>>>>>>>> $locatn, $number . format RPTFTR = ------------------------------------------------------------ Total Housed: @<<<<< $total ------------------------------------------------------------ Report Includes: . &pick_index ("file_index", "search_data"); $query = "jmmain, locatn, number; nmmain.number = jmmain.namenum, last, first, middle; jmoffens.booknum => jmmain.number; jmintrel.booknum => jmmain.number, arrivcr; -| locatn, jmmain.number"; $DB_HANDLE = &db_open ($file_index, *search_data, $query); $~ = 'DETAIL'; $total = 0; while (((($locatn, $number, $last, $first, $middle) = &db_read ($DB_HANDLE)) || 1) && $isam_err == 0) { write; $total++; } &db_close ($DB_HANDLE); $^ = heading; &GENCONTROL("RPTFTR"); &rptinc ("ALL Locations", "All with active field matching", "All with here field matching"); &cleanup;
|