Printing to a file
Jean-Pierre A. Radley
appl at jpr.com
Wed May 26 09:55:58 PDT 2004
George Simon propounded (on Wed, May 26, 2004 at 12:06:18PM -0400):
|
| Using SCO Unix filePro version 5.0.08R4
| I need to print a report to a file.
| Im using this syntax in a subroutine called DEFINEP:
|
| DEFINEP. If .
| Then:
| 27 ------- - - - - - - - - - - - - - - - -
| . If:
| Then: printer type "hp_accting"
| 28 ------- - - - - - - - - - - - - - - - -
| . If:
| Then: dt(8,mdyy)=@t4
| 29 ------- - - - - - - - - - - - - - - - -
| . If:
| Then: printer file "/u/tracking/"{3{"_onhand_"{dt{".pcl"
| 30 ------- - - - - - - - - - - - - - - - -
| . If:
| Then: filename1=""{3{"_onhand_"{dt{".pcl" ; return
|
| The problem is that when I run the report, the report header and the first
| record gets written to the file and then I get this error message:
|
| *** A System Error Has Occurred ***
|
| /u/tracking/1148_onhand_05262004.pcl
|
| On File: /u/tracking/1148_onhand_05262004.pcl
|
| Output Processing
| Line Number: 29
| Permission denied
|
| What do I have to do to avoid this error?
See to it that user 'filepro' is permitted to write in direcotry
'/u/tracking'.
--
JP
More information about the Filepro-list
mailing list