WFILE (command): Difference between revisions

From NDWiki
Jump to navigation Jump to search
(added 60.128.03 reference)
(expanded the text)
 
Line 1: Line 1:
  @WFILE <file no.>, <memory address>, <block no.>, <no. of words>
  @WFILE <file no.>, <memory address>, <block no.>, <no. of words>
Transfer an extent from user's virtual memory to one or more random blocks in a file.
Transfer an area of the user's virtual memory to one or more random blocks in a file.
; <file no.> : (octal) logical device number from the @OPEN-FILE or @CONNECT-FILE command.
; <file no.> : (octal) logical device number from the @[[OPEN-FILE]] or @[[CONNECT-FILE]] command.
; <memory address> : (octal) starying address of memory record location (default = 0).
; <memory address> : (default = 0, octal) starting address of memory record location.
; <block no.> : (octal) number of destination file block (default = 0, -1 = write next block).
; <block no.> : (default = 0, octal) number of destination file block (-1 = write next block).
; <no. of words> : (octal) length of the extent.
; <no. of words> : (octal) length of the area.


Rules:
Rules:
#permitted for all users.
#Permitted for all users.
#May also be used on communication channels.
#May also be used on communication channels.
#Default block size is 256 (decimal).
#Default block size is 256 (decimal).
Line 16: Line 16:


Write 1000 (octal) words to block 0 of file 101 (octal) from memory address 400 (octal).
Write 1000 (octal) words to block 0 of file 101 (octal) from memory address 400 (octal).
== See also ==
== Related commands ==
@[[RFILE (command)|RFILE]]
@[[RFILE (command)]]


@[[SET-BLOCK-SIZE]]
@[[SET-BLOCK-SIZE]]


[[WFILE (MON 120)]]
[[RFILE (monitor call)]]
 
[[WFILE (monitor call)]]
 
== References ==
== References ==
{{ND-doc|60.128.01}} (printed June 1980), pages 1-14, 1-197, 1-198
{{ND-doc|60.128.01}} (printed June 1980), pages 1-14, 1-197, 1-198

Latest revision as of 11:11, 28 September 2017

@WFILE <file no.>, <memory address>, <block no.>, <no. of words>

Transfer an area of the user's virtual memory to one or more random blocks in a file.

<file no.>
(octal) logical device number from the @OPEN-FILE or @CONNECT-FILE command.
<memory address>
(default = 0, octal) starting address of memory record location.
<block no.>
(default = 0, octal) number of destination file block (-1 = write next block).
<no. of words>
(octal) length of the area.

Rules:

  1. Permitted for all users.
  2. May also be used on communication channels.
  3. Default block size is 256 (decimal).

Example:

@WFILE 101, 400,0, 1000

Write 1000 (octal) words to block 0 of file 101 (octal) from memory address 400 (octal).

Related commands

@RFILE (command)

@SET-BLOCK-SIZE

RFILE (monitor call)

WFILE (monitor call)

References

Norsk Data Document ND–60.128.01 SINTRAN III REFERENCE MANUAL (printed June 1980), pages 1-14, 1-197, 1-198

Norsk Data Document ND–60.128.03 SINTRAN III REFERENCE MANUAL (printed February 1983), page 1-221

Norsk Data Document ND–60.174.Q01 SINTRAN III QUICK REFERENCE CARD