OnDemand User Group

Support Forums => iSeries => Topic started by: BHUMENY on July 08, 2016, 09:47:52 AM

Title: File Format of OUT file from ARSDOC GET Command
Post by: BHUMENY on July 08, 2016, 09:47:52 AM
How can I tell what file type the OUT file created from a ARSDCOC GET command is?
We currently store AFP, EML and TIFF documents in OnDemand.  When I retrieve them, how can I tell what viewer to use to open them?

Thanks.
Bill
Title: Re: File Format of OUT file from ARSDOC GET Command
Post by: Justin Derrick on July 08, 2016, 10:41:56 AM
The format of the document you retrieve is the format that it went into CMOD as.  So, TIFFs come out as TIFFs, Line data as line data, etc.

If you're using the -c option, the documents are concatenated together, resulting in one (or many) large files that contain the documents 'stacked' one after the other in the file.  You can use the 'offset' and 'length' values from inside the generic index file to get the 'address' of a single document. 

Be cautious about leaving off the -c option though -- depending on your query, it could produce THOUSANDS of files.

-JD.
Title: Re: File Format of OUT file from ARSDOC GET Command
Post by: BHUMENY on July 08, 2016, 11:13:09 AM
I realize that the format of the document you retrieve is the format that it went into CMOD.
But now that I have all these OUT files, how do I know what viewer to use to display them?
Title: Re: File Format of OUT file from ARSDOC GET Command
Post by: Justin Derrick on July 08, 2016, 03:03:30 PM
The name of the Application should be in the file name.  The type of document in the Application is the type of document that was extracted -- unless you're doing something weird.