HI All,
I have a "best practices" question, looking for not necessarily code, but english on "how to" do the following... ( a little explanation first)
I have a big production table that I hit on a nitely basis to perform calculations and a variety of things. I am using a subset of this table (a several others in the same way) and using the SUBSTR( SYS(2015),3) function to get myself a unique name. This is the new name of the table now. The true name is PROFHDR for instance and now in the code I use select (profhdr) instead of select profhdr - I am storing the unique name in var named PROFHDR and using that throughout rather than using the production table
here's my question... there's also an index file for that table that I want the subset to use. maybe i'm thinking way too much into it and not seeing the answer, that very possibly could be, but what I would like is to use the production index file with the subset
can i copy the index file, rename it to the unique name .cdx? i just wanted to hear if there should be any problem in doing this? the indexes are too many and would take way too long to recreate so that's out, is this doable?
I have a "best practices" question, looking for not necessarily code, but english on "how to" do the following... ( a little explanation first)
I have a big production table that I hit on a nitely basis to perform calculations and a variety of things. I am using a subset of this table (a several others in the same way) and using the SUBSTR( SYS(2015),3) function to get myself a unique name. This is the new name of the table now. The true name is PROFHDR for instance and now in the code I use select (profhdr) instead of select profhdr - I am storing the unique name in var named PROFHDR and using that throughout rather than using the production table
here's my question... there's also an index file for that table that I want the subset to use. maybe i'm thinking way too much into it and not seeing the answer, that very possibly could be, but what I would like is to use the production index file with the subset
can i copy the index file, rename it to the unique name .cdx? i just wanted to hear if there should be any problem in doing this? the indexes are too many and would take way too long to recreate so that's out, is this doable?