Just in case someone has problem loading AFP with generic indexer, this is what is mentioned in IBM website.
But in my case the .res file is in a different directory and I need a way to tell the generic indexer of it's path.
Troubleshooting scenario 8: The ARSLOAD program with a generic indexer does not load my AFP documents with inline resources correctly
Symptom
You used ARSLOAD with a generic indexer to load a data file with more than one AFP? document and a resource group, confirmed that the structure of your data file was correct, and received a confirmation on your console that the documents were successfully loaded into your Content Manager OnDemand server. However, when you retrieve the documents from the Content Manager OnDemand server, you received a 1303 error message indicating that some resource was missing.
Possible causes
The primary cause of this problem is that the resources must be in a separate file when you use ARSLOAD with a generic indexer to load the AFP documents into your DB2? Content Manager OnDemand server. Using ARSLOAD with a generic indexer does not allow resources to be defined inline with the documents in the data file.
Action
Change the extension of your data file to *.out if your data file has another extension, because ARSLOAD searches for a data file with the *.out extension.
Ensure that you have a lowercase extension (for example, *.out, *.ind, *.res) for all the files that ARSLOAD needs to load on AIX?, because AIX is case-sensitive. Also ensure that the GROUP_FILENAME in *.ind is identical to the name of your data file.
If you use ARSLOAD with a generic indexer, you can load several AFP documents (multiple BDT/EDT pairs) into your OnDemand server with just one data file. To do so, set the length and offset in your *.ind file. However, if the ACIF indexer is used, you cannot do so, because ACIF indexer allows only one data file to contain one document (one BDT/EDT pair).