Author Topic: Using ARSDOC GET with an input file for multiple retrievals  (Read 4832 times)

rstockton

  • Guest
Does anyone have a script or process to use ARSDOC GET with an input file to get mutiple retrievals using index values?  We ocassionally have request for large number of retrievals for particular documents and we are given a list with Index information.

Thanks,

Russell

LWagner

  • Guest
Re: Using ARSDOC GET with an input file for multiple retrievals
« Reply #1 on: July 16, 2014, 09:01:59 AM »
The joy of getting this to work was just not there, so I save you the grief.

command file sample:
arsdoc get -h <instance-name-ip-address>   -u uid -p passwd -F <parameter file> -v  2>>c:\HACLA\LOGS\LOG2.HACLA.PDFZos-611.txt
--------
parameter file sample:
[-f "zHACLApdf"] [-o "(INDEX_2)(INDEX_3)(POSTING_DATE)"] [-n] [-d D:\HACLA\PDFzOS] [-i "WHERE INDEX_2 = 'LAB' AND INDEX_3 = '11322G' AND POSTING_DATE > 13939"]
[-f "zHACLApdf"] [-o "(INDEX_2)(INDEX_3)(POSTING_DATE)"] [-n] [-d D:\HACLA\PDFzOS] [-i "WHERE INDEX_2 = 'RAB' AND INDEX_3 = '498012' AND POSTING_DATE > 13939"]
[-f "zHACLApdf"] [-o "(INDEX_2)(INDEX_3)(POSTING_DATE)"] [-n] [-d D:\HACLA\PDFzOS] [-i "WHERE INDEX_2 = 'GIR' AND INDEX_3 = '481845' AND POSTING_DATE > 13939"]

LWagner

  • Guest
Re: Using ARSDOC GET with an input file for multiple retrievals
« Reply #2 on: July 16, 2014, 09:06:08 AM »
A caution, if the column names are used in the output filename, as an example, a  60 character value with the last 50 as spaces, will have those 50 spaces in the filename for that column value. You will ant to have a method of stripping spaces from filenames.

If you can program the retrieval with API calls, do that so you have full control of your output filenames.

rstockton

  • Guest
Re: Using ARSDOC GET with an input file for multiple retrievals
« Reply #3 on: July 16, 2014, 01:16:59 PM »
Thanks.

What is  2>>c:\HACLA\LOGS\LOG2.HACLA.PDFZos-611.txt?.

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2231
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Using ARSDOC GET with an input file for multiple retrievals
« Reply #4 on: July 17, 2014, 02:49:39 AM »
Thanks.

What is  2>>c:\HACLA\LOGS\LOG2.HACLA.PDFZos-611.txt?.

Windows path.  :)  2>> is Windows-ese for redirecting error messages into the log file as well.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

rstockton

  • Guest
Re: Using ARSDOC GET with an input file for multiple retrievals
« Reply #5 on: July 18, 2014, 07:09:13 AM »
Another question.  It appears that the output file name can be either user defined text or DB field names, is there anyway to combine the two? 

Example :  [-o "TestFile"]  or [-o "(INDEX-1)"] 

Thanks,

Russell

LWagner

  • Guest
Re: Using ARSDOC GET with an input file for multiple retrievals
« Reply #6 on: July 18, 2014, 07:30:38 AM »
My recollection is that you have to choose one or the other.

rstockton

  • Guest
Re: Using ARSDOC GET with an input file for multiple retrievals
« Reply #7 on: July 18, 2014, 08:07:51 AM »
That is what I have found with my testing, but was hoping there was a way around it.

Thanks

LWagner

  • Guest
Re: Using ARSDOC GET with an input file for multiple retrievals
« Reply #8 on: July 18, 2014, 08:29:56 AM »
If you use a program and the JAVA API calls, you of course have total freedom in final naming.