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
 

 

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: 239
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
This topic is locked: you cannot edit posts or make replies. Urgent Mainframe Requirments (2-10 yr... Shankar779 Mainframe Jobs 0 Sun Nov 27, 2016 1:48 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm


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