|
For databases, it's okay to use the ALL-FORMATS. But I avoid it for display and printer files. Specifying the format name allows separate storage areas for each record format and avoids 'mangling' the data buffer by/for another IO on the same file. However, I also use the 'R' (Replacing) function. (But isn't the format COPY DDR-ALL-FORMATS or COPY DDR-formatname OF ....?) ILE also allows the following syntax: COPY DD-formatname-i OF filename SUBSTITUTE. SUBSTITUTE causes the compiler to make substitutions for characters invalid to COBOL. Original message: ------------------------------ date: Tue, 10 Jan 2006 21:13:31 -0000 from: "jp" <jp@xxxxxx> subject: Re: [COBOL400-L] COBOL Copy DDS Problem You can use COPY DDS-ALL-FORMATS OF .... - personally I prefer COPY DDSR-ALL-FORMATS OF ..... , because it translates any invalid Cobol characters for you. HTH JP
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.