View previous topic :: View next topic
|
Author |
Message |
santhunaveen
New User
Joined: 22 Sep 2006 Posts: 33
|
|
|
|
What are the steps we need to follow when we want to add a new variable in copybook.
Please give me the all the steps 1 by 1 in briefly... |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi There,
1) First check how many program are using that copybook
2) Analyse all the program whether they are populating some grop variable / file by directly group move the whole copybook in that case
u need to change the pgm also
Ex.
Copybook
Code: |
01 WS-ILF011-VIEW.
05 POLICY-NUMBER PIC X(11).
05 CLAIM-ID PIC X(6).
05 OCCURANCE-DATE PIC X(8).
05 END-DATE PIC X(8). |
in our program if coding is like this
Code: |
MOVE WS-ILF011-VIEW TO OUT-REC. |
In that case we need to change coding because now we are going to add
one more field in copy book
3) Then change the copy book & program
4) compile & test all the effected program |
|
Back to top |
|
|
muthuvel
Active User
Joined: 29 Nov 2005 Posts: 217 Location: Canada
|
|
|
|
You want to add a new variable in the copybook.These are the steps to be followed
Step1:
Find the length of the new variable.If possible,try to use the filler clause in the existing copybook layout, so that the record length doesnot vary.
Step 2:
Find all the programs that are using this copybook.Analyse the impacts in the program ,because of the copybook changes.
Step 3:
After adding the new variable in the copybook, the programs that uses this copybook have to be recompiled in order to make them the changes in the copybook to come into effect. |
|
Back to top |
|
|
|