25
Thu, Apr
0 New Articles

OS/400 Output Goes Graphical with the AFP Workbench Viewer

Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

The hardest thing about writing an article on the AFP Workbench Viewer is trying to define AFP (Advanced Function Presentation) itself. In IBM’s online Encyclopedia (http://as400.rochester. ibm.com/ENCYCL/afpprint.htm), AFP is described as “a document architecture, a printer dialog and datastream, and a process for fully system managing printing.” That definition is akin to describing chocolate ice cream as “a semi- solid frozen dairy product.” The lackluster description is technically correct, but it really doesn’t tell you very much. We’re left with the question: What exactly is AFP?

AFP is a process for taking the line-oriented printing produced by the AS/400 and converting it to the page-oriented printing that is the standard of most modern printers. In short, AFP spruces up AS/400 printing by allowing the use of special fonts and graphics.

This task is accomplished through the use of AFP resources, which are AS/400 print objects that are merged with an AS/400 spool file when it is printed. Although AFP resources are not actually contained in the spool file, the spool file contains references to these objects.

There are several different resources that can be used in AFP printing:
• Page Segments—Objects that contain graphic images, signature images, or special
• Overlays—Electronic forms that contain drawing elements such as lines, boxes, shading, and graphics (in the form of page segments)

• Fonts—Special characters that allow different type styles and sizes
• Forms Definitions—An AFP resource that specifies how the physical sheets of paper are processed by the printer

• Page Definitions—An AFP resource that specifies how the data should be positioned on the page

 

Creating AFP Documents

 

AFP documents can be created on your AS/400 through AS/400 DDS files. Keywords within the DDS files pull together the different AFP resources to produce the final document.

IBM has also packaged a collection of AFP tools under the name of AFP Utilities/400. AFP Utilities/400 is part of the AFP PrintSuite for AS/400, which is a


text

product for designing your own complex print applications. AFP PrintSuite for AS/400 can be purchased from the IBM Direct Web site (www.direct.ibm.com). Search under AFP.

AFP Utilities/400 contains all of the tools necessary to create AFP resources and documents from AS/400 spool data. Through AFP Utilities/400, spooled output can be rearranged and formatted without affecting the original application that produced the print job.

A description of both of these methods of generating AFP documents is contained in the IBM Redbook, IBM AS/400 Printing V (SG24-2160-00), which is available at www.redbooks.ibm.com. This manual also contains several DDS examples for AFP printing. Additional DDS samples can be downloaded from the IBM Printing Systems home page at www.printers.ibm.com.

 

The Client Access/400 AFP Workbench Viewer

 

The Client Access/400 AFP Workbench for Windows Viewer is included with Client Access for Windows 95/NT and the new AS/400 Client Access Express for Windows (Express client). In the past, a crippled version of the AFP Workbench Viewer that allowed a limited number of uses was shipped with Client Access. But with Client Access for Windows 95/NT V3R2 and above, IBM has modified its licensing to include a full-featured version of the AFP Workbench Viewer with each install.

The AFP Workbench Viewer is a fairly versatile tool. Straight out of the install, it allows you to view AFP, SNA Character Stream (SCS), and ASCII AS/400 spool files. It also provides the ability to view and create page segments and overlays. You can even view and send faxes and view graphics files in TIFF, PCX, DCX, DIB, and GIF formats. While I don’t have the space to cover all these options here, I’ll discuss a few of the more significant ones and how they can help you to print more efficiently on your AS/400 network.

 

Viewing Spool Files

 

While the paperless office is not yet a reality, we have made significant progress in the past decade to drastically cut down on the amount of paper we generate.

Electronic distribution of AS/400 reports is a good way to reduce paper clutter. The AFP Workbench Viewer is a useful tool in viewing and navigating through spooled reports.

If you want to view a spooled file using the AFP Workbench Viewer, you would do the following:

1. Select AS/400 Operations Navigator (OpsNav) from the IBM AS/400 Client Access Express menu. (This technique also works with Client Access for Windows 95/NT. The only difference is that OpsNav is found in the Accessories folder of the IBM AS/400 Client Access menu in the Windows 95/NT client.) In OpsNav, click the plus sign (+) to the left of the system name you want to work with to expand the OpsNav tree for that AS/400.

2. Click on the Basic Operations icon and select the Printer Output icon to display a list of all your AS/400 printer files that are available for viewing. Double-click on the spooled file you want to view and the AFP Workbench Viewer will launch, automatically displaying the viewer output.

Prior to version V3R7 of the OS/400 operating system, AFP resources had to be manually downloaded to the workstation in order to view an AFP document. Newer versions of OS/400 and Client Access automatically retrieve the necessary resources for you.

 

Viewing and Creating Overlays

 

Unless you have AFP Utilities/400, the easiest way to create overlays or page segments is with the AFP Workbench Viewer using the AFP Printer Drivers. The AFP Printer Drivers come with Client Access or you can download the drivers from IBM by going to the Printing Systems home page (www.printers.ibm.com). Click on the Tech Support button and select the Printer Driver link.


The following are the steps for creating and using an overlay in your AS/400 AFP document:

1. Using the AFP Workbench Viewer, open a graphic file that you would like to use as an overlay (e.g., a logo or digitized signature).

2. Click on File/Create Overlay. The Create Overlay dialog box will be displayed. You may click on Setup to change the attributes of the overlay. Name the overlay and save it to a local drive. (I’ll call it OVL.OLY.)

3. Transfer the overlay file you just created to a shared folder on the AS/400. (I will use the folder called MYFLR.)

4. Create a physical file on the AS/400 to receive the overlay resource. Use the Create Physical File command as follows:

CRTPF FILE(MYLIB/MYFILE) + RCDLEN(32766) LVLCHK(*NO)

5. Copy the overlay file from the AS/400 folder to the file you just created using the Copy From PC Document (CPYFRMPCD) command:

CPYFRMPCD FROMFLR(MYFLR) + TOFILE(MYLIB/MYFILE) +
FROMDOC(OVL.OLY) TRNTBL(*NONE)

6. Now, create the overlay resource MYOVL with the Create Overlay command:

CRTOVL OVL(MYLIB/MYOVL) + FILE(MYLIB/MYFILE) MBR(MYFILE) TEXT(‘My First
Overlay’)

If you create a lot of overlays, you can save time by creating your own custom command to include all of the above AS/400 commands.

Overlays can be merged with AS/400 output by using the Override with Printer File (OVRPRTF) command. (See Figure 1.) Place the Overlay (MYOVL) name and Library (MYLIB) in the Front side overlay (FRONTOVL) or Back side overlay (BACKOVL) parameters, depending on whether your overlay appears on the front or back of your printed page. These parameters are followed by offset parameters for positioning the overlay on your page.

 

Fax Support

 

If your AS/400 is equipped with an integrated fax adapter and fax software, like IBM’s Facsimile Support/400, faxes may be viewed or sent through the AFP Workbench Viewer. You can also fax a document from the AFP Workbench Viewer if your PC is equipped with a fax driver. Click on File/Printer Setup and choose your fax driver from the list of available printers, then click on File/Print to fax the document.

 

AFP Workbench Viewer via Internet

 

A free Internet viewer plug-in is available for downloading from IBM by going to the IBM home page (www.ibm.com). Search using AFP in the downloads area. This plug- in allows you to view and navigate through AFP documents using your Netscape Navigator or Microsoft Internet Explorer browsers.

The IBM AFP Workbench Viewer is a versatile tool, allowing a wide range of functions in your AS/400 printing environment. You can view, navigate, and fax documents, spooled files, and graphics. The AFP Workbench Viewer allows you to save money by creating your own electronic forms utilizing AFP resources that you created. You may even find uses for the AFP Workbench Viewer in your work environment that I didn’t cover here. The best thing about the AFP Workbench Viewer is that it’s free, so feel free to try it out. What have you got to lose?

 

Related Reading

 


IBM AS/400 Printing V, Redbook (SG24-2160-00)

 

Related URLs

 

IBM’s Redbooks page: www.redbooks. ibm.com IBM’s Printing Systems home page: www.printers.ibm.com IBM Home page: www.ibm.com
Figure 1: You can merge overlays with your AS/400 output by using the Front and Back side overlay parameters on the Override with Printer File (OVRPRTF) command.


 

OS-_400_Output_Goes_Graphical_with_the_AFP_Workbench_Viewer04-00.jpg 600x330

 

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$0.00 Raised:
$

Book Reviews

Resource Center

  • SB Profound WC 5536 Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application. You can find Part 1 here. In Part 2 of our free Node.js Webinar Series, Brian May teaches you the different tooling options available for writing code, debugging, and using Git for version control. Brian will briefly discuss the different tools available, and demonstrate his preferred setup for Node development on IBM i or any platform. Attend this webinar to learn:

  • SB Profound WP 5539More than ever, there is a demand for IT to deliver innovation. Your IBM i has been an essential part of your business operations for years. However, your organization may struggle to maintain the current system and implement new projects. The thousands of customers we've worked with and surveyed state that expectations regarding the digital footprint and vision of the company are not aligned with the current IT environment.

  • SB HelpSystems ROBOT Generic IBM announced the E1080 servers using the latest Power10 processor in September 2021. The most powerful processor from IBM to date, Power10 is designed to handle the demands of doing business in today’s high-tech atmosphere, including running cloud applications, supporting big data, and managing AI workloads. But what does Power10 mean for your data center? In this recorded webinar, IBMers Dan Sundt and Dylan Boday join IBM Power Champion Tom Huntington for a discussion on why Power10 technology is the right strategic investment if you run IBM i, AIX, or Linux. In this action-packed hour, Tom will share trends from the IBM i and AIX user communities while Dan and Dylan dive into the tech specs for key hardware, including:

  • Magic MarkTRY the one package that solves all your document design and printing challenges on all your platforms. Produce bar code labels, electronic forms, ad hoc reports, and RFID tags – without programming! MarkMagic is the only document design and print solution that combines report writing, WYSIWYG label and forms design, and conditional printing in one integrated product. Make sure your data survives when catastrophe hits. Request your trial now!  Request Now.

  • SB HelpSystems ROBOT GenericForms of ransomware has been around for over 30 years, and with more and more organizations suffering attacks each year, it continues to endure. What has made ransomware such a durable threat and what is the best way to combat it? In order to prevent ransomware, organizations must first understand how it works.

  • SB HelpSystems ROBOT GenericIT security is a top priority for businesses around the world, but most IBM i pros don’t know where to begin—and most cybersecurity experts don’t know IBM i. In this session, Robin Tatam explores the business impact of lax IBM i security, the top vulnerabilities putting IBM i at risk, and the steps you can take to protect your organization. If you’re looking to avoid unexpected downtime or corrupted data, you don’t want to miss this session.

  • SB HelpSystems ROBOT GenericCan you trust all of your users all of the time? A typical end user receives 16 malicious emails each month, but only 17 percent of these phishing campaigns are reported to IT. Once an attack is underway, most organizations won’t discover the breach until six months later. A staggering amount of damage can occur in that time. Despite these risks, 93 percent of organizations are leaving their IBM i systems vulnerable to cybercrime. In this on-demand webinar, IBM i security experts Robin Tatam and Sandi Moore will reveal:

  • FORTRA Disaster protection is vital to every business. Yet, it often consists of patched together procedures that are prone to error. From automatic backups to data encryption to media management, Robot automates the routine (yet often complex) tasks of iSeries backup and recovery, saving you time and money and making the process safer and more reliable. Automate your backups with the Robot Backup and Recovery Solution. Key features include:

  • FORTRAManaging messages on your IBM i can be more than a full-time job if you have to do it manually. Messages need a response and resources must be monitored—often over multiple systems and across platforms. How can you be sure you won’t miss important system events? Automate your message center with the Robot Message Management Solution. Key features include:

  • FORTRAThe thought of printing, distributing, and storing iSeries reports manually may reduce you to tears. Paper and labor costs associated with report generation can spiral out of control. Mountains of paper threaten to swamp your files. Robot automates report bursting, distribution, bundling, and archiving, and offers secure, selective online report viewing. Manage your reports with the Robot Report Management Solution. Key features include:

  • FORTRAFor over 30 years, Robot has been a leader in systems management for IBM i. With batch job creation and scheduling at its core, the Robot Job Scheduling Solution reduces the opportunity for human error and helps you maintain service levels, automating even the biggest, most complex runbooks. Manage your job schedule with the Robot Job Scheduling Solution. Key features include:

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • LANSAWhen it comes to creating your business applications, there are hundreds of coding platforms and programming languages to choose from. These options range from very complex traditional programming languages to Low-Code platforms where sometimes no traditional coding experience is needed. Download our whitepaper, The Power of Writing Code in a Low-Code Solution, and:

  • LANSASupply Chain is becoming increasingly complex and unpredictable. From raw materials for manufacturing to food supply chains, the journey from source to production to delivery to consumers is marred with inefficiencies, manual processes, shortages, recalls, counterfeits, and scandals. In this webinar, we discuss how:

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • Profound Logic Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application.

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: