Previous Topic Next topic Print topic


REC

Define a data structure in the Data Structure Editor format.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Syntax:

 REC    datastructure

Parameters:

datastructure Valid Data Structure Editor construct.

Comments:

  • Each REC keyword generates an 01-level data structure. AMB transfers the REC entity to the Working-Storage Section.
  • The preceding section keyword determines the placement of a data structure in the generated program. Associated section keywords are:
    FD File Section (see FD)
    SD Sort File Description (see SD)
    LK Linkage Section (see LK)
    WS Working-Storage Section (see WS)
  • Code a COBOL COPY with REC, as follows
     REC    dataname
                COPY copybookname
                ... REPLACING field1 BY field2
Previous Topic Next topic Print topic