Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 1190
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 Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Move from Comp3 variable to Edited Va... Revathy.nair0485 COBOL Programming 7 Fri Nov 03, 2017 3:30 pm
This topic is locked: you cannot edit posts or make replies. Can a alphanumeric data be moved to a... nico_neoz COBOL Programming 10 Mon Oct 30, 2017 8:28 am
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us