Just an idea:

if this was possible on today's Linux and C, too,
the migration of mainframe C programs to Linux,
which open files using "dd:somename"
would be much easier.

( I have this problem sometimes, because management
decides that some of our mainframe based test supporting
C programs should be moved to Linux 64 on Intel).

For now, the solution is


#ifdef MAINFRAME

  fopen /* this way */

#else

  fopen /* the other way */

#endif


Kind regards

Bernd



Am 08.11.2013 10:48, schrieb Bernd Oppolzer:
The PASCAL compiler on the RS/6000 (with AIX) allowed the
file names to be specified by the use of environment variables.

IIRC: if you had environment variables that matched the names
in your program statement, that is

program anyname (FILE1, FILE2, FILE3);

you could specify the final file names that are used by the values
of those environment variables (and paths, of course).

Don't know, if these were the pure names of the environment variables,
or if it was

DD_FILE1=/u/data/file1

or something like this - which would have been funny.

Kind regards

Bernd



Am 08.11.2013 01:08, schrieb Clark Morris:
On 7 Nov 2013 10:38:24 -0800, in bit.listserv.ibm-main you wrote:

?
I worked with at least 1 Unix shell that allowed the specification of
file name to be in the batch script.  Those who know UNIX/LINUX are
better able to describe how this is done.

Clark Morris


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to