[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: sqr page break



The sequence of write statements in the message below will not do what is
described.  Each write statement will write a separate line.  Instead of:

write 1 from $variable1:20
write 1 from $spacer:5
write 1 from $variable2:10

use:

write 1 from $variable1:25 $variable2:10

You could still use the $spacer variable, but it is simpler to just pad the
first variable by increasing the size.

Denise White
(about to change jobs)

> -----Original Message-----
> From: Automatic digest processor [SMTP:LISTSERV@list.iex.net]
> Sent: Tuesday, January 04, 2000 2:01 AM
> To:   Recipients of SQR-USERS digests
> Subject:      SQR-USERS Digest - 31 Dec 1999 to 3 Jan 2000 (#2000-2)
>
> Date:    Mon, 3 Jan 2000 17:44:22 GMT
> Subject: Re: sqr page break
>
> Brad,
>
> Just a thought - If you wrote the report to a flat file, instead of a .lis
> file, you would have more control over the formatting.
>
> To accomplish, put this in your main procedure:
>
> open c:\temp\myfile.txt as 1
> for-writing
> record=200   !this line declares the max width of the file
>
> Then, in your procedure where you would type:
> print $variable1 (,1,20)
> print $variable2 (,25,10)
>
> instead type:
> let $spacer = 5
> write 1 from $variable1:20
> write 1 from $spacer:5
> write 1 from $variable2:10
>
> This will print $variable1 starting at position 1 for a length of 20, skip
> 5
> spaces, then $variable2 starting at position 25 for a length of 10.  Each
> time the system goes through the select loop, it automatically drops down
> one line.
>
> Melissia
> ----------------------
> Melissia D. Dembrosky
> Technical Consultant
> MBH Consulting
> 770-998-2323