Hi All,
When I run the following sub routine it creates a word doc with 1 column spanning over 30 pages in a word doc. My goal is to write multiple columns on one page single spaced in order to cut down the numbers of pages being created.
sub getSND(){
$sql = <<END_SQL;
select
distinct a.send_id
from
perbill_doc_data a, perbill_types b
where
a.send_id <> b.type_name
and
trans_date between '010501' and '010530'
END_SQL
$query = &execsql($sql);
if(!$print_only){
$~ = PB_TOP_SNDIDONLY;
write;
while (@data = $query->fetchrow) {
$~ = PB_BODY_SNDIDONLY;
write;
}
}else{
open(PB_BODY_SNDIDONLY, "> tmp/SND.DOC") or die "Can't $!\n";
#Lock File
flock(PB_BODY_SNDIDONLY, 2);
$~ = PB_TOP_SNDIDONLY;
write PB_TOP_SNDIDONLY;
$~ = PB_BODY_SNDIDONLY;
write PB_BODY_SNDIDONLY while( @data = $query->fetchrow );
#Unlock file
flock(PB_BODY_SNDIDONLY, 8);
close (PB_BODY_SNDIDONLY);
}
}
Thank you in advance for you responses.
qball~"I have node idea?!"
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.