I would say that what substitues for ddnames is variables and file handles.

You go back to OS/360?


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Discussion List [[email protected]] on behalf of 
Charles Mills [[email protected]]
Sent: Friday, January 7, 2022 10:16 AM
To: [email protected]
Subject: Re: ... Re: Top 8 Reasons for using Python instead of REXX for z/OS

A file handle is basically a DCB, or rather, a pointer to a DCB. The thing it 
points to is a black box, so there are no compatibility issues comparable to 
the 24-bit addresses in DCBs.

What "substitutes" for DD name indirection in many or most non-mainframe 
systems is that "dynamic allocation" is standard. I remember the days before 
SVC 99. It was something of a hack job to write a program that decided on a 
dataset name during execution. OTOH for most non-mainframe operating systems 
the standard way to specify a file at open time is by external file name. If 
you are going to prompt the user for a file name during execution (as most 
interactive programs do) then file name indirection would be counterproductive.

Charles


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Bob Bridges
Sent: Friday, January 7, 2022 6:47 AM
To: [email protected]
Subject: Re: ... Re: Top 8 Reasons for using Python instead of REXX for z/OS

Took me an embarrassingly long time to notice that what I thought was silly in 
some of the non-mainframe programming languages I'd encountered, the feature 
called a "file handle", allowed programs in those languages the same 
flexibility that DD names give in JCL.

---
Bob Bridges, [email protected], cell 336 382-7313

/* Democracy is the recurrent suspicion that more than half of the people are 
right more than half of the time.  -E B White */

-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Tom 
Brennan
Sent: Friday, January 7, 2022 00:13

Maybe a bigger issue is with non-mainframe folks wondering why JCL is there in 
the first place.  I started with microcomputers, programming things in BASIC 
where we were told to hard-code full filenames in the program itself.  Already 
I could see how silly that would be in production, having to change the source 
code just to work with different files.  Unix solved that in clever ways with 
parameter passing, stdin, and things like that which work well in shell 
scripts.  Mainframes solved it with 8 character DD names and JCL redirection.

----------------------------------------------------------------------
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

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

Reply via email to