Thank you for visiting ITKE.
We are happy to help you with solving specific IT questions, but need as
much information as possible to do so. Let us know about the problem you
are trying to solve, how you are approaching it and what work you’ve
done so far, and we can help guide you in the right direction.
Last Wiki Answer Submitted: May 13, 2013 9:57 pm by Chris Leonard2,620 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
Changing the name of a field is not very different from creating a new file. I would probably use CREATE TABLE … AS … WITH DATA. I don’t know that using CHGPF has any way to retain data from the renamed field. — Tom
I would probably create a new field with either DDS or SQL, populate it with data on “old” field, then delete the old field.
Depending on requirement, creating a LF or SQL view might also work, although this doesn’t actually change the PF
Sure, this might be a homework or Inverview question but it might not…
Warning this may have an adverse impact on existing programs, queries and other uses for this file.
1. Change the “DDS” source
2. Use the CHGPF prompt it and identify source – this command will change the file and logicals that use the file format
or
Use the SQL Alter Table Command
Changing the name of a field is not very different from creating a new file. I would probably use CREATE TABLE … AS … WITH DATA. I don’t know that using CHGPF has any way to retain data from the renamed field. — Tom
I would probably create a new field with either DDS or SQL, populate it with data on “old” field, then delete the old field.
Depending on requirement, creating a LF or SQL view might also work, although this doesn’t actually change the PF