Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (W-Z)
Guardian Procedure Calls Reference Manual—522629-013
16-6
WRITE[X] Procedures
Syntax for TAL Programmers  
Parameters
filenum input        
INT:value (Use with WRITE and WRITEX)
is the number of an open file that identifies the file to be written.
buffer input                 
INT:ref:* (Use with WRITE)
STRING .EXT:ref:* (Use with WRITEX)
is an array containing the information to be written to the file.
write-count input                 
INT:value (Use with WRITE and WRITEX)
is the number of bytes to be written:
{0:57344} for disk files (see 
Disk File Considerations on page 16-8 and 
Appendix J, System Limits)
{0:32755} for terminal files
{0:57344} for other nondisk files (device-dependent)
{0:57344} for interprocess files
{0:80} for the operator console
For key-sequenced and relative files, 0 is invalid. For entry-sequenced files, 0 
indicates an empty record.
count-written output           
INT:ref:1 (Use with WRITE)
INT .EXT:ref:1 (Use with WRITEX)
is for wait I/O only. 
count-written returns a count of the number of bytes 
written to the file.
CALL WRITE[X] ( filenum ! i
 ,buffer ! i
 ,write-count ! i
 ,[ count-written ] ! o
 ,[ tag ] ); ! i










