I am sorry as I was not clear earlier. So I will give a little background of what I am trying to do. This program is for our statement process, so depending on the client's preference, I need to format the numbers in either English or French formatting. The program creates Compuset tags which will eventually have the statements printed...
The first and second input records to the program could be for English, but the third record probably will be for French... So it is just one program that has to do the formatting for both.
The DECIMAL-POINT IS COMMA clause is to be used in ENVIRONMENT DIVISION, so the change is going to be global, but that is not what I am looking for.
Believe me I am all for modular programming... But when you are dealing with a legacy system that has been around 20-25 years, modular programming sometimes just won't cut it, especially for the module that has been around since inception.
This program that creates the compuset tags for both English and French statements albeit with numeric formatting in English only, is now in version T05 (initially started at A00..A99, B00..), so it has gone through innumerable changes over the years. So I don't think, they are just going to say okay lets get a new process for French statements, just because the existing process needs to format numbers a little differently.
I especially do not want a new sub-program to do the number formatting for this program since as it is the program is running for upwards of 6 hours. There are about 200-300 distinct numbers I will need to format for French for just one account. So you can see how much of an overhead it will be if I am to process about 30,000 French accounts (we had about 100,000 statements total).
I am not trying to knock you down, rather I want you to understand some of the realities on my side. I do appreciate your inputs.
Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
Well, i've gotten lost. . .
How does using a subroutine versus in-line code have anything to do with "6 hours" or additional overhead? Wherever the French Formatting code is placed, it should take the same resources to do the work.
I suspect if the code is placed in the current "module", it will be PERFORMed. If placed in a soubroutine, it would be CALLed (which will/should have the same "cost" as a perform when executed).
The problem i see many places is certain of these huge old module implementations have become sacred. . . Especially the ones that are system critical and the same person has maintained them for "ever".
Joined: 06 Jun 2008 Posts: 8280 Location: Dubuque, Iowa, USA
I'm confused AND lost with Dick. First you ask a problem and get a solution. And again, and again. Yet none of them are good enough for you.
First, why did you even post a question if you're not interested in the responses? And second, why don't you just implement whatever solution you're thinking of so we can move on to people willing to listen to our responses? Today is not psychic day and we are professional computer analysts, not mind readers. The quality and applicability of the solutions we provide can never be better than the quality and applicability of the data you provide about your problem.