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
LATEST COMMENTS
MC Press Online