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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: Change the empno field size from 9(5) to 9(7).
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    Post subject: Change the empno field size from 9(5) to 9(7) urgent......
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: 436
Location: chennai, India

PostPosted: Tue Sep 13, 2005 4:32 pm    Post subject:
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    Post subject: hi
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    Post subject:
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: 436
Location: chennai, India

PostPosted: Wed Sep 14, 2005 9:33 am    Post subject: Re: Change the empno field size from 9(5) to 9(7).
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts Alter &DATENS field in HEADER1 Angad DFSORT/ICETOOL 4 Mon Apr 24, 2017 11:49 am
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm


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