That's easy for you to say.

Regards, 
Richard Schuh 

 

> -----Original Message-----
> From: CMSTSO Pipelines Discussion List 
> [mailto:[email protected]] On Behalf Of Rob van der Heij
> Sent: Friday, March 26, 2010 2:53 PM
> To: [email protected]
> Subject: Re: Null records and PRINTMC/PUNCH
> 
> On Fri, Mar 26, 2010 at 5:28 PM, Hughes, Jim 
> <[email protected]> wrote:
> > I have need to split a single input stream into different 
> spool files.
> > The manual says I should write a null record to the PRINTMC 
> or PUNCH 
> > stage for force the driver to empty its buffers before I do 
> a CP CLOSE 
> > or CP SPOOL command.  For clarity, assume I want to create 
> a new spool 
> > file after every 500th record.
> >
> >
> >
> > What is the easiest way to sync the null record and the CP 
> CLOSE or CP 
> > SPOOL command?
> 
> Ooh, asking for "the easiest" on a Friday ;-)    Is this easy?
> 
>   (end \)
>   ..
>   |  o: fanout
>   |  i: faninany
>   |  printmc
>   \ o:
>   | chop 0
>   | join 499
>   | x: fanout
>   | i:
>   \ x:
>   | spec ,CLOSE PRT,
>   | cp
> 
> The "fanout" at x: will first write a null record to the 
> printmc and then produce the CP command
> 
> Rob
> 

Reply via email to