Hi Folks,
I received a requirement that retrieving multiple document(PDF) with IND and output to unique output name.
environment: z/OS, CMOD 9.0
Data fact:
- report were loaded as PDF by generic indexer to 3 different AG with same index.
- duplicate reports are existing.
e.g.
docid docdate doclang
ABC 01/01/2013 EN (loaded on 01/01/2013)
ABC 01/01/2013 EN (loaded on 01/02/2013)
ABC 01/01/2013 EN (loaded on 01/03/2013)
DEF 02/01/2013 EN (loaded on 02/01/2013)
DEF 02/01/2013 EN (loaded on 02/02/2013)
DEF 02/01/2013 SP (loaded on 02/01/2013)
Requirement:
- Need IND and data files for each record by given index value
- For duplicated records, need the last loaded document to be retrieved
Expectation of example above
output records will be
ABC 01/01/2013 EN (loaded on 01/03/2013)
DEF 02/01/2013 EN (loaded on 02/02/2013)
DEF 02/01/2013 SP (loaded on 02/01/2013)
Here is what I have tested:
- arsdoc get -h ARCHIVE -f "folder name" -acg -o output file -i "where doc_id='ABC'" -N -v
I retrieved files and concatenate 3 hits into 1 file with.ind, the output file name is defaulted to -o and AG name
- arsdoc get -h ARCHIVE -f "folder name" -a -o "(docid)(docdate)(doclang)".SEQ -i "where docid='ABC'" -v
I retrieved files and 3 hits output to 3 file withOUT.ind, the output file name is combination of database field with sequential number.
ARSDOC doesn't allow to use -c -g with database field, so I couldn't figure out how to generate unique output name and only the latest data will be retrieved.
please share your opinion.