I think the idea here is that your programs are in control of their own
option parameters. I would actually be upset of NO.PAGE was parsed for
a user application.
The "hack" method of no.page in an application is to reference a cursor
position before the first print/display statement. Thus near the top of
the program include a ...
dummy = @(0,0)
... which will turn paging off.
Hopefully, there is a more formal fix to this, but this is the classic
U2 style.
Doug Dumitru
EasyCo LLC
Doug is right. The NO.PAGE option is part of the RUN command. If you
catalogue the program for direct access, any command line processing is up
to you.
Note that there is a RUN.NO.PAGE setting of the OPTION command that would
affect RUN and catalogued programs.
Martin Phillips
Ladybridge Systems Ltd
17b Coldstream Lane, Hardingstone, Northampton, NN4 6DB
+44-(0)1604-709200Martin Phillips
Ladybridge Systems Ltd
17b Coldstream Lane, Hardingstone, Northampton, NN4 6DB
+44-(0)1604-709200
I routinely make use of the pagination available in D3. I typically use the D3/NT flavor in case there are differences in the various other flavors I cannot speak to that.
Anyway, there is always pagination available in D3. When doing a report, it happens automatically. The only time I need to decide whether to force or allow a page break is when I have data that I want to maintain as one group.
Inside D3 BASIC program is a variable called SYSTEM(). Depending on which number of SYSTEM() you inquire into, different information is returned. One of these is the number of lines remaining on the page, and the number of lines on the page is specified on the TERM statement.
If I need to page early, I can issue a "PAGE" command and everything happens automatically.
When I want to run a program that does not page, I generally perform a TCL command of TERM ,0 to set the number of lines per page to 0. I don't know if D3 is counting down from a very large number of recognizes zero as being no pagination desired, but I have not see it put out the column headings more than once - at the top when I use this.
Larry Hazel
How about when outputting to a device other than a fixed screen or
paper sheet. Things like Spreadsheets or web pages are the most
obvious examples.
>
>
>
> Martin Phillips
> Ladybridge Systems Ltd
> 17b Coldstream Lane, Hardingstone, Northampton, NN4 6DB
> +44-(0)1604-709200
> >
>
--
Ashley Chapman
> How about when outputting to a device other than a fixed screen or
> paper sheet. Things like Spreadsheets or web pages are the most
> obvious examples.
As soon as I sent my email, I realised that I had not allowed for this type
of use. I was thinking of simple line by line
reports. Steve's example is much simpler in QM as it comes down to...
HEADING "This is my heading. Page 'P'"
loop thru detail
PRINT \detail line....\
repeat
It's age, my friend. I'll send you a bottle of my favourite memory
pills. Now, where did I put them? ;-)
I was thinking of simple line by line
> reports. Steve's example is much simpler in QM as it comes down to...
>
> HEADING "This is my heading. Page 'P'"
> loop thru detail
> PRINT \detail line....\
> repeat
>
>
>
>
> Martin Phillips
> Ladybridge Systems Ltd
> 17b Coldstream Lane, Hardingstone, Northampton, NN4 6DB
> +44-(0)1604-709200
>
>
> >
>
--
Ashley Chapman