Home > Ask the AS/400 Experts > Questions & Answers > Modifying the WSCST to adjust the first print line
Ask The iSeries 400 Expert: Questions & Answers
EMAIL THIS

Modifying the WSCST to adjust the first print line

Tim Granatir EXPERT RESPONSE FROM: Tim Granatir

Pose a Question
Other iSeries 400 Categories
Meet all iSeries 400 Experts
Become an Expert for this site
>
QUESTION POSED ON: 13 June 2001
We need to move the first print line down the page on certain IP printers by modifying the WSCST. We have followed the instruction from a couple of IBM Support Line Technical Documents but to no avail. This seems to be a very simple task, but neither our team nor IBM can come up with the answer.

>

You've probably already done this but before changing a WSCST the first thing to check is your printer setup. Most printers have a setup option that can be changed and this can cause them to print a little differently from one another if their setups are not identical.

Having said that, WSCST is not for the faint of heart, and it frequently takes a little experimentation to get it just right. If you are using host print transform, you are already using a WSCST. The first step is to retrieve that particular WSCST and use that as a starting point. For example, if the MFRTYPMDL on your outq description is *HP4, the command to retrieve the WSCST will be

RTVWSCST DEVTYPE(*TRANSFORM) MFRTYPMDL(*HP4) SRCMBR(HP4) SRCFILE(MYLIB/QTXTSRC)    

If you look through this member, you will see a line that says :FORMFEED DATA ='0C'X. You will also see another line that says :LINEFEED DATA ='0A'X. What this says is that the hex character represented by '0C' causes this particular printer to do a form feed and that hex character '0A" causes a line feed. In theory, you should be able to change this line to say :FORMFEED DATA ='0C0A'. Once you have saved your source member, do a Create WSCST (CRTWSCST) from your source member and change your output queue to use your newly created WSCST. You should get an additional blank line after the top of every page.

If that works in your situation, consider yourself extremely fortunate. Printers can advance pages in multiple ways, so it's helpful to have some knowledge of the hex codes that drive your printer as well as being able to make your printer do a hex dump to see what is going on. For more information on WSCST, see the IBM manual titled OS/400 WorkStation Customization Programming.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



iSeries Networking - Printing, Remote Access, TCP/IP
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts