Conversion from 5 to 6 bytes

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
ebhavins
Member
Posts: 5
Joined: Fri Jul 30, 2010 7:47 pm

Conversion from 5 to 6 bytes

Post by ebhavins » Fri Jul 30, 2010 7:55 pm

Hi,

I have a field called Benefit which is used in around 250 COBOL-DB2 programs.

The field is of X(5). Due to some mandate this field needs to be expanded to X(6).

Could you please let me know the best possible way to do this other than manually?

Regards,
Bhavin

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Fri Jul 30, 2010 8:48 pm

is it only contained in a copybook?
or are there hard coded data definitions in the modules?
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

ebhavins
Member
Posts: 5
Joined: Fri Jul 30, 2010 7:47 pm

Coversiuon from 5 to 6 bytes

Post by ebhavins » Fri Jul 30, 2010 9:07 pm

Hi,

It is defined inside a copybook as well as defined in the workin storage section of programs as well.

Regards,
Bhavin

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Fri Jul 30, 2010 9:42 pm

those in working-storage section:

are all reference names BENEFIT? or are there other reference names.

what tools/utilities do you have at your site?
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

ebhavins
Member
Posts: 5
Joined: Fri Jul 30, 2010 7:47 pm

Post by ebhavins » Fri Jul 30, 2010 9:51 pm

Hey,

There are field names with Benefit with defginition X(5). There are other fields also, but we need worry about that.

I am looking for a kind of Rexx or other utility which can broswe through the modules in a particular library and change the programs by expanding that field from 5 to 6 bytes.

Regrads,
Bhavin

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Sat Jul 31, 2010 1:33 pm

Well, using File-Aid, looks like there is a way to go BUT as Dick has asked for (probably he meant the same what i'm thinking) - do you have "other reference names" and are the reference similar, in fact are they same - there can be way of doing it using File-Aid.

File-Aid can change some "character string1" to other "character string2" but then it's not intuitive , it's pretty static.
Regards,
Anuj

ebhavins
Member
Posts: 5
Joined: Fri Jul 30, 2010 7:47 pm

Expansion from 5 to 6 bytes

Post by ebhavins » Sat Jul 31, 2010 5:31 pm

Hi,

The field is present in the working storage section as well as in some of the copybooks. This is effecting around 300 modules in Production currently.

So, we are looking for certain kind of tool which will expand all those fields from 5 to 6 bytes. I know it could be done by writing some utility program in REXX. If there other way also. Also , I am not used to REXX, so thought of knowing more.

Regards,
Bhavin

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Sat Jul 31, 2010 6:02 pm

in addition to those fields whose reference names are BENEFIT or a derivative you need to find which/what destination fields receive the contents of the easily determined fields (names of BENEFIT or derivative) and are not so named.

examples, print fields with generic names, output fields with generic names.

there is no 'quick fix'. An exhaustive analysis needs to be made.
use of SUPERC (search function) with 2 lines before/after display is helpful in a case like this.

the fact that only 300 modules are involved makes this a minor (although tedious) task.
300 modules could be analyzed by hand within a couple of days,
then based on the results, an action plan can be formulated.

there is also problem of analyzing those modules that input files created by previous modules,
that receive generically named fields that contain the contents of a 'BENEFIT' field.
This includes any files generated for inclusion of spreed sheets (xcel files).
so, potentially there are more modules than those that just have a BENEFIT reference name.

your looking for 'a tool(s)' to accomplish this work should be based on a thorough analysis of the system, and not just a way to increase from 5 to 6 the length of fields with BENEFIT type reference names.

and just repeating your requirement without answering us:
what tools/utilities does your shop have?
leads us to believe at this point that you have done performed an inadequate analysis of the situation and have not identified what needs to be changed.
once you have accomplished that, solutions can/will be forthcoming.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others