OnDemand Users Group

Support Forums => CMOD for Multiplatforms => Topic started by: pankaj.puranik on May 11, 2011, 08:04:10 PM

Title: Getting multiple documents in one shot from CMOD.
Post by: pankaj.puranik on May 11, 2011, 08:04:10 PM
Is there a command to do a bulk get operation if I have the load id or a date or whatever?

Suppose I have one load that had 100 documents. It is loaded into CMOD.
Now I run an arsdoc get such that I specify an output directory and CMOD writes all 100 documents to this directory.

Would the command below work??

arsdoc get -h CMODInstance -F parmfile -v


Contents of param file.
[-f "CMODFolder"] [-o "(UniqueIndexField)"] \
    [-i "WHERE Date=1/1/11"]
Title: Re: Getting multiple documents in one shot from CMOD.
Post by: Alessandro Perucchi on May 12, 2011, 05:58:37 AM
Hello Pankaj,

so with "arsdoc get" you can retrieve 1 or many documents in one shot.

your command will work.

If you want to get all documents that are linked to a LoadId, then you could use this command:

arsdoc get -h CMODInstance -G AppGroup -X LoadId -v -o "Name"

for example (or add the option -N to have the appgroup and app in the filename).

Cheers,
Alessandro



Title: Re: Getting multiple documents in one shot from CMOD.
Post by: LWagner on May 15, 2011, 12:59:57 AM
Will that file be the same as the original input file ?

I need to do a few reloads.

Larry
Title: Re: Getting multiple documents in one shot from CMOD.
Post by: Alessandro Perucchi on May 16, 2011, 02:59:10 PM
Quote from: LWagner on May 15, 2011, 12:59:57 AM
Will that file be the same as the original input file ?

I need to do a few reloads.

No, except if you had a field with the original saved in it, then yes you could have nearly the same name.
Except for the System Log / System Load, CMOD doesn't keep track of the original name of the data or the index.

Alessandro