On Fri, 5 Sep 2014 18:54:59 -0700, Janet Graff <[email protected]> wrote:
>I have a Started Task with a log file. I'd like to SPIN off the log files
>from my C program and allow the users to delete them when there is too much
>spool output or the log file is no longer needed.
>
>The C program is calling dynalloc() to allocate the file but I don't see any
>flags for SPIN=UNALLOC. I am currently using
>ip.__misc_flags = __RELEASE & __CONTIG & __CLOSE;
>but that leaves the DD associated with the running step and not
>purgable/deletable.
>
>Does anyone know whether dynalloc() supports FREE=CLOSE,SPIN=UNALLOC?
>
Janet,
If you are at z/OS 1.13 or higher, you could use 'Spin any Spin' and
add an additional operand to SPIN=UNALLOC specification in your long running
started task jcl to do one of the following -
1. spin the dataset at a specified time;
2. spin the dataset at a specified interval;
3. spin every nnn records;
4. spin dataset on command
Hope that helps.
Roger
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN