[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: SPF Format



Sudeep Mulki wrote:
>   I have a SQR report that creates multiple reports. If I use the -KEEP option for
>   the 'sqr' command-line option, I get to see both the 'lis' files, and the SPF
>   files.
>
>  Example : file1.spf, file2.spf, file3.spf
>             I then conactenate them into a single file : fileall.spf
>
>        Then, The following command creates a printer-specific file :
>           sqrp fileall.spf -PRINTER:hp
>             ... The file fileall.lis gets created, but has only one of the
>                 three spf files, namely the contents of the first spf file
>                 that was concatenated to 'fileall.spf'.

Two guesses:
1) You are only seeing the contents of file1.spf in the fileall.lis cuz you are using
   ghostview or whatever for on-line viewing. But if you try printing fileall.lis,
   everything is there. Reason: the end of file flag for the first file in sequence
   tells the viewer "That's all, folks !"

2) Could you try using the "-PRINTER:hp & -KEEP" flag while generating file1, 2 & 3 ?
   And then concat the three .LIS together ? This is the method I used for my project,
   I did it inside one SQR program and used CALL SYSTEM USING command along with a bunch
   of file opening & closing commands. You can do it separately and manually concat them
   afterwards. The result should be the same.


Let me know if you need more info on either one.

danian liu
dliu@uhc.com
--
It is easier to change the specification to fit the program than vice versa.