Previous Topic: How to Use CULSPANNext Topic: Selective Retrieval of VSAM files (CULLVSAM)


Helpful Hints

Example

This sample code shows the COBOL source code and the CA Culprit INPUT parameter needed to read spanned input records in a z/VSE environment.

In the following code:

The modified COBOL source code:

                  .
                  .
                  .

       INPUT-OUTPUT SECTION.
       FILE-CONTROL.
           SELECT SPANNED-FILE ASSIGN TO SYS010-UT-3420-S.

       DATA DIVISION.

       FILE SECTION.
       FD  SPANNED-FILE
           BLOCK CONTAINS 2000 CHARACTERS
           LABEL RECORD IS LABEL-RECORD
           RECORD CONTAINS 187 to 339 CHARACTERS
           RECORDING MODE IS S
           DATA RECORD IS SPANNED-RECORD.
       01  LABEL-RECORD                 PIC X(80).
       01  SPANNED-RECORD           PIC X(339).
                  .
                  .
                  .

The CA Culprit code:

Col
2
▼
IN 339 V 2000 UM(CULSPAN)