Home > Archive > Cobol > September 2005 > Is Global Copy Possible?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Is Global Copy Possible?
|
|
|
| I know this is probably reaching, but I'm always looking for a way to
do things more simplistically.
Does anyone know of a way to include a specific copy file in every
program belonging to an application without explicitly using a COPY
statement inside of the programs? For example, can I add it as a
compile time option?
More specifically I am looking to include the same list of EXTERNAL
variables in each program that is a member of my application without
having to add a line like:
COPY "EXTERNALS.WS"
These values are static values and each program within the application
will need to know the value of them. But rather than have each program
look them up in the database, and make each program more efficient, the
initial program looks up and populates these values. Then since they
are declared as external in all of the other applications the values
carry automatically.
I'm using MF Server Express 4.0 SP2 on HP-UX11i.
Thanks in advance!
Chris
| |
| Richard 2005-08-29, 6:55 pm |
|
Chris wrote:
> Does anyone know of a way to include a specific copy file in every
> program belonging to an application without explicitly using a COPY
> statement inside of the programs? For example, can I add it as a
> compile time option?
No.
| |
| William M. Klein 2005-08-29, 6:55 pm |
| You certainly COULD create your own "preprocessor" to do this.
For information on how to create and access such a thing in Server Express 4.0,
see
"Chapter 16: Integrated Preprocessor Interface"
in the "Program Development" manual.
Having said that, I am not really certain that it would be worth it, but it is
POSSIBLE.
--
Bill Klein
wmklein <at> ix.netcom.com
"Chris" <ctaliercio@yahoo.com> wrote in message
news:1125348326.679722.231110@g49g2000cwa.googlegroups.com...
>I know this is probably reaching, but I'm always looking for a way to
> do things more simplistically.
>
> Does anyone know of a way to include a specific copy file in every
> program belonging to an application without explicitly using a COPY
> statement inside of the programs? For example, can I add it as a
> compile time option?
>
> More specifically I am looking to include the same list of EXTERNAL
> variables in each program that is a member of my application without
> having to add a line like:
>
> COPY "EXTERNALS.WS"
>
> These values are static values and each program within the application
> will need to know the value of them. But rather than have each program
> look them up in the database, and make each program more efficient, the
> initial program looks up and populates these values. Then since they
> are declared as external in all of the other applications the values
> carry automatically.
>
> I'm using MF Server Express 4.0 SP2 on HP-UX11i.
>
> Thanks in advance!
> Chris
>
| |
| Paul Knudsen 2005-09-09, 3:55 am |
| Change your compile jobs to copy the source, inserting the new code.
On 29 Aug 2005 13:45:26 -0700, "Chris" <ctaliercio@yahoo.com> wrote:
>I know this is probably reaching, but I'm always looking for a way to
>do things more simplistically.
>
>Does anyone know of a way to include a specific copy file in every
>program belonging to an application without explicitly using a COPY
>statement inside of the programs? For example, can I add it as a
>compile time option?
>
>More specifically I am looking to include the same list of EXTERNAL
>variables in each program that is a member of my application without
>having to add a line like:
>
>COPY "EXTERNALS.WS"
>
>These values are static values and each program within the application
>will need to know the value of them. But rather than have each program
>look them up in the database, and make each program more efficient, the
>initial program looks up and populates these values. Then since they
>are declared as external in all of the other applications the values
>carry automatically.
>
>I'm using MF Server Express 4.0 SP2 on HP-UX11i.
>
>Thanks in advance!
>Chris
--
Top 10 Conservative Idiots:
http://www.democraticunderground.com/top10/
| |
| Russell 2005-09-09, 6:55 pm |
| Paul Knudsen <bigkahuna@jupada.com> wrote in
news:6ad2i11spnjl5nc4tejjte1k36lchahohv@
4ax.com:
> Change your compile jobs to copy the source, inserting the new code.
>
> On 29 Aug 2005 13:45:26 -0700, "Chris" <ctaliercio@yahoo.com> wrote:
>
>
Do you already have one or more copy files that are used in every
program, or almost every program? If so, you can use the conditional
compile feature to conditionally copy this copy file, either as a nested
copy, or by physically adding the data to the other copy(s).
Use the "if defined" along with a 78 level. If you are clever, you
can acomplish a lot. This would leave manually handling the residue.
|
|
|
|
|