Author Topic: Report Wizard error  (Read 4084 times)

rajeshmutha

  • Guest
Report Wizard error
« on: May 12, 2010, 12:29:39 PM »
Hi,
I'm trying create indexing parameters using "Report Wizard". When I try to open a document it is getting opened non-readable format in Report window. No mattaer what document I open. It is always opening in noo-readable format.

Anyone out there faced this issue before? What am I supposed to do to open in a readable format?

Thanks in advance for youe help!

Regards,
Raj

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2231
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Report Wizard error
« Reply #1 on: May 13, 2010, 06:33:55 AM »
It might sound silly -- but what are you trying to open? 

The parameters that you define elsewhere in the Application (data type, line length or line-end characters, code page, etc.) all affect how the ASCII or EBCDIC data is displayed.

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

rajeshmutha

  • Guest
Re: Report Wizard error
« Reply #2 on: May 13, 2010, 12:05:43 PM »
JD,
I'm trying to open an AFP or a Text file. But looks like Report Wizard can open only line data.
I got some information from below Technote.

http://www.ibm.com/developerworks/data/library/techarticle/0301wagner/0301wagner.html

How can we convert an AFP file to line data format?

Regards,
Raj

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2231
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Report Wizard error
« Reply #3 on: May 16, 2010, 12:57:48 AM »
If you're using fully composed AFP, you can ask the people who generated the data if there are TLE (Tagged Logical Elements) in the file.  If there are, it'll be very easy to do the indexing with ACIF.  Otherwise, you'll probably want to contact your IBM Rep about using the Visual Indexer.

If you're having problems with line data, make sure your code page setting is correct.

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

Alessandro Perucchi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1002
    • View Profile
Re: Report Wizard error
« Reply #4 on: May 16, 2010, 03:16:46 AM »
Hello,

if your AFP has some TLEs inside, then if you have a way to launch perl (in Unix or in Windows with Active Perl), then I have a free solution for you in order to discover the embedded TLEs :-)
you only need to install from the CPAN repository the following package Parse::AFP (http://search.cpan.org/~autrijus/Parse-AFP-0.24/)

Then you will have a small utility   afpdump.pl, and it can dump an AFP into a HTML, so you can inspect all the fields inside, including the TLEs.

Unfortunately, I don't why there are some non finished definition in this Parse-AFP, and you will need to correct the following 2 files:

${INSTALL_PATH}/Parse/AFP/Triplet/AV.pm

and the content must be something like that:

------------------------
package Parse::AFP::Triplet::AV;
use base 'Parse::AFP::Triplet';

use constant SUBFORMAT => (
    SubType   => 'H2',
    Format   => 'H2',
    Data   => 'a*',
);
use constant ENCODING => 'cp500';

1;
---------------------

The other file to edit is ${INSTALL_PATH}/Parse/AFP/TLE.pm

and it must be like that:

----------------------------

package Parse::AFP::TLE;
use base 'Parse::AFP::Record';

use constant SUBFORMAT => (
    'Triplet'   => [ 'C/a* X', '*' ],
    XUnitBase       => 'C',
    YUnitBase       => 'C',
    XLUnitsperUnitBase  => 'n',
    YLUnitsperUnitBase  => 'n',
    XPageSize       => 'H6',
    YPageSize       => 'H6',
    _           => 'a*',
);

1;

-------------------------------------------

Of course, it might nothing to do with your current problem, but if you have in the future some TLE in some AFP, then this can be a very quick way to find which TLE are delivered within, the content of each index, their values, etc...

Cheers,
Alessandro

Alessandro Perucchi

#Install #Migrations #Conversion #Educate #Repair #Upgrade #Migrate #Enhance #Optimize #AIX #Linux #Multiplatforms #DB2 #Windows #Oracle #TSM #Tivoli #Performance #Audits #Customizing #Availability #HA #DR #JavaApi #ContentNavigator #ICN #WEBi #ODWEK #Services #PDF #AFP #XML

Alessandro Perucchi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1002
    • View Profile
Re: Report Wizard error
« Reply #5 on: May 16, 2010, 03:42:02 AM »
I have done some test with some files:

- simple ASCII file  (codepage 819)

from the Report Wizard, I select "Line", and click on the "Select Sample Data".
After selecting the sample file, it opens a new window, where I choose the following options:

Data Conversion: Yes
CC: No
CC Type: ANSI (ASCII)
Code Page: 819

Then I can see the document correctly, and do all my visual indexing.

- AFP with TLEs (AFPDS with all the ressources included)

from the the report Winzard, I select AFP, and then click on "Select Sample Data".
After selecting the sample file, it opens a new window.

And here, whatever option I choose, I see only garbage on the screen. I cannot index, see this file correctly.
For that, the only thing is to follow the this explanation (http://publib.boulder.ibm.com/infocenter/cmod/v8r4m1/topic/com.ibm.ondemand.indexingmp.doc/ars1d17157.htm#wq103)

and in that case, I don't use the report wizard, and use the normal application creation, with the following ACIF indexing parameters:

CC=YES
CCTYPE=A
CONVERT=YES
INDEXOBJ=ALL
DCFPAGENAMES=YES
RESTYPE=ALL

Of course this was for me, but feel free to adapt for your needs.


- Normal AFP

Since I don't have at the moment normal AFP at hand to check, I'll post later what I do in order to see it and index it via the "Report Wizard".



If you could tell us, just a little more of the data you are using, it might be useful to provide a better answer.

Cheers,
Alessandro



Alessandro Perucchi

#Install #Migrations #Conversion #Educate #Repair #Upgrade #Migrate #Enhance #Optimize #AIX #Linux #Multiplatforms #DB2 #Windows #Oracle #TSM #Tivoli #Performance #Audits #Customizing #Availability #HA #DR #JavaApi #ContentNavigator #ICN #WEBi #ODWEK #Services #PDF #AFP #XML