FILEDDINT Function

Purpose

Returns a FIXED BIN(31) value that is the value of attribute c for file x .

Syntax

FILEDDINT(x,c)

Parameters

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

Description

FILEDDINT returns a FIXED BIN(31) value that is the value of attribute c for file x. When using FILEDDINT, the following are valid values for c:

  • blksize
  • bufsize
  • delay
  • filesize
  • keylen
  • keyloc
  • recsize
  • retry

These options return the following values:

  • FILEDDINT(x,'BLKSIZE') is valid only for programs executed under Enterprise Server.
  • FILEDDINT(x,'BLKSIZE') will return the blocksize for a CONSECUTIVE file. It will return 0 for a VSAM file.
  • FILEDDINT(x,'FILESIZE') will always return a value of 0.
  • FILEDDINT(x,'KEYLOC') and FILEDDINT(x,'KEYLEN') are valid only for VSAM KSDS files.
  • FILEDDINT(x,'delay') and FILEDDINT(x,'retry') will always return a value of 0.
  • FILEDDINT(x,'KEYLOC') and FILEDDINT(x,'KEYLEN') are valid only for VSAM KSDS files.

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.