Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Programming Guide

Source records

Each source record assigns a number, called a source id, that is used by later records to refer to the source line described by this record. The line may be from a the primary PL/I source file or an INCLUDEd file, as indicated by the source file id and linenumber fields in the record. The rest of the record holds the actual data in the source line.

Figure 118. Declare for a source record
Dcl
  1 Xin_Src     Based( null() ),   /* source record                 */
                                   /*                               */
    2 Xin_Src_Hdr                  /* standard header               */
           like Xin_Hdr,           /*                               */
                                   /*                               */
    2 Xin_Src_File_Id              /* file id                       */
           fixed bin(32) unsigned, /*                               */
                                   /*                               */
    2 Xin_Src_Line_No              /* line no within file           */
           fixed bin(32) unsigned, /*                               */
                                   /*                               */
    2 Xin_Src_Id                   /* id for this source record     */
           fixed bin(32) unsigned, /*                               */
                                   /*                               */
    2 Xin_Src_Length               /* length of text                */
           fixed bin(16) unsigned, /*                               */
                                   /*                               */
    2 Xin_Src_Text                 /* actual text                   */
        char( 137 refer(xin_Src_Length) );

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)