On Thu, Jan 21, 2010 at 9:08 PM, P S <zosw...@gmail.com> 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.

Reply via email to