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
 
how can I change the record length of the file? urgent

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
mahesh d

New User


Joined: 15 Nov 2005
Posts: 2

PostPosted: Thu Nov 24, 2005 1:04 pm    Post subject: how can I change the record length of the file? urgent
Reply with quote

I have copybook COPYA, which was used by 35 programs which is already running in production.

Now the new requirement is to change the some feilds in copybook COPYA. How to go about it?


Note : 1. If the file which uses the old copy structure has some data in it.
How can i go with it.


Thanks in advance
Back to top
View user's profile Send private message

k_vikram07

New User


Joined: 23 Nov 2005
Posts: 35

PostPosted: Thu Nov 24, 2005 1:12 pm    Post subject: Re: how can I change the record length of the file? urgent
Reply with quote

I think I didn't understand the requirement correctly.

mahesh d wrote:

Now the new requirement is to change the some feilds in copybook COPYA. How to go about it?


Take the list of programs impacted. Find the datasets usings this structure.
Change the programs and redefine the datasets.

mahesh d wrote:

Note : 1. If the file which uses the old copy structure has some data in it.
How can i go with it.

Probably we need to write a one-time jobs to expand the fields data to fit the new structure. If it is complete redefining some fields, then may be you would want to take a backup and recreate with new fields.

Thanks
Vik.
Back to top
View user's profile Send private message
mahesh d

New User


Joined: 15 Nov 2005
Posts: 2

PostPosted: Thu Nov 24, 2005 2:07 pm    Post subject:
Reply with quote

In a copy book if I want to add 2 fields and increase the length of one field.

If the file which uses the old copy structure has some data in it.


Do i need to delete the old records and reload with the new structure?
Back to top
View user's profile Send private message
subhra das

New User


Joined: 01 Aug 2005
Posts: 9

PostPosted: Thu Nov 24, 2005 6:07 pm    Post subject:
Reply with quote

hi,
In copy book thr will be FILLERS.so if u want to add two new fileds u can add in place of filler by adjusting the space i.e rearranging filler.so that length will be same and it wont effect the file structure.

Correct me if i m wrong.
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 252
Location: Cincinnati OH USA

PostPosted: Thu Nov 24, 2005 10:16 pm    Post subject:
Reply with quote

Vik is dead on. Impact analysis is the real need.

The added fields will not affect computations or displays in the 35 programs, but the length change of an exisiting field and record length increase will.

You have to check each program to see if it uses the enlarged field and the ramifications of the increase (math, display/print et al). Likewise, referential modification at the record level may be affected. Of course, you also must check the JCL for BLKSIZE, LRECL parameters and make changes if necessary. How about sort field criteria or any other job with a program that has offset, length specified?

I'm sure I've forgotten a few things, but you get the idea.


Dave
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Nov 24, 2005 10:40 pm    Post subject:
Reply with quote

Don't confine your thinking to the copybook. Cpybk fields can be moved to other fields in a pgm; they can be passed to other subpgms etc.

The safest approach is to do a srchfor of your source/cb library(s) for the field names that were changed and manually trace the progression of the fields through the pgms/subpgms.

Also, if the fields find their way into files you may have to expand your search. Each pgm accessing THAT field may use a different field name.
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm

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