Gotcha: API Book Error

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

If you're in V1R3 and have a chance to use the QUSRSPLA API, don't trust the IBM manual! The V1R3 manual has incorrect offset values, both decimal and hexadecimal, on pages 6-13 and 6-14, beginning with the field that follows offset 552 decimal (x'228').

The reason is that at offset 552 decimal, there's a CHAR(10) field which has "Print on both sides" as the information (right-hand column of the chart presented on page 6-13). On the line below that, another CHAR(10) field appears which has "Duplex" as the information. However, these two fields are actually one and the same.

Consequently, all the offset positions following 552 decimal (x'228') are off by 10 decimal (x'A'), and should therefore read as shown in 7.

Consequently, all the offset positions following 552 decimal (x'228') are off by 10 decimal (x'A'), and should therefore read as shown in Figure 7.

The V2R1 book (printed or CD editions) doesn't have this error.


Gotcha: API Book Error

Figure 7 API Book Error

 Figure 7: API Book Error Offset Decimal Hexadecimal Type Information ------- ----------- ---------- -------------------------------- 562 232 CHAR(10) Fold records 572 23C CHAR(10) Control character 582 246 CHAR(10) Align forms 592 250 CHAR(10) Print quality 602 25A CHAR(10) Form feed 612 264 CHAR(71) Volumes (array) 683 2AB CHAR(17) File label identifier 700 2BC CHAR(10) Exchange type 710 2C6 CHAR(10) Character code 720 2D0 BINARY(4) Total records 
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: