View previous topic :: View next topic
|
Author |
Message |
mahesh d
New User
Joined: 15 Nov 2005 Posts: 2
|
|
|
|
I have copybook COPYA, which was used by 35 programs which is already running in production.
Now the new requirement is to change the some feilds in copybook COPYA. How to go about it?
Note : 1. If the file which uses the old copy structure has some data in it.
How can i go with it.
Thanks in advance |
|
Back to top |
|
|
k_vikram07
New User
Joined: 23 Nov 2005 Posts: 35
|
|
|
|
I think I didn't understand the requirement correctly.
mahesh d wrote: |
Now the new requirement is to change the some feilds in copybook COPYA. How to go about it?
|
Take the list of programs impacted. Find the datasets usings this structure.
Change the programs and redefine the datasets.
mahesh d wrote: |
Note : 1. If the file which uses the old copy structure has some data in it.
How can i go with it.
|
Probably we need to write a one-time jobs to expand the fields data to fit the new structure. If it is complete redefining some fields, then may be you would want to take a backup and recreate with new fields.
Thanks
Vik. |
|
Back to top |
|
|
mahesh d
New User
Joined: 15 Nov 2005 Posts: 2
|
|
|
|
In a copy book if I want to add 2 fields and increase the length of one field.
If the file which uses the old copy structure has some data in it.
Do i need to delete the old records and reload with the new structure? |
|
Back to top |
|
|
subhra das
New User
Joined: 01 Aug 2005 Posts: 9
|
|
|
|
hi,
In copy book thr will be FILLERS.so if u want to add two new fileds u can add in place of filler by adjusting the space i.e rearranging filler.so that length will be same and it wont effect the file structure.
Correct me if i m wrong. |
|
Back to top |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 419 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
Vik is dead on. Impact analysis is the real need.
The added fields will not affect computations or displays in the 35 programs, but the length change of an exisiting field and record length increase will.
You have to check each program to see if it uses the enlarged field and the ramifications of the increase (math, display/print et al). Likewise, referential modification at the record level may be affected. Of course, you also must check the JCL for BLKSIZE, LRECL parameters and make changes if necessary. How about sort field criteria or any other job with a program that has offset, length specified?
I'm sure I've forgotten a few things, but you get the idea.
Dave |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Don't confine your thinking to the copybook. Cpybk fields can be moved to other fields in a pgm; they can be passed to other subpgms etc.
The safest approach is to do a srchfor of your source/cb library(s) for the field names that were changed and manually trace the progression of the fields through the pgms/subpgms.
Also, if the fields find their way into files you may have to expand your search. Each pgm accessing THAT field may use a different field name. |
|
Back to top |
|
|
|