com.ibm.pdp.maf.rpp.pac.program

Interface SegmentCall

  • All Superinterfaces:
    Element


    public interface SegmentCall
    extends Element

    SegmentCall allows to have the segment called in the program and its code in the program which can be different from the Segment name.

    • Method Detail

      • getCobolPosition

        java.lang.String getCobolPosition()

        This field can contain two characters. It concerns the main description of a Data Structure (ddss) and not the descriptions which are preceded by a prefix (1-ddss or 2-ddss).

        This field is used to obtain a Data Structure description in a particular area (communication area with DBMS or LINKAGE SECTION) or at the beginning of the WORKING-STORAGE SECTION.

        This field is reserved for Data Structures whose organization is W: File description in Working or L: Working with placement.

        To obtain the description of a Data Structure in the WORKING-STORAGE SECTION, you are advised to indicate it in the work area lines of the COBOL code, using micropatterns.

        Values of the COBOL position Value Meaning :

        • 00 The description of the Data Structure is inserted after all the work areas.

        • Alphabetic characters The description of the Data Structure is inserted after all the work areas whose COBOL position corresponds to this value.

        The description and work areas are found at the beginning of the WORKING-STORAGE SECTION of the generated program. These lines are displayed before the Data Structures whose organization is W: File description in Working and before the Data Structures whose code in the Program is greater than this alphabetic code.

        Note: Do not select a COBOL position identical to the Data Structure code in the program for a Data Structure with a W: File description in Working organization.

        • Alphanumeric characters The description of the Data Structure is inserted after all the work areas whose COBOL position corresponds to this value.

        The work area lines and the description can be found in the generated program, at the end of the WORKING-STORAGE SECTION among the user areas.

        Returns:
      • getCodeInProgram

        java.lang.String getCodeInProgram()

        This code is two characters long. The first character must be alphanumeric and the second character must be either numeric or alphabetic.

        It sets the sequence in which the Data Structure or Report is processed in the program.

        When the Data Structure or Report is used only once in a program, it is advised to indicate the code entered as the Data Structure or Report name. This name is entered upon creation. However if it is called more than once in a program, you can differentiate these calls.

        You can parameterize this code in a Macro with $n.

        Returns: