TechTalk: Print graphics on the AS/400 with a PC Support conversion trick.

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

Q: IBM says you can print images and graphics on the AS/400 using an intelligent printer data stream (IPDS) printer, but no documentation tells you how to put the images onto the machine. When I asked my IBM rep, he tried to sell me an expensive software package. Am I missing something here? Isn't there a quick and inexpensive means of putting images on the AS/400?

A: Two types of image files can reside on the AS/400: Page Segments and Overlays. Both are raster image file formats-files that are composed of pixel representations. Import support to convert images to these native AS/400 formats were primarily designed for S/370 IOCA and GOCA file formats. Consequently, IBM's solutions to place image files on the AS/400 have a particular S/370 flavor about them.

Fortunately, a free-thinking programmer in Rochester snuck a nifty conversion trick into PC Support (now known as Client Access). This trick allows you to "print" any Windows image into an AFPDS file and then convert it to a page segment or overlay on the AS/400. This means that any image you can create in Windows can be used as an image on the AS/400. Briefly, here are the steps.

Install the PC Support AFPDS printer driver onto Windows. This printer driver is a standard option with the PC Support Windows installation program PCSETUPW.EXE.

In the Windows Control Panel, open the Printers icon and find the new IBM AFPDS printer. Use the Connect button to connect this driver to FILE. This will redirect the AFPDS output to a file of your choosing when the driver is activated.

Create your images using any Windows tool at your disposal. Don't forget hand-scanners-a quick way to capture real-life product images. When the image is ready, print it to the AFPDS driver. Windows will redirect the driver to output the AFPDS image to a file. It will prompt you for the file name.

Using a file transfer program, such as PC Support's file transfer facility, copy this new image file to the AS/400. Put it into an empty physical file with a record length of 1024 bytes.

Use the Create Page Segment (CRTPAGSEG) or Create Overlay (CRTOVL) command to convert the AFPDS file to the appropriate Page Segment (*PAGSEG) or Overlay (*OVL) object. Place the newly created object in an appropriate library. You can then clear or delete the physical file that held the AFPDS output.

Your image is now on the AS/400, ready for use by RPG, DDS, or the OVRPRTF command. For more information, look at IBM's manual V2R3 PC Support/400 and Microsoft Windows 3.1 Advanced Topics (GG24-4253) which is located on the V3R1 Redbook CD-ROM (SK2T-2172).

- Thomas M. Stockwell

Thomas Stockwell

Thomas M. Stockwell is an independent IT analyst and writer. He is the former Editor in Chief of MC Press Online and Midrange Computing magazine and has over 20 years of experience as a programmer, systems engineer, IT director, industry analyst, author, speaker, consultant, and editor.  

 

Tom works from his home in the Napa Valley in California. He can be reached at ITincendiary.com.

 

 

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  •  

  • 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.

  • 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

  • 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: