Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

want to add new variable in copybook

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: want to add new variable in copybook
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: 1187
Location: Bangalore,India

PostPosted: Wed Mar 07, 2007 1:29 pm    Post subject:
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: Chennai

PostPosted: Wed Mar 07, 2007 1:36 pm    Post subject: Re: want to add new variable in copybook
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copybook structure in Load module Vai123 COBOL Programming 7 Fri Sep 16, 2016 8:29 pm
No new posts Format to pipe delimited with variabl... pshongal SYNCSORT 6 Wed Sep 14, 2016 2:48 pm
No new posts Variable for cursor names ravikumar15 DB2 5 Sun Jul 17, 2016 7:08 am
No new posts OPC JCL Variable passion_sujesh IBM Tools 5 Fri Jul 01, 2016 4:21 am
No new posts JOINKEYs and Variable files migusd SYNCSORT 8 Fri Jun 17, 2016 3:16 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us