PRINT Examples


Example 1:

 

  

PRINT

"Total amount due",AMTDUE

 

This statement prints the literal 'Total amount due' followed by the contents of AMTDUE on the default print device.

 

Example 2:

 

  

PRINT

PFILE;"Total amount due",AMTDUE

 

This statement prints the literal 'Total amount due' followed by the contents of AMTDUE on the open PFILE file/device.

 



PL/B Language Reference PREPARE (IFILE) Examples Print Preview Example