Re: dds-all-formats




"josephit" <dakron@xxxxx> wrote in message news:etr907$cc9$1@xxxxxxxxxxxxxxx
Could you tell me what this realy mean with COPY and database file? I have
this pice of code:
FD Mydatabase
LABEL RECORDS STANDARD.
01 R-Mydatabase.
COPY DDS-ALL-FORMATS OF Mydatabase.

Second try:

<
http://publib.boulder.ibm.com/infocenter/iadthelp/v6r0/index.jsp?topic=/com.
ibm.etools.iseries.pgmgd.doc/c0925405365.htm >

-----begin quoted material
Describing a Transaction File

To use a TRANSACTION file in an ILE COBOL program,
you must describe the file through a file description entry in
the Data Division. See ILE COBOL for AS/400 Reference
for a full description of the File Description Entry. Use the
Format 6 File Description Entry to describe a
TRANSACTION file.

A file description entry in the Data Division that describes a
TRANSACTION file looks as follows:

FD CUST-DISPLAY.
01 DISP-REC.
COPY DDS-ALL-FORMATS OF CUSMINQ.

In ILE COBOL, TRANSACTION files are usually
externally described. Create a DDS for the
TRANSACTION file you want to use. Refer to Defining
Transaction Files Using Data Description Specifications
for how to create a DDS. Then create the
TRANSACTION file.

Once you have created the DDS for the TRANSACTION
file and the TRANSACTION file, use the Format 2 COPY
statement to describe the layout of the TRANSACTION
file data record. When you compile your ILE COBOL
program, the Format 2 COPY will create the Data Division
statements to describe the TRANSACTION file. Use the
DDS-ALL-FORMATS option of the Format 2 COPY
statement to generate one storage area for all formats.

(C) Copyright IBM Corporation 1992, 2006. All Rights
Reserved.
-----end quoted material



.