IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

want to add new variable in copybook


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
santhunaveen

New User


Joined: 22 Sep 2006
Posts: 33

PostPosted: Wed Mar 07, 2007 1:21 pm
Reply with quote

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
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Wed Mar 07, 2007 1:29 pm
Reply with quote

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
View user's profile Send private message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Canada

PostPosted: Wed Mar 07, 2007 1:36 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts Trying to change copybook in online c... CICS 4
No new posts Help to Filter File Manager Copybook ... DFSORT/ICETOOL 14
Search our Forums:

Back to Top