FILEDDWORD Function

Purpose

Returns a character string that is the value of the attribute c for file x.

Syntax

FILEDDWORD(x,c)

Parameters

x
File reference.
c
Character string that holds the attribute to be queried.

Description

FILEDDWORD returns a character string that is the value of the attribute c for file x. When using FILEDDWORD, the following are valid options for c:

  • access
  • amthd
  • action
  • charset
  • filename
  • organization
  • recfm
  • type

These options return the following values:

  • ACCESS returns SEQUENTIAL or DIRECT.
  • ACTION returns INPUT, OUTPUT, or UPDATE.
  • AMTHD returns VSAM KSDS, VSAM ESDS or VSAM RRDS, FILESYS when run under Enterprise Server and FILESYS when run outside of Enterprise Server.
  • CHARSET returns ASCII or EBCDIC.
  • On the Enterprise Server the FILENAME returns an MVS dataset name. For an MVS dataset that is a member of a PDS or PDSE, the name returned includes the member name. When run outside of Enterprise Server it returns the fully qualified path name of the file.
  • ORGANIZATION returns CONSECUTIVE, RELATIVE, REGIONAL(1) or INDEXED.
  • RECFM returns the appropriate record format setting for the file, and U for VSAM files. This option is only valid on Enterprise Server.
  • TYPE returns RECORD or STREAM.

Restrictions

The ERROR condition with oncode 1010 is raised when the file is not open or the attribute is invalid for the file being queried.