HP PCL/PJL reference - Printer Job Language Technical Reference Manual

9-14 PJL File System Commands EN
SIZE = integer — The size variable indicates the number of
bytes to be uploaded. If the amount of data in the file after
OFFSET is less than the specified size value, the remainder of
the file is returned and the SIZE value in the response
indicates the actual amount of uploaded data.
Printer Responses
If the pathname is invalid the printer response includes an error
number. The returned number is equivalent to the PJL File System
errors (32xxx) listed in Appendix D, only without the 32 and the
leading zeros. For example, if the printer returns FILEERROR=7, the
error is equivalent to status code 32007 (Illegal name), meaning the
FSUPLOAD command contained an illegal NAME variable. See PJL
File System Errors (32xxx) in Appendix D for a complete list of error
codes.
Example: Using the FSUPLOAD Command
This example demonstrates using the FSUPLOAD command to
upload 512 bytes from a printer file, beginning with byte 25.
@PJL FSUPLOAD NAME = "0:\pcl\filenumber5"
~OFFSET=25 SIZE = 512<CR><LF>
Related Commands:
FSAPPEND, FSDELETE, FSDIRLIST, FSDOWNLOAD, FSINIT,
FSMKDIR, FSQUERY, INFO FILESYS