Using ARSDOC Get to Retrieve PDF files to a Single file

Previous topic - Next topic

Joe Wolken

I am working on an AIX v.9.0 system.  I have lots of PDF files in a Folder.  I have a Named Query to retrieve a subset.  I want to retrieve all of the PDF files to my server. Ideally, I'd like all of the single page PDF files concatenated into 1 large PDF file.  Is this possible?  I am using the following command:

./arsdoc get �v �c �f RSC_SCI_OLPNCTNDTL �h cmod �u CMOD �p /opt/IBM/ondemand/V9.0/config/ars.stash �q STORE103 -o /STORE103

The command performs the query successfully, but generates an error retrieving or building the file.  Do I have my parms wrong?  Any suggestions or sample code would be appreciated.

Thanks,
Joe
#Installation #Upgrade #Migration #Administration #Integration #Customization #Training, and more!

Call: 512-517-1489
email: wolkenj@oascorp.com 
Click: http://www.oascorp.com

Nolan

What error are you getting?  Looking at your command I would change it to

./arsdoc get �v �f RSC_SCI_OLPNCTNDTL �h cmod �u CMOD �p /opt/IBM/ondemand/V9.0/config/ars.stash �q STORE103 -o STORE103 -c
J.

#zOS #AIX #Windows #Multiplatforms
#DB2 #TSM #ODF #zODF #ODWEK
#CapacityPlanning #AFP #ReportDistribution
#Finance #ICN

Joe Wolken

Thanks for the ideas. 

The following command successfully creates 1 file, but the file will not open in the Adobe Acrobat saying it is corrupt and cannot be repaired.  When I open the file in a text editor it appears generally to be a PDF formatted document.

./arsdoc get �v �f RSC_SCI_OLPNCTNDTL �h cmod �u CMOD �p /opt/IBM/ondemand/V9.0/config/ars.stash �q STORE103 �d /home/cmod -o /store103.pdf  �c

If I remove the �c parm so the files are not concatenated, then I get many individual files in the directory. Each one will successfully open in Adobe Acrobat.

Is there a bug with the �c parm when working with PDF files?  Or am I missing something?

Again, I'm still on 9.0.0.3.  This may have an effect?

Thanks,
#Installation #Upgrade #Migration #Administration #Integration #Customization #Training, and more!

Call: 512-517-1489
email: wolkenj@oascorp.com 
Click: http://www.oascorp.com

Justin Derrick

What you're seeing is the correct behavior.  CMOD's arsdoc get -c parameter concatenates the documents together as individual PDF files.  Opening it confuses Acrobat, because there's multiple PDF *files* inside a single file, rather than multiple *pages* in a single PDF file.

This is simply for convenience when you're reloading these documents with the IBM CMOD arsload utility.  OnDemand doesn't have the ability to concatenate the individual pages in all of the PDF files into a single PDF.  (FYI, it also doesn't do this with AFP files -- they're all separate AFP documents.)

You can use Acrobat Professional, or a variety of open source tools to consolidate the pages from many PDFs into a single PDF file.

-JD.
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Webinars:  https://CMOD.Training/
IBM CMOD Professional Services: https://CMOD.cloud

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