| Wagner, David --- Senior Programmer Analyst --- WG 2005-07-24, 8:29 pm |
| I need to see what other variables I need to change within a program for v=
raibles I have changed within copylibs for a set of cobol programs.
I can handle finding all the given copylibs within a program. If none of =
the copylibs I have made changes for, then I can get the next program. But=
if I find copylib(s) with changes I have made, now I need to know, what ot=
her variables within a given program may need to be changed(ie, I have in m=
ost instances increased the size of the variable(s) from 1 to 12 characters=
depending on what I need).
The programs are not huge( at this point the largest is 3400 lines and is =
about 273k in size). So I was initially putting my changes together like th=
is:
hash key; {copylib}{variablename}.
Example:
{FN000R2}{FB-NOPOD-KEY}
{FN000R2}{FB-NOPOD-NUMBER}
{FN000R2}{FB-NOPOD-FBNO}
Per program, I could have one or more sets of copylibs to check against.
What is an approach to take? In Cobol, I would searh the data after the s=
tart of Procedure Division. So do I split on white space? Would I keep a le=
ngth on all variables I am searching for and if not one of the lengths, I k=
now I don't need to check. Do I suck it all into an array and search agains=
t the array?
Any insights on approach would be greatly appreciated.
I have done hash, but at this point, I have not done anything else. I am u=
nsure how to proceed or approach this problem. I don't want to go through a=
ll these programs by hand, but want to see how I can handle from a perl per=
spective.
Any questions and/or problems, please let me know.
Thanks!
Wags ;)
****************************************
***************
This message contains information that is confidential
and proprietary to FedEx Freight or its affiliates.
It is intended only for the recipient named and for
the express purpose(s) described therein.
Any other use is prohibited.
****************************************
***************
|