Skip to main content
Gregor Scott
Participating Frequently
Feb 21, 2023 8:46 PM UTC

[UV 11.3.4} Can I force output pagination ON form within BASIC

There are numerous approaches to turning output pagination OFF from within BASIC code (and I'm not really sure which ones work and which are just hang-overs from other MVDB implementations).

What I want to ensure is that output pagination is turned back ON from within BASIC.

Does anyone know if a method for achieving this?

Thanks



------------------------------
Gregor Scott
Software Architect
Pentana Solutions Pty Ltd
Mount Waverley VIC AU
------------------------------

    8 replies

    David Green
    Inspiring
    Feb 22, 2023 7:32 AM UTC

    There are numerous approaches to turning output pagination OFF from within BASIC code (and I'm not really sure which ones work and which are just hang-overs from other MVDB implementations).

    What I want to ensure is that output pagination is turned back ON from within BASIC.

    Does anyone know if a method for achieving this?

    Thanks



    ------------------------------
    Gregor Scott
    Software Architect
    Pentana Solutions Pty Ltd
    Mount Waverley VIC AU
    ------------------------------

    I always use BPIOCP to turn on pagination.



    ------------------------------
    David Green
    Computer Programmer
    Rocket Forum Shared Account
    ------------------------------
    Gregor Scott
    Participating Frequently
    Feb 22, 2023 6:11 PM UTC

    I always use BPIOCP to turn on pagination.



    ------------------------------
    David Green
    Computer Programmer
    Rocket Forum Shared Account
    ------------------------------

    Thanks David.

    I was not aware of this routine. I found the source for it in the APP.PROGS library in the UV account. It is also globally cataloged as "!BPIOCP".

    I realised after I posted that I had not clarified my context: I am wanting to ensure on-screen (terminal) output is paginated.

    DO  you know if the BPIOCP routine work with terminal output as well as printer output?



    ------------------------------
    Gregor Scott
    Software Architect
    Pentana Solutions Pty Ltd
    Mount Waverley VIC AU
    ------------------------------
    David Green
    Inspiring
    Feb 23, 2023 6:00 AM UTC

    Thanks David.

    I was not aware of this routine. I found the source for it in the APP.PROGS library in the UV account. It is also globally cataloged as "!BPIOCP".

    I realised after I posted that I had not clarified my context: I am wanting to ensure on-screen (terminal) output is paginated.

    DO  you know if the BPIOCP routine work with terminal output as well as printer output?



    ------------------------------
    Gregor Scott
    Software Architect
    Pentana Solutions Pty Ltd
    Mount Waverley VIC AU
    ------------------------------

    It works for screen output.



    ------------------------------
    David Green
    Computer Programmer
    Rocket Forum Shared Account
    ------------------------------
    Gregor Scott
    Participating Frequently
    Feb 23, 2023 6:03 PM UTC

    It works for screen output.



    ------------------------------
    David Green
    Computer Programmer
    Rocket Forum Shared Account
    ------------------------------

    Thanks.

    I had not come across the "!BPIOCP" routine before, and it is not listed in any UV doco I could find.

    I found the program "BPIOCP" in the APP.PROGS library in the UV account. The logic for it is quite simple, using the "printer reset" command to do the work.

    Poking around the APP.PROGS library I also found the "GETPU.B" and "SETPU.B" routines, which are documented in the UV manuals as "!GETPU" and "!SETPU" respectively. Their documentation indicates it is possible to retrieve and set the output paging for the terminal, but I could not get that to work.

    I also came across a number of programs with code like this:
    * Disable pagination
    ASSIGN 0 TO SYSTEM(1005)

    So I tried using ASSIGN 1 to SYSTEM(1005), and that also worked.

    The SYSTEM() documentation does not mention element 1005.

    It is covered in a range "1002-1016 Printer definition settings" without any specifics.



    ------------------------------
    Gregor Scott
    Software Architect
    Pentana Solutions Pty Ltd
    Mount Waverley VIC AU
    ------------------------------
    Doug Averch
    Inspiring
    Feb 24, 2023 3:53 PM UTC

    Thanks.

    I had not come across the "!BPIOCP" routine before, and it is not listed in any UV doco I could find.

    I found the program "BPIOCP" in the APP.PROGS library in the UV account. The logic for it is quite simple, using the "printer reset" command to do the work.

    Poking around the APP.PROGS library I also found the "GETPU.B" and "SETPU.B" routines, which are documented in the UV manuals as "!GETPU" and "!SETPU" respectively. Their documentation indicates it is possible to retrieve and set the output paging for the terminal, but I could not get that to work.

    I also came across a number of programs with code like this:
    * Disable pagination
    ASSIGN 0 TO SYSTEM(1005)

    So I tried using ASSIGN 1 to SYSTEM(1005), and that also worked.

    The SYSTEM() documentation does not mention element 1005.

    It is covered in a range "1002-1016 Printer definition settings" without any specifics.



    ------------------------------
    Gregor Scott
    Software Architect
    Pentana Solutions Pty Ltd
    Mount Waverley VIC AU
    ------------------------------

    If you use the CRT statement pagination of the terminal is turned back on.



    ------------------------------
    Doug Averch
    Owner
    U2 Logic
    ------------------------------

    Doug Averch Owner https://www.u2logic.com/
    John Jenkins
    Participating Frequently
    Feb 24, 2023 4:26 PM UTC

    Thanks.

    I had not come across the "!BPIOCP" routine before, and it is not listed in any UV doco I could find.

    I found the program "BPIOCP" in the APP.PROGS library in the UV account. The logic for it is quite simple, using the "printer reset" command to do the work.

    Poking around the APP.PROGS library I also found the "GETPU.B" and "SETPU.B" routines, which are documented in the UV manuals as "!GETPU" and "!SETPU" respectively. Their documentation indicates it is possible to retrieve and set the output paging for the terminal, but I could not get that to work.

    I also came across a number of programs with code like this:
    * Disable pagination
    ASSIGN 0 TO SYSTEM(1005)

    So I tried using ASSIGN 1 to SYSTEM(1005), and that also worked.

    The SYSTEM() documentation does not mention element 1005.

    It is covered in a range "1002-1016 Printer definition settings" without any specifics.



    ------------------------------
    Gregor Scott
    Software Architect
    Pentana Solutions Pty Ltd
    Mount Waverley VIC AU
    ------------------------------

    Gregor,

    If it's not documented it's worth opening a Support ticket requesting that these SYSTEM() calls be added to the doco.

    Regards

    JJ



    ------------------------------
    John Jenkins
    Thame, Oxfordshire
    ------------------------------
    JJ
    Nelson Schroth
    Participating Frequently
    Feb 27, 2023 8:28 AM UTC

    If you use the CRT statement pagination of the terminal is turned back on.



    ------------------------------
    Doug Averch
    Owner
    U2 Logic
    ------------------------------

    I have used CONCURRENT without problem for years now.  We are on 11.3.1.

    The only hazard is when there is an INDEX involved.



    ------------------------------
    Nelson Schroth
    president
    C3CompleteShop LLC
    Harrison OH US
    ------------------------------
    Manu Fernandes
    Inspiring
    Mar 3, 2023 5:57 AM UTC

    There are numerous approaches to turning output pagination OFF from within BASIC code (and I'm not really sure which ones work and which are just hang-overs from other MVDB implementations).

    What I want to ensure is that output pagination is turned back ON from within BASIC.

    Does anyone know if a method for achieving this?

    Thanks



    ------------------------------
    Gregor Scott
    Software Architect
    Pentana Solutions Pty Ltd
    Mount Waverley VIC AU
    ------------------------------

    hi, 

    I suggest you set HEADING / FOOTING inside the BASIC , before first PRINT/CRT.  

    then you can  use PAGE to force next page 

    I hope this help



    ------------------------------
    Manu Fernandes
    ------------------------------