[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [open-cobol-list] opening files without hardcoding full paths ?

From: Kevin Monceaux
Subject: Re: [open-cobol-list] opening files without hardcoding full paths ?
Date: Mon, 5 Aug 2013 12:41:12 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon, Aug 05, 2013 at 01:14:47PM -0400, Patrick wrote:
> Then I can hard code all the file paths into this directory but have the
> real files elsewhere.

You can also use environment variables instead of hard coding file paths.
If you have something like:

       SELECT DataFile ASSIGN TO "DataFile" ...

in a program, you can set the environment variable DD_DataFile to the full
path to the file.  That can make it a little easier to switch between test
and production files.  I wonder if that variable name syntax was inspired by
MVS JCL DD statements.


Bruceville, TX

What's the definition of a legacy system? One that works!
Errare humanum est, ignoscere caninum.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]