Hitachi

JP1 Version 12 JP1/IT Desktop Management 2 - Asset Console Creating an Access Definition File Guide


$FILEPUT (output data to file)

$FILEPUT outputs data to a file.

Organization of this page

Syntax

$FILEPUT(file-object,character-string)

Values

Status

The following table lists and describes the possible statuses:

Status

Description

NORMAL

Normal end

NODATA

ERROR

Script execution interrupted

Indicates one of the following:

  • file-object does not match the file object requested by $FILEOPEN.

  • A file write error occurred.

  • An invalid argument was specified, or an error other than the above occurred.

Legend:

—: Not applicable

Example

The following example creates the file output.csv, and outputs ABCDEFGHI as a single row:

[SET_VALUE]
  FH = $FILEOPEN('output.csv', RENEW)
 
  $FILEPUT(FH, 'ABC')
  $FILEPUT(FH, 'DEF')
  $FILEPUT(FH, 'GHI')
 
  $FILECLOSE(FH)
Execution result:

The following is output to output.csv:

ABCDEFGHI