On Wed, Jul 11, 2018 at 11:57 AM Tom Brennan <[email protected]>
wrote:
> I've always considered DD's one of the major differences between MVS and
> other platforms. I remember one of my first BASIC programs in college
> where we had to code something like "OPEN PAYROLL.DATA FOR INPUT AS #1"
> and sort. The first thing I thought of was, "So we have to update the
> program every time we want to sort a different file?"
>
> DD redirection: Genius, whoever thought of it.
>
I've seen a lot of UNIX programs which implement the same concept using
shell environment variables. Simple, universal almost, examples are
${HOME}, ${TMPDIR} (and variants), ${CLASSPATH} for Javca, ${PATH} for an
//STEPLIB equivalent.
I have a PERL script which implements this. When run, you can specify the
"database name" (PostgreSQL) using --dbname= on the command. If not
specified, it will look for the DBNAME environment variable. If neither,
then it takes a default.
>
> On 7/11/2018 8:40 AM, Steve Smith wrote:
>
> > DDNAMEs are a pretty nice feature of z/OS! So you *don't* have to pass a
> > bunch of (potentially very long) file names. DDNAMEs can be thought of
> as
> > a limited form of environment variables.
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>
--
There is no such thing as the Cloud. It is just somebody else’s computer.
Maranatha! <><
John McKown
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN