SPLOPEN Examples


Example 1:

 

  

SPLOPEN

"SPOOLFIL.LST","Q"

 

This statement redirects printer I/O to the file `SPOOLFIL.LST' until a SPLCLOSE is executed or the program terminates and returns control to the operating system. If this file already exists, any output is appended to the file. If not, it is created.

 

Example 2:

 

PFILE

PFILE

 

  

...

 

  

SPLOPEN

PFILE,"LPT2:"

 

This statement directs printer I/O using the PFILE declaration to the device `LPT2' until a SPLCLOSE is executed specifying PFILE or the program terminates.

 

Example 3:

 

  

SPLOPEN

"prtfile1.prt|64.246.11.78"

 

This statement directs printer I/O using the PFILE declaration to the file 'prtfile1.prt' located at theSUNDB Data Manager at IP address 6.246.11.78.

Example 4:

 

  

SPLOPEN

"prtfile1.pdf","F"

 

This statement directs printer I/O to the PDF file 'prtfile1.pdf'.

Example 5:

 

  

SPLOPEN

"PDF:","F"

 

This statement directs printer I/O to a user selected PDF file.

 



PL/B Language Reference SPLICE Example SQL Example