Author Topic: Report not being broken into multiple documents  (Read 3344 times)

daodug

  • Newbie
  • *
  • Posts: 4
    • View Profile
Report not being broken into multiple documents
« on: July 14, 2014, 02:21:00 PM »
I've got a set of customer statements in a single file which is being indexed correctly (?) but isn't being broken into different documents.  It's a small 36 pages which should break into around 25 individual statements.  I've got 25 individual indexes but each index retrieves the entire 36 pages.  I can't seem to change any of the break/group settings in the index definition and everything is set to break (see below).  I've only been working with the product (9.0.3 with content navigator) for a few weeks so any help greatly appreciated.

CC=NO
CCTYPE=Z
CONVERT=NO
CPGID=850
MCF2REF=CPCS
NEWPAGE=12
TRC=NO
FILEFORMAT=STREAM,(NEWLINE=X'0D0A')
TRIGGER1=*,96,X'312020',(TYPE=GROUP)                                     /* 1               */
FIELD1=-9,51,61,(TRIGGER=1,BASE=0)
FIELD2=-6,45,40,(TRIGGER=1,BASE=0)
FIELD3=-6,86,18,(TRIGGER=1,BASE=0)
FIELD4=-3,86,11,(TRIGGER=1,BASE=0)
FIELD5=-3,106,11,(TRIGGER=1,BASE=0)
FIELD6=0,87,4,(TRIGGER=1,BASE=0)
INDEX1=X'4163636F756E7454797065',FIELD1,(TYPE=GROUP,BREAK=YES)           /* AccountType     */
INDEX2=X'4163636F756E744E756D626572',FIELD3,(TYPE=GROUP,BREAK=YES)       /* AccountNumber   */
INDEX3=X'437573746F6D65724E616D65',FIELD2,(TYPE=GROUP,BREAK=YES)         /* CustomerName    */
INDEX4=X'53746174656D656E744E756D626572',FIELD6,(TYPE=GROUP,BREAK=YES)   /* StatementNumber */
INDEX5=X'4461746546726F6D',FIELD4,(TYPE=GROUP,BREAK=NO)                  /* DateFrom        */
INDEX6=X'44617465546F',FIELD5,(TYPE=GROUP,BREAK=NO)                      /* DateTo          */
DCFPAGENAMES=NO
UNIQUEBNGS=YES
IMAGEOUT=ASIS
INDEXOBJ=GROUP
INDEXSTARTBY=1
INSERTIMM=NO
RESTYPE=NONE

SunnyManeeth

  • Guest
Re: Report not being broken into multiple documents
« Reply #1 on: July 15, 2014, 05:15:22 AM »
Hi daodug,

       Use the asciinp exit program, You have to process the file before indexing.

create a text file with the following configuration.

Cctype = z
Convert = no
Inputdd = <path> <Input filename>
Outputdd = <path> <output filename>
Inpexit = <CMOD Installation Folder>\exits\acif\asciinp

Run the Following command in command window.
arsacif parmdd=?<configuration file path>?

Then index the output file and load,

Thanks
Sunny :)
 

jeffs42885

  • Guest
Re: Report not being broken into multiple documents
« Reply #2 on: July 15, 2014, 07:19:29 AM »
Just remember that with asciinp, your best bet for your fields are using BASE=TRIGGER and you will probably have to shift your trigger one to the right.

daodug

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Report not being broken into multiple documents
« Reply #3 on: July 15, 2014, 04:49:30 PM »
Thanks, but I don't understand why I need to use the asciinp.  The index values are being generated correctly and the system can read and interpret the input stream.  Each of my indexes is being located and correctly put into the database.  The problem is that each index gets the entire document added rather than just the pages of the document that relates to that index.  From my reading, the load/index process should identify the triggers/indexes and break up the document based on those settings.  Why would I need to change the input data for it to do that, when it's already identfying the data correctly?

ewirtz

  • Guest
Re: Report not being broken into multiple documents
« Reply #4 on: July 16, 2014, 12:16:40 AM »
Hi daodug,

it might be that the indexer does not detect any page breaks. So a document split would not be possible.

regards

Egon