Académique Documents
Professionnel Documents
Culture Documents
Xplor Document University Howard Turetzky Printing Systems Advanced Technical Support howardt@us.ibm.com
IBM OUTPUT ENVIRONMENT
XDU 2007 March 07 2007 IBM Corporation IBM Printing Systems
!You will learn the process of identifying and correcting print file problems that IBM uses !You will use the tools that we use to diagnose and fix errors !You will see the documentation we reference to understand AFP Architecture
2
!Users dont always know exactly how their jobs print, so Trust, but Verify !Now try to recreate the problem
" If you cant reproduce the error you will have a hard time fixing it " You may need to have the user rerun it in his own environment
Problem Analysis
! Now that you have verified that a problem exists, you need to narrow down the possibilities
" Were there error messages?
Messages usually print at the end of the job
If not, check any message logs /var/pd/servername/error.log for Infoprint Manager PSF SYSOUT and console for z/OS
Look up the message. It may contain the explanation! pdmsg msgnum PSF or ACIF messages books
Problem Analysis
! The message text gives the cause of the problem:
The font pattern resolution in bytes 24-27 of an Font Control (FNC) structured field must match the font pattern resolution of the actual destination. This font character set cannot be used on this actual destination.
! The font was a 240-pel font trying to print to a 300-pel printer. Either change the printers resolution or use a 300-pel font.
Message Example
"PSF tells you:
APS346I DATA IN AN INPUT RECORD OR PAGEDEF RESOURCE IS NOT VALID: A SKIP TO A NONEXISTENT CHANNEL = 4 ON RECORD NUMBER = 35 WAS DETECTED WITHIN THE LND STRUCTURED FIELDS. OUTPUT WAS FORCED TO SINGLE SPACING, WHICH MAY CAUSE BLANK PAGES.
10
! Missing resources
" Identify all the missing resource " If you cant get them from the customer, substitute: " Page Segments and Overlays
Copy an existing resource and rename it with the name of the missing file
Make test segments/overlays a square empty box to show position blank to see what prints Fonts
Copy and rename an existing font Look in the MCF and PTX (or the PAGEDEFs MCF and Field) to see what context the font is in, then try to substitute one about the same size and type
11
12
13
14
Analyzing AFP
! Two programs to make it easier to read AFP:
" AFP dump (AIX, DOS/old Windows, new Windows version)
Structured field names, Some values decoded Schematic view of file
...1 ...2 ...3 ...4 ...5 ...6 ...7 ...8 ...9 ..10 ..11 ..12 ..13
NOP (No Operation) BDT (Begin Document) NAME - BPG (Begin Page) NAME - - BAG (Begin Active Environ Group) NAME - - - MCF1 (Map Coded Font 1) - - - PGD (Page Descriptor) - - - CTC (Composed-Text Control) - - - PTD1 (Presentation Text Descrip) - - EAG (End Active Environ Group) NAME - - BCT (Begin Composed-Text Block) NAME - - - PTX (Presentation Text Data) - - ECT (End Composed-Text Block) NAME - EPG (End Page) NAME
SFI AFPANLYZ SFI i SFI i SFI SFI SFI SFI SFI i SFI (blanks) SFI SFI (blanks) SFI i SFI
0033 0018 0015 0010 0044 0016 0012 0014 0010 0010 0111 0010 0010
D3EEEE D3A8A8 D3A8AF D3A8C9 D3B18A D3A6AF D3A79B D3A69B D3A9C9 D3A89B D3EE9B D3A99B D3A9AF
000001 000002 000001 000001 000001 000002 000003 000004 000001 000002 000001 000002 000001
15
! AFP Analyzer
RMI: 622 SCFL: 2(T1000395 C1H400F0) TRN:( 35)>AFPANLYZ: Structured Field Analyser< AMB: 700 AMI: 240 SVI: 9 RMI: 1138 SCFL: 3(T1000395 C1H20000) TRN:( 27)>Document Number Version 9.0< AMB: 805 AMI: 240 RMI: 1393 1:NOP:SCRIPT/VS 4.0.0: DEVICE PG1A CHARS X0N2200E TRN:( 14)>April 18, 2002< 2: BEGIN DOCUMENT :AFPANLYZ Coded Graphic Character Set AMB: 936 Global Id: GCSGID 65535 CPGID 37 AMI: 240 3: BEGIN PAGE :i Fully Qualified Name: Replace RMI: 1009 First GID Name: i (Hex) 89 TRN:( 37)>Howard Turetzky, IBM Printing Systems< 4: BEGIN ACTIVE ENVIRONMENT GROUP :i AMB: 1041 5:MCF:FONT_ID CODED_FONT CODE_PAGE CHAR_SET ROT AMI: 240 3 T1000395 C1H20000 RMI: 1163 2 T1000395 C1H400F0 TRN:( 26)>Boulder Programming Center< 6:PGD: X Units 2400 Y Units 2400 X Size 2040 Y Size AMB: 1076 2640 Page Size: 8.50 11.00 AMI: 240 7:CTC:(CONSTANT):00000000000000002D00 1274 8:PTD: X,Y Unit Base 10 in X,Y Units/Base: 2400 2400 RMI: TRN:( 18)>howardt@us.ibm.com< X,Y Text Block Size: 2,040 2,640 (unchained) NOP:( 0)>< 9: END ACTIVE ENVIRONMENT GROUP :i (Bytes: 166) 12: END PRESENTATION TEXT BLOCK : (Bytes: 308) 10: BEGIN PRESENTATION TEXT BLOCK : 13: END PAGE :i (Bytes: 513) 11:PTX: (escape) STO: 000/090
Analyzing AFP
473 240 15
16
! Many printers will indicate off-page errors with a PEM (Printer Error Mark)
" Usually a black mark near the point that ran off the page " Some use lines from the error point to the boundary (star wars vectors) " A few will substitute a character such as ? for invalid characters
17
18
! Line data and PAGEDEF errors are only detected by PSF or ACIF
" Missing or invalid carriage controls " Wrong-length record
20
ACIF on z/OS
//APKSMAIN EXEC PGM=APKACIF,REGION=0M /* //INPUT DD DSN=HOWARDT.SPF.DATA(ANSICC),DISP=SHR //SYSIN DD * CC = YES /* carriage control used */ CCTYPE = A /* CARRIAGE CONTROL TYPE */ CPGID = 500 /* code page identifier */ chars=GT10,GB10,GI12,LR12 FDEFLIB= SYS1.FDEFLIB FONTLIB= FONTS.FONTLIBB,FONTS.FONTLIBB.EXTRA FORMDEF = F1a10110 /* FORMDEF NAME */ INPUTDD= INPUT /* input file ddname */ INDEXOBJ = NONE mcf2ref=cf OUTPUTDD = OUTPUT /* output file ddname */ OVLYLIB= SYS1.OVERLIB PAGEDEF = P1STD1 /* PAGEDEF NAME */ RESFILE = seq /* resource file PDS or SEQuential */ RESOBJDD = RESLIB /* resource file ddname */ RESTYPE = all /* RESOURCE SELECTION */ USERLIB = HOWARDT.APK.PPFALIB
22
ACIF on z/OS
//OUTPUT DD DSN=HOWARDT.REVTST.OUTPUT, // DISP=(NEW,CATLG), // SPACE=(32760,(5200,1500),RLSE),UNIT=SYSDA, // DCB=(LRECL=32756,BLKSIZE=32760,RECFM=VBM,DSORG=PS) //INDEX DD DSN=HOWARDT.REVTST.INDEX,DISP=(NEW,CATLG), // SPACE=(32760,(150,150),RLSE),UNIT=SYSDA, // DCB=(LRECL=32756,BLKSIZE=32760,RECFM=VB,DSORG=PS) //RESLIB DD DSN=HOWARDT.REVTST.RESLIB,DISP=(NEW,CATLG), // SPACE=(32760,(15,15),RLSE),UNIT=SYSDA, // DCB=(LRECL=32756,BLKSIZE=32760,RECFM=VBM,DSORG=PS) //SYSPRINT DD SYSOUT=*
23
! For debugging, ACIF is useful to convert line data to AFP to help solve problems
" " " " " " Find why data prints on the wrong page Explain objects not positioned correctly See where fields were mapped by the PAGEDEF Show how barcodes were created and positioned Identify missing resources Count pages
24
25
26
IPDS error-code registry for printers ! (310) Hardware sense data (link level)
" " " " " 24 bytes of error or situation information Device specific Action codes:
X00, X02-X04, X07, X0B, X0F-X14, X18, X1C, X24, X25, X4D
29
30
31
32
Questions?
33