Previous Topic Next topic Print topic


SD

Include a sort file description.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Syntax:

 SD     sortfilename
        [Applicable COBOL SD clauses]

Comments:

  • Use one SD keyword per sort file description.
  • Follow each file description with the file record description, using the 01, DS, or REC keywords.

Examples:

 IO     INPUT-FILE ASSIGN TO UT-S-INPUT
 IO     OUTPUT-FILE ASSIGN TO UT-S-OUTPUT
 SPNM   C01 IS TOP-OF-PAGE
 FD     INPUT-FILE 
        LABEL RECORDS ARE STANDARD
        BLOCK CONTAINS 0 RECORDS   
 01     INPUT-RECORD            PIC X(80)
               .
               .
 FD     OUTPUT-FILE 
        LABEL RECORDS ARE STANDARD
        BLOCK CONTAINS 0 RECORDS
 01     OUTPUT-RECORD            PIC X(80)
               .
               .
 SD     SORT-FILE
        RECORD CONTAINS 80 CHARACTERS
        DATA RECORD IS SORT-RECORD 
 01     SORT-RECORD            PIC X(80)
               .
               .
Previous Topic Next topic Print topic