Author Topic: Embedded Resources in AFP file  (Read 5771 times)

fnb4321

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Embedded Resources in AFP file
« on: February 22, 2013, 08:06:52 PM »
  I have received a fully composed AFP file from a vendor and it has some character sets and resources embeded in the AFP file.  When I load the file  get messeages that character sets and pseg can't be found.
  How do I code the index parameters so it uses the embedded resources and that it does not look for them in resource library.
 I assume it is something I don't have right with the reslib and restype.  Below are my index parameters - can anyone help me out?

cc = yes
cctype = a
convert = yes
cpgid = 500
field1 = 0,56,8                    /* SDate
field2 = 0,38,18                   /* CustName
field3 = 0,10,13                   /* OldAcct
field4 = 0,23,15                   /* NewAcct
fileformat = record
imageout = asis
index1 = X'E2C481A385',field1                             /*SDate
index2 = X'C3A4A2A3D5819485',field2                       /*CustName
index3 = X'D69384C18383A3',field3   
index4 = X'D585A6C18383A3',field4
indexstartby = 99
reslib = /arscfg/resources:/arscfg/fonts
restype  = fdef,pseg,ovly
trigger1 = *,1,X'5A003ED3EEEE00'
INDEXOBJ=ALL



Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2230
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Embedded Resources in AFP file
« Reply #1 on: February 22, 2013, 09:09:54 PM »
There are a bunch of options you can use to the RESTYPE parameter.  "ALL" strikes me as the one you might want to use...

In the CMOD 8.5 for multiplatforms Indexing Reference, you can find the RESTYPE parameter in Chapter 3 (Page 86 in the version of the doc I have) to get the scoop.

The information center link to the options is here:
http://publib.boulder.ibm.com/infocenter/cmod/v8r4m1/index.jsp?topic=/com.ibm.ondemand.indexingmp.doc/ars1d171213.htm

-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

fnb4321

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re: Embedded Resources in AFP file
« Reply #2 on: February 26, 2013, 09:01:23 AM »
Thanks Justin - that worked for the psegs.  A still getting the character set not found in csdef file in the thick client but looks like it is displaying correctly.

pankaj.puranik

  • Sr. Member
  • ****
  • Posts: 374
    • View Profile
Re: Embedded Resources in AFP file
« Reply #3 on: February 27, 2013, 12:00:42 AM »
You may get the error on thick client because that is local on your PC and your PC may not have all the fonts.
In such cases a default font is replaced.

I suggest that you try to retrieve it through thin client and see if you get proper results.

Otherwise you may have to do font mappings using the csdef.fnt, alias.fnt, cpdef.fnt

fnb4321

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re: Embedded Resources in AFP file
« Reply #4 on: February 27, 2013, 10:48:26 AM »
It is fine in the thin client but I was thinking that since the fonts/character sets were embedded in the AFP file and I had RESTYPE=ALL that I would not need to specfy a resource library for the character sets but looks like my thinking was wrong..

Frederick Tybalt

  • Full Member
  • ***
  • Posts: 124
    • View Profile
    • Personal Website
Re: Embedded Resources in AFP file
« Reply #5 on: February 28, 2013, 01:50:51 AM »
Yes, RESTYPE=ALL will could embed these fonts, but there will not be a mapping with the true type fonts. It requires this mapping to render the AFP correctly and it needs to be done with csdef.fnt, alias.fnt and cpdef.fnt as mentioned by Pankaj.

Since it works fine with thin client the problem is local PC. Updating it correctly will work. 
rIcK
======------------------======
www.rick.co.in | www.tekbytz.com