thanks for your help

the solution I work correctly


Thanks to all

Atte

Victor Hugo


2010/1/21 P S <[email protected]>

> On Thu, Jan 21, 2010 at 9:08 PM, P S <[email protected]> wrote:
> > 'CP SPOOL PUNCH CONT'
> > 'PUNCH SCRIPT LINUX A'
> > parse value diag(8, 'SPOOL PUNCH CLOSE NOCONT') with . . spoolid .
>
> Oops, meant to explain that, too:
>
> The SPOOL PUNCH CONT tells CP "When a file is punched, don't close the
> virtual punch file until explicitly told to". The SPOOL PUNCH CLOSE
> NOCONT then does exactly that (and returns the punch to NOCONT).
>
> There are other ways, and of course this example doesn't preserve the
> original CONT setting of the punch, but it's a start.
>
> You could use a Pipe too: 'PIPE cp SPOOL PUNCH CLOSE NOCONT | specs w3
> 1 | var spoolid'
>
> but much as I love Pipes, this is more expensive than DIAG.
>



-- 
Victor Hugo Ochoa Avila
z/OS & z/VM systems programmer
Mexico, City.

Reply via email to