Create the temp file. Open it. Unlink it. When you close the file, it will
be removed by the filesystem. Until then, the inside exists without a
directory entry.

On Sun, Jan 9, 2022, 16:51 Seymour J Metz <[email protected]> wrote:

> Unique names for temporary Unix files is trivial. Making them go away at
> the completion of the work is more difficult.
>
> The user can also make ad hoc changes to many scripts by changing
> environment variables or configuration files.
>
>
> --
> Shmuel (Seymour J.) Metz
> http://mason.gmu.edu/~smetz3
>
> ________________________________________
> From: IBM Mainframe Discussion List [[email protected]] on behalf
> of Paul Gilmartin [[email protected]]
> Sent: Friday, January 7, 2022 4:58 PM
> To: [email protected]
> Subject: Re: ... Re: Top 8 Reasons for using Python instead of REXX for
> z/OS
>
> On Fri, 7 Jan 2022 19:43:58 +0000, Seymour J Metz wrote:
>
> >Well, if you introduced the concept of steps into a script language then
> it shouldn't be too hard to also add the concept of passed data sets. Named
> temporary data sets also shouldn't be difficult. Or you could just use,
> e.g., ~/temp.
> >
> With JCL, the processor generates a unique name; makes it available
> in subsequent steps and reliable removes it when the job completes.
> Not easy or even possible with UNIX facilities.
>
> >Overrides are necessary unless you can anticipate every ad hoc change
> that the user might want to make; otherwise he would have to edit the
> script.
> >
> Il a les défauts de ses qualités.  I'm uncomfortable that someone cam
> mane unanticipated  ad hoc changes by overrides to my read-only
> library PROC and complain that it doesn't  work.
>
> -- gil
>
> ----------------------------------------------------------------------
> 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