Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Aleph

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Aleph
    3. Knowledge Articles
    4. Obtaining a random sample via p_ret_01

    Obtaining a random sample via p_ret_01

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    No headers
    • Article Type: General
    • Product: Aleph
    • Product Version: 15.2

    Description:
    I would like to retrieve 100 records from our 01 library - but I was wondering, is there a way to get a random sample? Say, no parameters other than I know I want 100 records, and I know I want them to come from our bib library. Is there some trick to doing this with ret-01 or another service?

    I know we can do it with SQL but it's a bit more time-consuming than a ret01 would be via the GUI. So I just wanted to see if it can be done in Aleph.

    Resolution:
    p_ret_01 doesn't have any facility for doing this.

    You could do it like this:

    SQL> select z00_doc_number || 'ABC01' from z00 where substr(z00_doc_number,7,3) = '000';

    This will give you every 1000th number, with "ABC01" appended:

    000001000ABC01
    000002000ABC01
    000003000ABC01
    <etc.>

    Then you can use this file as input to p_print_03 -- or some other print job.


    • Article last edited: 10/8/2013
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Obsolete sublibrary/collection code continues to be searchable for serial
      • Occurrences of Obsolete Material Types
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Language
      English
      Product
      Aleph
    2. Tags
      1. 15.2
      2. contype:kba
      3. Prod:Aleph
      4. Type:General
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved