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

Change the empno field size from 9(5) to 9(7).


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ipavan

New User


Joined: 12 Jun 2005
Posts: 28
Location: Hyderabad

PostPosted: Mon Sep 12, 2005 10:23 pm
Reply with quote

I have an emp file . I got a change request to change the empno field size from 9(5) to 9(7). How to implement the change. First do we need to change the copybooks or whereever the variable empno is there in the programs recordlayout. How to do this . PLz help.
Back to top
View user's profile Send private message
kkk_81

New User


Joined: 09 Sep 2005
Posts: 3

PostPosted: Tue Sep 13, 2005 3:40 pm
Reply with quote

I have an emp file . I got a change request to change the empno field size from 9(5) to 9(7). How to implement the change. First do we need to change the copybooks or whereever the variable empno is there in the programs recordlayout. How to do this . PLz help.
Back to top
View user's profile Send private message
radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 435
Location: chennai, India

PostPosted: Tue Sep 13, 2005 4:32 pm
Reply with quote

Quote:
First do we need to change the copybooks or whereever the variable empno is there in the programs recordlayout. How to do this . PLz help.


wherever you find this variable in your shop,you should change it.

It is a field expansion project.It consumes around 80% of work in analysis phase.
Back to top
View user's profile Send private message
ipavan

New User


Joined: 12 Jun 2005
Posts: 28
Location: Hyderabad

PostPosted: Tue Sep 13, 2005 6:11 pm
Reply with quote

Hi Radhakrishnan,

I want to know whether it is sufficient to change the copybook and copy the copy book in our program so that it will be included during compilation time. Or is it sufficien tto change in the recordlayout in the program.
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Tue Sep 13, 2005 7:09 pm
Reply with quote

What Radhakrishnan said, I suppose(but I can be wrong as usual), is that you must to think to your project and not only at your program.
If you modify this field from 9(5) to 9(7)(i.e. in DB2 or in other files), this change impact all the program that are reading this field!
In applicative concept, if you modify your copybook or your recordlayout(as you need...I'm not a cobol programmer but I suppose that you must to change the length in all the place) you are safe but only you.
Is for this reason that before to change the length of a field all the company do an Impact Analysis.

I hope in this post...
Back to top
View user's profile Send private message
radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 435
Location: chennai, India

PostPosted: Wed Sep 14, 2005 9:33 am
Reply with quote

Quote:
I want to know whether it is sufficient to change the copybook and copy the copy book in our program so that it will be included during compilation time. Or is it sufficien tto change in the recordlayout in the program.

It is sufficient to change the copybook if the variable,to be changed,is present only in the copybook.Check whether it is being used as a working storage variable(for performing calculation or may be used for moving a value to the variable).

Better do a scan for that string in your program and copybook library.

Ipavan,
The change may look very simple but the impact proves very costly in case if you havent change it in a single program.

Hope this helps.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Sep 17, 2005 5:57 am
Reply with quote

This is not a trivial change.

The 1st step is to search your source library (s) for references to the field.

If some pgms move the field to another field, the same process must be performed for that field, and so on.

You'll also find out if the field (s) reside in a copybook or inline or both.

Now you're ready to make your changes.

P.S. You also must check any fields at a higher level than the fields you've found. For example:

01 a-rec.
05 hi-level-fld.
10 your-field pic x(005).

You have to search for a-rec and hi-lev-fld as well and add any fields that they are moved to to your search list.

Gets complicated.
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Using Java/C/C++ to retrieve dataset ... Java & MQSeries 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts 3270 personal communications. Can't c... TSO/ISPF 2
No new posts Join 2 files according to one key field. JCL & VSAM 3
Search our Forums:

Back to Top