Author Topic: Using ARSDOC to pull multiple documents  (Read 5327 times)

Declan

  • Newbie
  • *
  • Posts: 2
    • View Profile
Using ARSDOC to pull multiple documents
« on: January 21, 2013, 03:31:21 AM »
I'm looking for some help on this one. I'm trying to pull documents from the database for a specific record identifier within a date range. I was using arsdoc get, but it just pulls back the oldest document, when there should be multiples. Do I need to use an arsdoc query instead? Any help greatly appreciated.

Ed_Arnold

  • Hero Member
  • *****
  • Posts: 1202
    • View Profile
Re: Using ARSDOC to pull multiple documents
« Reply #1 on: January 21, 2013, 08:16:09 AM »
Not an expert, but perhaps something like this:

/usr/lpp/ars/V8R4M0/bin/arsdoc query -Ip -v -h ARCHIVE -G ggggg -o query.results.run.1 -i
            "WHERE REPORT_ID='xxxxxxxx' AND DATE BETWEEN low_number AND high_number
#zOS #ODF

pankaj.puranik

  • Sr. Member
  • ****
  • Posts: 374
    • View Profile
Re: Using ARSDOC to pull multiple documents
« Reply #2 on: January 21, 2013, 09:07:23 AM »
Try the arsdoc get -i or the -Q option.

Declan

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Using ARSDOC to pull multiple documents
« Reply #3 on: January 23, 2013, 08:30:08 AM »
Thanks for the replies. I got to the bottom of it. I had cut and pasted an old arsdoc get command and it had the -L parameter set to 1. I upped it to 20 and it works fine now.