By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your response...

Discuss This Question: 6 &nbspReplies

There was an error processing your information. Please try again later.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

I'm not aware of any good way to replace only a portion (or an existing 'prefix') of a name in a COPY DDS statement. But as long as you want the names to be the same, all you need to do is use essentially the same COPY DDS statement for both files. -- Tom

...or are the record formats structured differently? If they are, then
you might want to make source member from one of the files and change
the prefix characters with an editor, e.g., with SEU. Use the modified
COPY member instead of the COPY DDS member. -- Tom

Thanks Tom, I will try the first option. I probably will make the two physical files with the same fields names. I will have two different files but they have some common fields with the same name. In Cobol I can move the entire record from one file to another.

Note that the COPY DDS statements should create structures in WORKING STORAGE, not under the FD entries. Use READ INTO and WRITE FROM statements to get a record into and out of the structures.

Of course, if you are simply copying the record formats, you only one structure. Just READ INTO it and WRITE FROM it. You could even change some of the values in between those statements. With a single structure, the MOVE CORR isn't necessary.

Try using "copy dds-all-formats of filename replacing == TR== by == SP==" (I think it will allow a blank in front of "TR" and "SP". If it will not allow the blank, it will all "TR" with "SP" within the field name too. This will replace the "TR" in the front with "SP" (if the blank is allowed).

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your reply...

Ask a Question

Free Guide: Managing storage for virtual environments

Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!

Share this item with your network:

To follow this tag...

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy